#okubax # GENERAL {{{ set $mod Mod4 floating_modifier $mod popup_during_fullscreen smart gaps inner 10 gaps outer 10 font pango: inconsolata 10 for_window [class=".*"] title_format " > %title" # Set colors from Xresources # Change 'color7' and 'color2' to whatever colors you want i3 to use # from the generated scheme. # NOTE: The '#f0f0f0' in the lines below is the color i3 will use if # it fails to get colors from Xresources. set_from_resource $fg i3wm.color2 #f0f0f0 set_from_resource $bg i3wm.color7 #f0f0f0 # class border backgr. text indicator child_border client.focused $bg $fg $bg $bg $bg client.focused_inactive $bg $bg $fg $bg $bg client.unfocused $bg $bg $fg $bg $bg client.urgent $bg $bg $fg $bg $bg client.placeholder $bg $bg $fg $bg $bg client.background $bg # WINDOW RULES {{{ for_window [class="xpad" instance="scratchpad"] move scratchpad for_window [class="Chromium|Firefox|MPlayer|Galculator|Code|Gsimplecal|Viewnior|xpad|calibre|Java|Spotify|Google-musicmanager|File-roller|Lxappearance|Arandr|Pavucontrol|emulator64-arm|Kamoso|PkgBrowser|Gimp|Main.py|qemu-system-x86_64|Pinentry"] floating enable for_window [class="URxvt"] floating enable,resize set 820 480 for_window [class="Thunar"] floating enable,resize set 880 640 for_window [title="TrueCrypt|Google Keep"] floating enable for_window [title="File Operation Progress" class="Thunar"] floating enable for_window [window_role="pop-up"] floating enable,move absolute center # force floating for all new windows #for_window [class="[.]*"] floating enable # }}} # KEYBINDS {{{ bindsym $mod+Shift+C reload bindsym $mod+Shift+R restart bindsym $mod+q kill bindsym $mod+Shift+E exit bindsym $mod+f fullscreen bindsym $mod+Shift+space floating toggle bindsym $mod+space focus mode_toggle bindsym $mod+bar split h bindsym $mod+underscore split v bindsym $mod+s layout stacking bindsym $mod+x layout tabbed bindsym $mod+z layout default # 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 # workspace bindsym $mod+1 workspace 1 bindsym $mod+2 workspace 2 bindsym $mod+3 workspace 3 bindsym $mod+4 workspace 4 bindsym $mod+5 workspace 5 bindsym $mod+6 workspace 6 bindsym $mod+Tab workspace back_and_forth bindsym $mod+Shift+1 move container to workspace 1 bindsym $mod+Shift+2 move container to workspace 2 bindsym $mod+Shift+3 move container to workspace 3 bindsym $mod+Shift+4 move container to workspace 4 bindsym $mod+Shift+5 move container to workspace 5 bindsym $mod+Shift+6 move container to workspace 6 assign [class="Qemu-system-x86_64"] → 5 assign [class="Zathura|Soffice|calibre|libreoffice-writer|libreoffice-calc"] → 4 assign [instance="libreoffice"] → 4 assign [class="Wine|Steam|dontstarve"] → 6 mode "resize" { # These bindings trigger as soon as you enter the resize mode 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 # arrow keys # # bindsym 113 right # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" } bindsym $mod+r mode "resize" # Audio Controls bindsym XF86AudioPlay exec "mpc toggle" bindsym XF86AudioStop exec "mpc stop" bindsym XF86AudioNext exec "mpc next" bindsym XF86AudioPrev exec "mpc prev" bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle bindsym mod1+a exec playerctl play bindsym mod1+s exec playerctl pause bindsym mod1+x exec playerctl next bindsym mod1+z exec playerctl previous #Backlight Controls #bindsym XF86MonBrightnessUp exec "xbacklight +10" #bindsym XF86MonBrightnessDown exec "xbacklight -10" bindsym Mod1+d exec --no-startup-id sudo bright_down bindsym Mod1+i exec --no-startup-id sudo bright_up #APPS bindsym $MOD+Return exec --no-startup-id urxvt #bindsym $mod+p exec --no-startup-id j4-dmenu-desktop --term urxvt --display-binar --dmenu "dmenu -b -sb '$bg1' -sf '$fg' -nb '$fg' -nf '$bg' -fn 'Consolas-9'" bindsym $mod+p exec $HOME/bin/dmen.sh bindsym $MOD+SHIFT+f exec thunar bindsym Mod1+w exec chromium bindsym $mod+w exec $HOME/.firefox/firefox bindsym $mod+b exec $HOME/downloads/tor-browser_en-US/Browser/start-tor-browser bindsym $mod+e exec $HOME/.VSCode-linux-x64/bin/code bindsym Mod1+l exec i3lock -i $HOME/.Xresources.d/lock.png bindsym Mod1+e exec urxvt -e mutt bindsym $mod+i exec urxvt -e weechat bindsym $mod+c exec gsimplecal bindsym Mod1+Shift+c exec galculator bindsym $MOD+SHIFT+t exec urxvt -e htop bindsym $MOD+SHIFT+x exec $HOME/bin/i3_session bindsym $mod+Shift+b bar mode toggle bindsym $MOD+SHIFT+plus move scratchpad bindsym $MOD+plus scratchpad show bindsym Print exec $HOME/bin/screen root bindsym Mod1+p exec $HOME/bin/screen active # }}} #bar { # mode hide # hidden_state hide # modifier Mod1 # position bottom # workspace_buttons no #} # PROGRAM AUTOSTART {{{ exec_always --no-startup-id $HOME/bin/wal-set & exec --no-startup-id sh $HOME/bin/hashwall exec --no-startup-id sh $HOME/.todo/todo-conky exec --no-startup-id unclutter & exec --no-startup-id xss-lock -- i3lock -i $HOME/.Xresources.d/lock.png & exec --no-startup-id $HOME/.dropbox-dist/dropboxd & exec --no-startup-id anamnesis --start & exec --no-startup-id mpd & exec --no-startup-id mpdscribble & exec --no-startup-id xrandr --dpi 120 & exec --no-startup-id redshift & exec --no-startup-id udiskie & exec --no-startup-id dunst -fn "$DUNST_FONT" -geometry "$DUNST_SIZE" & #exec --no-startup-id compton --config ~/.compton.conf -b #exec --no-startup-id xpad # }}} # vim:filetype=i3