Updated i3 conf

updated binding which had deprecated scripts
removed variables which were used only once or twice
added hibernation to HDD
This commit is contained in:
Nerrufam 2020-03-22 16:13:26 +01:00 committed by GitHub
parent b4881565d9
commit cc828c02c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,11 +12,7 @@ gaps inner 15
gaps outer 15
set $term --no-startup-id $TERMINAL
set $mod 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 $hibernate sudo -A systemctl suspend
# #---Dropdown Windows---# #
# General dropdown window traits. The order can matter.
@ -49,7 +45,7 @@ bindsym $mod+Escape workspace prev
bindsym $mod+Shift+Escape exec --no-startup-id prompt "Exit i3?" "i3 exit"
# bindsym $mod+BackSpace
bindsym $mod+Shift+BackSpace exec --no-startup-id prompt "Reboot computer?" "$reboot"
bindsym $mod+Shift+BackSpace exec --no-startup-id prompt "Reboot computer?" "sudo -A shutdown -r now"
bindsym $mod+grave exec --no-startup-id dmenuunicode
##bindsym $mod+asciitilde
@ -72,12 +68,12 @@ bindsym $mod+e exec $term -e neomutt && pkill -RTMIN+12 i3blocks
bindsym $mod+Shift+e exec --no-startup-id tutorialvids
bindsym $mod+r exec $term -e lf
bindsym $mod+Shift+r exec --no-startup-id winresize
#bindsym $mod+Shift+r
bindsym $mod+t split toggle
bindsym $mod+Shift+t gaps inner current set 15; gaps outer current set 15
bindsym $mod+y exec $term -e calcurse -D ~/.config/calcurse
#bindsym $mod+y
bindsym $mod+Shift+y exec --no-startup-id i3resize left
bindsym $mod+u exec --no-startup-id ddspawn tmuxdd
@ -90,7 +86,7 @@ bindsym $mod+o sticky toggle
bindsym $mod+Shift+o exec --no-startup-id i3resize right
bindsym $mod+p exec --no-startup-id mpc toggle
bindsym $mod+Shift+p exec --no-startup-id mpc pause
bindsym $mod+Shift+p exec --no-startup-id mpc pause && pauseallmpv
bindsym $mod+a exec --no-startup-id ddspawn dropdowncalc -f mono:pixelsize=24
bindsym $mod+Shift+a exec $term -e alsamixer
@ -131,13 +127,13 @@ bindsym $mod+z gaps outer current plus 5
bindsym $mod+Shift+z gaps outer current minus 5
bindsym $mod+x exec --no-startup-id mpc pause; exec --no-startup-id pauseallmpv ; exec --no-startup-id i3lock -e -f -c 1d2021 ; exec --no-startup-id xset dpms force off
bindsym $mod+Shift+x exec --no-startup-id prompt "Shutdown computer?" "$shutdown"
bindsym $mod+Shift+x exec --no-startup-id prompt "Shutdown computer?" "sudo -A shutdown -h now"
bindsym $mod+c exec --no-startup-id cabl
bindsym $mod+Shift+c exec --no-startup-id camtoggle
bindsym $mod+c exec $term -e calcurse -D ~/.config/calcurse
bindsym $mod+Shift+c exec --no-startup-id mpv --no-osc --no-input-default-bindings --input-conf=/dev/null --title='mpvfloat' /dev/video0
bindsym $mod+v exec --no-startup-id $term -e $EDITOR -c "VimwikiIndex"
#bindsym $mod+Shift+v
bindsym $mod+Shift+v exec --no-startup-id clipmenu
bindsym $mod+b bar mode toggle
bindsym $mod+Shift+b floating toggle; sticky toggle; exec --no-startup-id hover left
@ -221,7 +217,7 @@ no_focus [title="mpvfloat"]
bindsym $mod+F1 exec --no-startup-id groff -mom ~/.local/share/larbs/readme.mom -Tpdf | zathura -
bindsym $mod+F2 restart
bindsym $mod+F3 exec --no-startup-id displayselect
bindsym $mod+F4 exec --no-startup-id prompt "Hibernate computer?" "$hibernate"
bindsym $mod+F4 exec --no-startup-id prompt "Suspend computer?" "sudo -A systemctl suspend"
bindsym $mod+F5 exec --no-startup-id $netrefresh
bindsym $mod+F6 exec --no-startup-id torwrap
bindsym $mod+F7 exec --no-startup-id td-toggle
@ -231,6 +227,7 @@ bindsym $mod+F10 exec --no-startup-id dmenuumount
bindsym $mod+F11 exec --no-startup-id ducksearch
bindsym $mod+F12 exec $term -e nmtui
bindsym $mod+Shift+F1 exec --no-startup-id toggle-welcome
bindsym $mod+Shift+F4 exec --no-startup-id prompt "Hibernate computer?" "sudo -A systemctl hibernate"
# #---Arrow Keys---# #
bindsym $mod+Left focus left
@ -259,27 +256,27 @@ bindsym $mod+Shift+greater exec --no-startup-id mpc next
# For advancing forward/backward in an mpd song
bindsym $mod+bracketleft exec --no-startup-id mpc seek -10
bindsym $mod+Shift+bracketleft exec --no-startup-id mpc seek -120
bindsym $mod+Shift+bracketleft exec --no-startup-id mpc seek -60
bindsym $mod+bracketright exec --no-startup-id mpc seek +10
bindsym $mod+Shift+bracketright exec --no-startup-id mpc seek +120
bindsym $mod+Shift+bracketright exec --no-startup-id mpc seek +60
# For screenshots and recording
bindsym Print exec --no-startup-id maim pic-full-"$(date '+%y%m%d-%H%M-%S').png"
bindsym Shift+Print exec --no-startup-id maimpick
bindsym $mod+Print exec --no-startup-id dmenurecord
bindsym $mod+Delete exec --no-startup-id dmenurecord kill
bindsym $mod+Scroll_Lock exec --no-startup-id "killall screenkey || screenkey"
bindsym $mod+Delete exec $stoprec
bindsym XF86Launch1 exec --no-startup-id xset dpms force off
# #---Extra XF86 Keys---# #
bindsym XF86AudioMute exec --no-startup-id lmc toggle
bindsym XF86AudioLowerVolume exec --no-startup-id lmc down
bindsym XF86AudioMute exec --no-startup-id lmc toggle
bindsym XF86AudioLowerVolume exec --no-startup-id lmc down
bindsym Shift+XF86AudioLowerVolume exec --no-startup-id lmc down 10
bindsym Control+XF86AudioLowerVolume exec --no-startup-id lmc down 1
bindsym XF86AudioRaiseVolume exec --no-startup-id lmc up
bindsym XF86AudioRaiseVolume exec --no-startup-id lmc up
bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id lmc up 10
bindsym Control+XF86AudioRaiseVolume exec --no-startup-id lmc up 1
bindsym XF86PowerOff exec --no-startup-id prompt "Shutdown computer?" "$shutdown"
bindsym XF86PowerOff exec --no-startup-id prompt "Shutdown computer?" "sudo -A shutdown -h now"
##bindsym XF86Copy exec
##bindsym XF86Open exec
##bindsym XF86Paste exec
@ -331,7 +328,7 @@ bindsym XF86TouchpadOn exec --no-startup-id synclient TouchpadOff=0
bindsym XF86TouchpadOff exec --no-startup-id synclient TouchpadOff=1
bindsym XF86Suspend exec --no-startup-id lockscreen
bindsym XF86Close kill
bindsym XF86WebCam exec --no-startup-id camtoggle
bindsym XF86WebCam exec --no-startup-id mpv --no-osc --no-input-default-bindings --input-conf=/dev/null --title='mpvfloat' /dev/video0
bindsym XF86Mail exec $term -e neomutt && pkill -RTMIN+12 i3blocks
bindsym XF86Messenger exec $term -e weechat
bindsym XF86Search exec $BROWSER https://duckduckgo.com