i3 config cleanup

This commit is contained in:
Luke Smith 2018-07-07 16:52:45 -04:00
parent a87c9b4305
commit 4cd72fc39a

View file

@ -22,7 +22,10 @@ gaps outer 15
set $mod Mod4 set $mod Mod4
set $term --no-startup-id st set $term --no-startup-id st
set $stoprec --no-startup-id killrecording set $stoprec --no-startup-id killrecording
exec --no-startup-id rm -f ~/.larbs/.recording set $shutdown sudo shutdown -h now
set $reboot sudo reboot
set $netrefresh --no-startup-id sudo systemctl restart NetworkManager
set $hibernate sudo systemctl suspend
# #---Starting External Scripts---# # # #---Starting External Scripts---# #
# Setting the background: # Setting the background:
@ -33,7 +36,7 @@ exec --no-startup-id dunst
# Music player daemon: # Music player daemon:
exec --no-startup-id mpd exec --no-startup-id mpd
# Torrent daemon: # Torrent daemon:
exec --no-startup-id transmission-daemon #exec --no-startup-id transmission-daemon
# Composite manager: # Composite manager:
exec --no-startup-id compton --xrender-sync-fence exec --no-startup-id compton --xrender-sync-fence
# Launch Polybar where appropriate: # Launch Polybar where appropriate:
@ -44,7 +47,12 @@ exec --no-startup-id ~/.scripts/remaps
exec --no-startup-id unclutter exec --no-startup-id unclutter
# Network Manager applet # Network Manager applet
exec --no-startup-id nm-applet exec --no-startup-id nm-applet
# Run the script to update the mpd i3block on change.
exec --no-startup-id "pgrep -x i3mpdupdate || i3mpdupdate"
# Remove recording icon if not properly closed on last shutdown.
exec --no-startup-id rm -f ~/.larbs/.recording
# Set Xresources colors:
set_from_resource $darkblack color0 #000000 set_from_resource $darkblack color0 #000000
set_from_resource $black color8 #000000 set_from_resource $black color8 #000000
set_from_resource $darkred color1 #000000 set_from_resource $darkred color1 #000000
@ -86,24 +94,6 @@ bar {
mode dock mode dock
modifier None modifier None
} }
# Run the script to update the mpd i3block on change.
exec --no-startup-id "pgrep -x i3mpdupdate || i3mpdupdate"
#OPENRC
#set $shutdown sudo openrc-shutdown -p
#set $reboot sudo openrc-shutdown -r
#set $netrefresh --no-startup-id sudo rc-service NetworkManager restart
#RUNIT
#set $shutdown sudo shutdown -h now
#set $reboot sudo reboot
#set $netrefresh --no-startup-id sudo sv restart NetworkManager
#SYSTEMD
set $shutdown sudo shutdown -h now
set $reboot sudo reboot
set $netrefresh --no-startup-id sudo systemctl restart NetworkManager
set $hibernate sudo systemctl suspend
# #---Basic Bindings---# # # #---Basic Bindings---# #
bindsym $mod+Return exec $term bindsym $mod+Return exec $term
@ -152,7 +142,6 @@ bindsym $mod+Shift+i exec --no-startup-id "bash ~/.scripts/i3resize up"
bindsym $mod+o sticky toggle bindsym $mod+o sticky toggle
bindsym $mod+Shift+o exec --no-startup-id "bash ~/.scripts/i3resize right" bindsym $mod+Shift+o exec --no-startup-id "bash ~/.scripts/i3resize right"
bindsym $mod+p exec --no-startup-id lmc toggle bindsym $mod+p exec --no-startup-id lmc toggle
#bindsym $mod+Shift+p #bindsym $mod+Shift+p
@ -208,7 +197,6 @@ bindsym $mod+n exec $term -e newsboat
bindsym $mod+m exec --no-startup-id st -e ncmpcpp bindsym $mod+m exec --no-startup-id st -e ncmpcpp
bindsym $mod+Shift+m exec --no-startup-id lmc mute bindsym $mod+Shift+m exec --no-startup-id lmc mute
# #---Workspace Bindings---# # # #---Workspace Bindings---# #
bindsym $mod+Home workspace $ws1 bindsym $mod+Home workspace $ws1
bindsym $mod+Shift+Home move container to workspace $ws1 bindsym $mod+Shift+Home move container to workspace $ws1
@ -271,6 +259,7 @@ for_window [class="marble"] move to workspace $ws7
for_window [title="GIMP Startup"] move workspace $ws5 for_window [title="GIMP Startup"] move workspace $ws5
for_window [class="Gimp"] move workspace $ws5 for_window [class="Gimp"] move workspace $ws5
for_window [window_role="GtkFileChooserDialog"] resize shrink height 10 px for_window [window_role="GtkFileChooserDialog"] resize shrink height 10 px
for_window [title="Default - Wine desktop"] floating enable
# First I have a tmux window used for background scripts. # First I have a tmux window used for background scripts.
# I'll later bind this to mod+u. # I'll later bind this to mod+u.
@ -290,14 +279,6 @@ for_window [instance="math"] move scratchpad
for_window [instance="math"] border pixel 5 for_window [instance="math"] border pixel 5
exec --no-startup-id $term -n math -f mono:pixelsize=24 -e dropdowncalc exec --no-startup-id $term -n math -f mono:pixelsize=24 -e dropdowncalc
# Bindings to make the webcam float and stick.
for_window [title="mpvfloat"] floating enable
for_window [title="mpvfloat"] sticky enable
for_window [title="mpvfloat"] border pixel 0
no_focus [title="mpvfloat"]
for_window [title="Default - Wine desktop"] floating enable
# #---Function Buttons---# # # #---Function Buttons---# #
bindsym $mod+F1 exec --no-startup-id zathura ~/.config/i3/i3_guide.pdf bindsym $mod+F1 exec --no-startup-id zathura ~/.config/i3/i3_guide.pdf
bindsym $mod+F2 restart bindsym $mod+F2 restart
@ -312,7 +293,6 @@ bindsym $mod+F10 exec --no-startup-id dmenuumount
##bindsym $mod+F11 ##bindsym $mod+F11
##bindsym $mod+F12 ##bindsym $mod+F12
# #---Arrow Keys---# # # #---Arrow Keys---# #
bindsym $mod+Left focus left bindsym $mod+Left focus left
bindsym $mod+Down focus down bindsym $mod+Down focus down
@ -323,7 +303,6 @@ bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right bindsym $mod+Shift+Right move right
# #---Media Keys---# # # #---Media Keys---# #
# Volume keys # Volume keys
@ -362,7 +341,7 @@ bindsym XF86PowerOff exec --no-startup-id prompt "Are you sure you want to shut
##bindsym XF86Cut exec ##bindsym XF86Cut exec
##bindsym XF86MenuKB exec ##bindsym XF86MenuKB exec
bindsym XF86Calculator exec $term -e R -q bindsym XF86Calculator exec $term -e R -q
bindsym XF86Sleep exec sudo zzz bindsym XF86Sleep exec $hibernate
##bindsym XF86WakeUp exec ##bindsym XF86WakeUp exec
bindsym XF86Explorer exec $term -e ranger bindsym XF86Explorer exec $term -e ranger
##bindsym XF86Send exec ##bindsym XF86Send exec