dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit e593be00e108403a142ae31da2153fa6fd9cea8b
parent aa02586a7e9cdfda4c483e583e8373497f43c407
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed,  9 Jan 2019 17:13:07 +0100

Clean-up and consolidate i3 config

Diffstat:
Mlinks/.config/i3/config | 192++++++++++++++++++++++++++++++++-----------------------------------------------
1 file changed, 78 insertions(+), 114 deletions(-)

diff --git a/links/.config/i3/config b/links/.config/i3/config @@ -4,12 +4,24 @@ set $gaps_inner 15 set $gaps_outer 10 set $term --no-startup-id st -set $mod Mod4 +set $mod Mod1 +set $modalt Mod4 set $stoprec --no-startup-id dmenurecord kill set $shutdown sudo -A shutdown -h now set $reboot sudo -A reboot set $netrefresh --no-startup-id sudo -A systemctl restart NetworkManager +set $work1 1 +set $work2 2 +set $work3 3 +set $work4 4 +set $work5 5 +set $work6 6 +set $work7 7 +set $work8 8 +set $work9 9 +set $work10 10 + font xft:PragmataPro 9 gaps inner $gaps_inner @@ -59,55 +71,64 @@ client.background $black # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod -# start a terminal +# key bindings bindsym $mod+Return exec $term -e tmux bindsym $mod+Shift+Return exec $term +bindsym $mod+grave exec --no-startup-id ddspawn tmuxdd +bindsym $mod+comma exec signal-desktop +bindsym $mod+space exec dmenu_run -nb \#222222 -nf \#888888 -sb \#333333 -sf \#ffffff -fn PragmataPro +bindsym $modalt+space exec gducksearch +bindsym $mod+Tab focus mode_toggle -# other application launchers bindsym $mod+a exec $term -e pulsemixer -bindsym Mod1+space exec gducksearch -bindsym $mod+e exec $term -e vim -bindsym $mod+m exec $term -e gtmux-mutt.sh -bindsym $mod+r exec $term -e gtmux-newsboat.sh +bindsym $mod+b exec $term -e gboard ~/doc bindsym $mod+c exec $term -e calcurse #bindsym $mod+Shift+c exec $term -e ggoogle-cloud-lamps-instance1-ssh.sh +bindsym $mod+$modalt+c exec --no-startup-id gshowclip +bindsym $mod+Shift+c exec --no-startup-id gxcqr +bindsym $mod+e exec $term -e vim +bindsym $mod+f fullscreen +bindsym $mod+Shift+f floating toggle +#bindsym $mod+g bindsym $mod+i exec $term -e htop -bindsym $mod+y exec $term -e youtube-viewer -bindsym $mod+Mod1+y exec $term -e youtube-viewer --novideo -bindsym $mod+b exec $term -e gboard ~/doc -bindsym $mod+comma exec signal-desktop +bindsym $mod+h focus left +bindsym $mod+j focus down +bindsym $mod+k focus up +bindsym $mod+l focus right +bindsym $mod+$modalt+l exec --no-startup-id keyboard-layout-switch.sh && pkill -RTMIN+3 i3blocks +bindsym $mod+m exec $term -e gtmux-mutt.sh +bindsym $mod+n exec $term -e ranger +bindsym $mod+o sticky toggle +bindsym $mod+p exec --no-startup-id ddspawn dropdowncalc +bindsym $mod+q kill +bindsym $mod+r exec $term -e gtmux-newsboat.sh +#bindsym $mod+s layout stacking +bindsym $mod+t exec --no-startup-id textqr +bindsym $mod+u exec --no-startup-id dmenuunicode +#bindsym $mod+v bindsym $mod+w exec firefox +bindsym $mod+x exec xlock +bindsym $mod+y exec $term -e youtube-viewer +bindsym $mod+$modalt+y exec $term -e youtube-viewer --novideo bindsym $mod+Shift+w exec tor-browser -bindsym Mod1+Mod4+l exec --no-startup-id gkeyboard-layout-switch.sh && pkill -RTMIN+3 i3blocks -bindsym $mod+n exec $term -e ranger -# clipboard commands -bindsym $mod+Mod1+c exec --no-startup-id gshowclip -bindsym $mod+Shift+c exec --no-startup-id gxcqr +# function keys +bindsym $mod+F5 exec --no-startup-id $netrefresh +bindsym $mod+Shift+F5 exec $term -e nmtui +bindsym $mod+F7 exec --no-startup-id displayselect +bindsym $mod+F8 exec --no-startup-id t-daemon-toggle +bindsym $mod+F9 exec --no-startup-id dmenumount +bindsym $mod+F10 exec --no-startup-id dmenuumount -# volume control with alsamixer -#bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master 3%+ unmute && pkill -RTMIN+4 i3blocks -#bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master 3%- unmute && pkill -RTMIN+4 i3blocks -#bindsym XF86AudioMute exec --no-startup-id amixer set Master toggle && pkill -RTMIN+4 i3blocks -#bindsym XF86AudioMicMute exec --no-startup-id amixer set 'Mic Mute' toggle && pkill -RTMIN+4 i3blocks +# special keys +bindsym XF86Launch1 exec --no-startup-id xrandr --output LVDS1 --auto --scale 1.0x1.0 && wallpaper.sh +bindsym XF86KbdBrightnessDown exec --no-startup-id kbd_backlight.sh down +bindsym XF86KbdBrightnessUp exec --no-startup-id kbd_backlight.sh up bindsym XF86AudioRaiseVolume exec --no-startup-id pulsemixer --unmute --change-volume +3 && pkill -RTMIN+4 i3blocks bindsym XF86AudioLowerVolume exec --no-startup-id pulsemixer --unmute --change-volume -3 && pkill -RTMIN+4 i3blocks bindsym XF86AudioMute exec --no-startup-id pulsemixer --toggle-mute && pkill -RTMIN+4 i3blocks - -# interactive dialogs -#bindsym $mod+grave exec --no-startup-id dmenuunicode -bindsym $mod+u exec --no-startup-id dmenuunicode -bindsym $mod+F8 exec --no-startup-id t-daemon-toggle -bindsym $mod+F9 exec --no-startup-id dmenumount -bindsym $mod+F10 exec --no-startup-id dmenuumount -bindsym $mod+t exec --no-startup-id textqr - -bindsym $mod+grave exec --no-startup-id ddspawn tmuxdd -bindsym $mod+p exec --no-startup-id ddspawn dropdowncalc - -# keyboard backlight -bindsym XF86KbdBrightnessDown exec --no-startup-id kbd_backlight.sh down -bindsym XF86KbdBrightnessUp exec --no-startup-id kbd_backlight.sh up +bindsym XF86ScreenSaver exec --no-startup-id xlock +bindsym XF86Sleep exec --no-startup-id zzz # mpd control bindsym Control+Shift+m exec $term -e ncmpcpp @@ -116,33 +137,11 @@ bindsym Control+Shift+n exec --no-startup-id mpc next && pkill -RTMIN+14 i3block bindsym Control+Shift+b exec --no-startup-id mpc prev && pkill -RTMIN+14 i3blocks bindsym Control+Shift+s exec --no-startup-id mpc stop && pkill -RTMIN+14 i3blocks -# configure displays -bindsym $mod+F7 exec --no-startup-id displayselect -bindsym XF86Launch1 exec --no-startup-id xrandr --output LVDS1 --auto --scale 1.0x1.0 && wallpaper.sh - -# screen lock -#bindsym $mod+z exec zzz -#bindsym $mod+x exec xlock -bindsym XF86ScreenSaver exec xlock -bindsym XF86Sleep exec zzz - # screen capture bindsym Print exec --no-startup-id maim ~/tmp/pic-full-"$(date '+%y%m%d-%H%M-%S').png" bindsym Shift+Print exec --no-startup-id maimpick bindsym $mod+Scroll_Lock exec --no-startup-id "killall screenkey || screenkey --font-color red" -# kill focused window -bindsym $mod+q kill - -# start dmenu (a program launcher) -bindsym $mod+space exec dmenu_run -nb \#222222 -nf \#888888 -sb \#333333 -sf \#ffffff -fn PragmataPro - -# change focus -bindsym $mod+h focus left -bindsym $mod+j focus down -bindsym $mod+k focus up -bindsym $mod+l focus right - # move focused window bindsym $mod+Shift+h move left bindsym $mod+Shift+j move down @@ -154,52 +153,35 @@ bindsym $mod+slash split toggle bindsym $mod+Control+l split h bindsym $mod+Control+j split v -# enter fullscreen mode for the focused container -bindsym $mod+f fullscreen - -# change container layout (stacked, tabbed, toggle split) -#bindsym $mod+s layout stacking #bindsym $mod+w layout tabbed #bindsym $mod+e layout toggle split -# toggle tiling / floating -bindsym $mod+Shift+f floating toggle - -# change focus between tiling / floating windows -bindsym $mod+Tab focus mode_toggle - -# focus the parent container -#bindsym $mod+a focus parent - -# focus the child container -bindsym $mod+d focus child - # switch to 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+7 workspace 7 -bindsym $mod+8 workspace 8 -bindsym $mod+9 workspace 9 -bindsym $mod+0 workspace 10 +bindsym $mod+1 workspace $work1 +bindsym $mod+2 workspace $work2 +bindsym $mod+3 workspace $work3 +bindsym $mod+4 workspace $work4 +bindsym $mod+5 workspace $work5 +bindsym $mod+6 workspace $work6 +bindsym $mod+7 workspace $work7 +bindsym $mod+8 workspace $work8 +bindsym $mod+9 workspace $work9 +bindsym $mod+0 workspace $work10 # move focused container to workspace -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 -bindsym $mod+Shift+7 move container to workspace 7 -bindsym $mod+Shift+8 move container to workspace 8 -bindsym $mod+Shift+9 move container to workspace 9 -bindsym $mod+Shift+0 move container to workspace 10 +bindsym $mod+Shift+1 move container to workspace $work1 +bindsym $mod+Shift+2 move container to workspace $work2 +bindsym $mod+Shift+3 move container to workspace $work3 +bindsym $mod+Shift+4 move container to workspace $work4 +bindsym $mod+Shift+5 move container to workspace $work5 +bindsym $mod+Shift+6 move container to workspace $work6 +bindsym $mod+Shift+7 move container to workspace $work7 +bindsym $mod+Shift+8 move container to workspace $work8 +bindsym $mod+Shift+9 move container to workspace $work9 +bindsym $mod+Shift+0 move container to workspace $work10 # reload the configuration file -bindsym $mod+Mod1+Shift+r reload +bindsym $mod+$modalt+Shift+r 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) @@ -213,21 +195,6 @@ bindsym $mod+z gaps outer current plus 5 bindsym $mod+Shift+z gaps outer current minus 5 bindsym $mod+Shift+t gaps inner current set $gaps_inner; gaps outer current set $gaps_outer -bindsym $mod+o sticky toggle - -# resize window (you can also use the mouse for that) -mode "resize" { - # These bindings trigger as soon as you enter the resize mode - bindsym h resize shrink width 5 px or 5 ppt - bindsym j resize grow height 5 px or 5 ppt - bindsym k resize shrink height 5 px or 5 ppt - bindsym l resize grow width 5 px or 5 ppt - - # back to normal: Enter or Escape - bindsym Return mode "default" - bindsym Escape mode "default" -} -#bindsym $mod+r mode "resize" bindsym $mod+Shift+y exec --no-startup-id i3resize left bindsym $mod+Shift+u exec --no-startup-id i3resize down bindsym $mod+Shift+i exec --no-startup-id i3resize up @@ -254,9 +221,6 @@ bar { } } -bindsym $mod+F5 exec --no-startup-id $netrefresh -bindsym $mod+Shift+F5 exec $term -e nmtui -#bindsym XF86WLAN exec $term -e nmtui # auto-start programs exec --no-startup-id unclutter