Skip to content

Instantly share code, notes, and snippets.

@jwhendy
Created June 24, 2018 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwhendy/9ce7ede18ca515ee5f65a3fa5d2a6308 to your computer and use it in GitHub Desktop.
Save jwhendy/9ce7ede18ca515ee5f65a3fa5d2a6308 to your computer and use it in GitHub Desktop.
font pango:Hack 10
hide_edge_borders both
for_window [class="^.*"] border pixel 1
for_window [class=".*"] title_format " %title"
gaps inner 15
gaps outer 10
set $mod Mod4
floating_modifier $mod
bindsym $mod+bracketleft gaps inner all plus 5
bindsym $mod+bracketright gaps inner all minus 5
bindsym $mod+Shift+bracketleft gaps outer all plus 5
bindsym $mod+Shift+bracketright gaps outer all minus 5
set $flash exec transset-df --actual --min 0.5 && sleep 0.1 && transset-df --actual --max 1 && sleep 0.1 && transset-df --actual --min 0.5 && sleep 0.1 && transset-df --actual --max 1
set $ws_script /home/jwhendy/installed/scripts/i3-workspaces.py
for_window [instance="math"] floating enable
for_window [instance="math"] resize set 800 500
for_window [instance="math"] move scratchpad
exec urxvt -name math
bindsym $mod+b [instance="math"] scratchpad show; [instance="math"] move position center
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
bindsym $mod+Shift+h resize shrink width 10 px or 10 ppt
bindsym $mod+Shift+j resize grow height 10 px or 10 ppt
bindsym $mod+Shift+k resize shrink height 10 px or 10 ppt
bindsym $mod+Shift+l resize grow width 10 px or 10 ppt
bindsym $mod+grave $flash
bindsym $mod+space focus mode_toggle
bindsym $mod+Return exec urxvt
bindsym $mod+Shift+space floating toggle
bindsym Control+Mod1+Right workspace next
bindsym Control+Mod1+Left workspace prev
bindsym Control+Mod1+Shift+Right exec $ws_script 1 True
bindsym Control+Mod1+Shift+Left exec $ws_script -1 True
bindsym Mod1+q kill
bindsym XF86AudioRaiseVolume exec pamixer --allow-boost -i 3
bindsym XF86AudioLowerVolume exec pamixer --allow-boost -d 3
bindsym XF86AudioMute exec pamixer -t
bindsym XF86MonBrightnessDown exec xbacklight -dec 7 -time 150
bindsym XF86MonBrightnessUp exec xbacklight -inc 7 -time 150
bindsym --release Print exec scrot -d 3 'full_%Y-%m-%d_%H%M%S.png'
bindsym --release $mod+Print exec scrot -s 'grab_%Y-%m-%d_%H%M%S.png'
bindsym Control+Mod1+t exec urxvt
bindsym Control+Mod1+e exec emacs
bindsym Control+Mod1+i exec firefox
bindsym Control+Mod1+j exec thunar
bindsym Control+Mod1+l exec ~/installed/scripts/slock.sh
bindsym $mod+e layout toggle split
bindsym $mod+t layout tabbed
bindsym $mod+i exec firefox
bindsym $mod+a focus parent
bindsym $mod+s layout stacking
bindsym $mod+d exec rofi -show run -lines 3 -eh 2 -width 50 -font "Hack 11"
bindsym $mod+f fullscreen toggle
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
bindsym $mod+c focus child
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'"
bindsym $mod+shift+r restart
bindsym $mod+shift+t exec geeqie
bindsym $mod+Shift+c reload
exec --no-startup-id compton -b --config ~/.config/compton/config
exec --no-startup-id dunst
exec_always --no-startup-id killall polybar; polybar -r example
exec_always --no-startup-id feh --bg-scale /home/jwhendy/installed/config/bkgs/hubble_airbrush_2.jpg
exec --no-startup-id wicd
client.focused #555555 #444444 #dddddd #2e9ef4
client.focused_inactive #00000000 #222222 #888888 #484e50
client.unfocused #333333 #222222 #888888 #292d2e
client.urgent #2f343aff #900000 #ffffff #900000
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10
# silentcast workaround
set $enable_floating_fullscreen border none,fullscreen disable,floating enable,move absolute position 0 0,resize set 1920 1080
set $work_in_temp move container to workspace Silentcast,workspace Silentcast
set $return_from_temp move container to workspace back_and_forth,workspace back_and_forth
set $iconify move container to workspace Silentcast,workspace Silentcast,floating disable,fullscreen enable,workspace back_and_forth
set $deiconify workspace Silentcast,border none,fullscreen disable,floating enable,move absolute position 0 0,resize set 1920 1080,move container to workspace back_and_forth,workspace back_and_forth
bindsym $mod+Shift+s [class="Silentcast"] $work_in_temp,$enable_floating_fullscreen,$return_from_temp
bindsym $mod+z [class="Silentcast"] $iconify
bindsym $mod+x [class="Silentcast"] $deiconify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment