dotfiles/.config/i3/config_terezi

389 lines
12 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
#font pango:monospace 8
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 9
font pango:Liberation Sans 9.5
# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesnt scale on retina/hidpi displays.
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# No auto focussing
focus_follows_mouse no
# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run
#bindsym $mod+d exec "rofi -combi-modi window,drun -show combi -modi combi"
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
#bindsym $mod+semicolon focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
#bindsym $mod+Shift+semicolon move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
#bindsym $mod+h split h
bindsym $mod+s split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
#bindsym $mod+s layout stacking
bindsym $mod+t layout tabbed
bindsym $mod+Shift+t layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
bindsym $mod+shift+a focus child
# define output names (primary, secondard monitor)
set $OUTPUT1 LVDS1
set $OUTPUT2 HDMI1
# define workspace names
set $WS1 "1: www"
set $WS2 2
set $WS3 3
set $WS4 4
set $WS5 5
set $WS6 6
set $WS7 7
set $WS8 8
set $WS9 "9: mail"
set $WS10 "10: com"
# alternative workspaces for use on second monitor
set $WSalt1 "11"
set $WSalt2 "12"
set $WSalt3 "13"
set $WSalt4 "14"
set $WSalt5 "15"
set $WSalt6 "16"
set $WSalt7 "17"
set $WSalt8 "18"
set $WSalt9 "19"
set $WSalt10 "20"
#set $WSalt10 $WS10
workspace $WS1 output $OUTPUT1
workspace $WS2 output $OUTPUT1
workspace $WS3 output $OUTPUT1
workspace $WS4 output $OUTPUT1
workspace $WS5 output $OUTPUT1
workspace $WS6 output $OUTPUT1
workspace $WS7 output $OUTPUT1
workspace $WS8 output $OUTPUT1
workspace $WS9 output $OUTPUT1
workspace $WS10 output $OUTPUT1
workspace $WSalt1 output $OUTPUT2
workspace $WSalt2 output $OUTPUT2
workspace $WSalt3 output $OUTPUT2
workspace $WSalt4 output $OUTPUT2
workspace $WSalt5 output $OUTPUT2
workspace $WSalt6 output $OUTPUT2
workspace $WSalt7 output $OUTPUT2
workspace $WSalt8 output $OUTPUT2
workspace $WSalt9 output $OUTPUT2
workspace $WSalt10 output $OUTPUT2
# make windows on workspace 10 (primary workspace on second monitor) floating by default
#for_window [workspace=$WS10] floating enable
# assign windows to workspaces
# - Waterfox -> Workspace 1, always tabbed
#assign [class="^Waterfox$"] output $OUTPUT1
assign [class="^Waterfox$"] number $WS1
for_window [class="^Waterfox$"] layout tabbed
# - Thunderbird -> Workspace 9
assign [class="^Thunderbird$"] output $OUTPUT1
assign [class="^Thunderbird$"] number $WS9
# - Telegram -> Workspace 10
#assign [class="^TelegramDesktop$"] output $OUTPUT2
assign [class="^TelegramDesktop$"] number $WS10
# TODO resize doesn't work yet
#for_window [class="^TelegramDesktop$"] floating enable; resize set 900 600
# TODO audacious
# - pavucontrol -> floating
for_window [class="^Pavucontrol$"] floating enable
# window hotkeys
bindsym $mod+Ctrl+t [class="^TelegramDesktop$"] focus
# switch to workspace
bindsym $mod+1 workspace number $WS1
bindsym $mod+2 workspace number $WS2
bindsym $mod+3 workspace number $WS3
bindsym $mod+4 workspace number $WS4
bindsym $mod+5 workspace number $WS5
bindsym $mod+6 workspace number $WS6
bindsym $mod+7 workspace number $WS7
bindsym $mod+8 workspace number $WS8
bindsym $mod+9 workspace number $WS9
bindsym $mod+0 workspace number $WS10
bindsym $mod+F1 workspace number $WSalt1
bindsym $mod+F2 workspace number $WSalt2
bindsym $mod+F3 workspace number $WSalt3
bindsym $mod+F4 workspace number $WSalt4
bindsym $mod+F5 workspace number $WSalt5
bindsym $mod+F6 workspace number $WSalt6
bindsym $mod+F7 workspace number $WSalt7
bindsym $mod+F8 workspace number $WSalt8
bindsym $mod+F9 workspace number $WSalt9
bindsym $mod+F10 workspace number $WSalt10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number $WS1
bindsym $mod+Shift+2 move container to workspace number $WS2
bindsym $mod+Shift+3 move container to workspace number $WS3
bindsym $mod+Shift+4 move container to workspace number $WS4
bindsym $mod+Shift+5 move container to workspace number $WS5
bindsym $mod+Shift+6 move container to workspace number $WS6
bindsym $mod+Shift+7 move container to workspace number $WS7
bindsym $mod+Shift+8 move container to workspace number $WS8
bindsym $mod+Shift+9 move container to workspace number $WS9
bindsym $mod+Shift+0 move container to workspace number $WS10
bindsym $mod+Shift+F1 move container to workspace number $WSalt1
bindsym $mod+Shift+F2 move container to workspace number $WSalt2
bindsym $mod+Shift+F3 move container to workspace number $WSalt3
bindsym $mod+Shift+F4 move container to workspace number $WSalt4
bindsym $mod+Shift+F5 move container to workspace number $WSalt5
bindsym $mod+Shift+F6 move container to workspace number $WSalt6
bindsym $mod+Shift+F7 move container to workspace number $WSalt7
bindsym $mod+Shift+F8 move container to workspace number $WSalt8
bindsym $mod+Shift+F9 move container to workspace number $WSalt9
bindsym $mod+Shift+F10 move container to workspace number $WSalt10
bindsym $mod+comma focus output left
bindsym $mod+period focus output right
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
# open i3-input
bindsym $mod+Shift+grave exec i3-input
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
#bindsym semicolon resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
#status_command i3status
status_command py3status -c ~/.config/i3status/py3status.conf
# gaps
#i3bar_command i3bar -t
height 24
#position top
#separator_symbol "|"
tray_output $OUTPUT1
tray_padding 0
colors {
background #000000
statusline #ffffff
separator #666666
focused_workspace #880044 #bb0066 #ffffff
active_workspace #333333 #5f676a #ffffff
inactive_workspace #333333 #222222 #888888
urgent_workspace #2f343a #900000 #ffffff
binding_mode #2f343a #900000 #ffffff
}
}
# Colors
# class border backgr. text indicator child_border
client.focused #880044 #bb0066 #ffffff #9933dd #880044
client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
client.unfocused #333333 #222222 #888888 #292d2e #222222
client.urgent #2f343a #c00000 #ffffff #900000 #900000
client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
client.background #ffffff
#----------------
# sort this stuff
#----------------
exec --no-startup-id redshift-gtk
exec --no-startup-id volumeicon
exec --no-startup-id nextcloud
#exec --no-startup-id dropbox
# Script that auto clears X primary selection on window focus events
# (uses xdotool and xclip, effectively disables middle mouse paste)
#exec --no-startup-id /home/lexi/bin/xprimaryselection-autoclear.pl
# Switch between PulseAudio profiles (analog/HDMI) using Shift + Mute key
bindsym Shift+XF86AudioMute exec --no-startup-id "~/bin/paprofile -n toggle"
# Lock screen
bindsym XF86ScreenSaver exec --no-startup-id "loginctl lock-session"
# Display/projector key: auto detect displays
bindsym XF86Display exec --no-startup-id "~/bin/xrandr-autodetect"
# Window rules
for_window [instance="meowstuck"] floating enable
# Gaps
#for_window [class="^.*"] border pixel 1
##for_window [class="^.*"] border normal
#
#set $gaps_default_outer 0
#set $gaps_default_inner 8
#
#gaps outer $gaps_default_outer
#gaps inner $gaps_default_inner
#
#
#set $mode_gaps Gaps: inner [i/j/9/n], outer [o/k/0/m], global [+Shift]
#bindsym $mod+Shift+g mode "$mode_gaps"
#
#mode "$mode_gaps" {
# bindsym i gaps inner current plus 2
# bindsym j gaps inner current minus 2
# bindsym 9 gaps inner current set 0
# bindsym n gaps inner current set $gaps_default_inner
#
# bindsym Shift+i gaps inner all plus 2
# bindsym Shift+j gaps inner all minus 2
# bindsym Shift+9 gaps inner all set 0
# bindsym Shift+n gaps inner current set $gaps_default_inner
#
# bindsym o gaps outer current plus 2
# bindsym k gaps outer current minus 2
# bindsym 0 gaps outer current set 0
# bindsym m gaps outer current set $gaps_default_outer
#
# bindsym Shift+o gaps outer all plus 2
# bindsym Shift+k gaps outer all minus 2
# bindsym Shift+0 gaps outer all set 0
# bindsym Shift+m gaps outer current set $gaps_default_outer
#
# bindsym Return mode "default"
# bindsym Escape mode "default"
#}
# open empty container
bindsym $mod+o open
# open passmenu
bindsym $mod+Shift+p exec passmenu