i3: Polish up an ages-old config
This commit is contained in:
parent
9e1b4556d3
commit
35cd066f34
@ -47,7 +47,7 @@ xrdbupdate
|
|||||||
## SERVICES AND DAEMONS
|
## SERVICES AND DAEMONS
|
||||||
# Kill everything
|
# Kill everything
|
||||||
printf "[INFO] Stopping existing services\n"
|
printf "[INFO] Stopping existing services\n"
|
||||||
services="plasmashell xfdesktop polybar compton conky sxhkd dunst"
|
services="plasmashell krunner xfdesktop polybar compton conky sxhkd dunst"
|
||||||
for service in $services; do
|
for service in $services; do
|
||||||
printf " [INFO] Sending signal to all $service\n"
|
printf " [INFO] Sending signal to all $service\n"
|
||||||
killall $service
|
killall $service
|
||||||
|
@ -15,9 +15,6 @@ set $w5 5
|
|||||||
set $w6 6
|
set $w6 6
|
||||||
set $w7 7
|
set $w7 7
|
||||||
set $w8 8
|
set $w8 8
|
||||||
set $w9 9
|
|
||||||
set $w10 10
|
|
||||||
set $wVM VM
|
|
||||||
|
|
||||||
###################
|
###################
|
||||||
## Cosmetcs
|
## Cosmetcs
|
||||||
@ -47,27 +44,20 @@ set_from_resource $cyan2 color14 #8ec07c
|
|||||||
set_from_resource $fg color15 #ebdbb2
|
set_from_resource $fg color15 #ebdbb2
|
||||||
|
|
||||||
# Set up titlebar and i3bar fonts
|
# Set up titlebar and i3bar fonts
|
||||||
font pango:Wuncon Siji, xos4 Terminus 9
|
font pango:Roboto 10
|
||||||
|
|
||||||
# Titlebar and borders
|
# Titlebar and borders
|
||||||
new_window pixel 4
|
new_window pixel 4
|
||||||
for_window [class=".*"] border pixel 4
|
for_window [class=".*"] border pixel 4
|
||||||
for_window [class=".*"] title_format "%title"
|
for_window [class=".*"] title_format "%title"
|
||||||
|
|
||||||
# Plasma integration
|
|
||||||
exec --no-startup-id wmctrl -c Plasma
|
|
||||||
exec --no-startup-id killall plasmashell
|
|
||||||
exec --no-startup-id killall krunner
|
|
||||||
for_window [class="krunner"] floating enable; border none
|
|
||||||
|
|
||||||
# Miscellaneous window rules
|
# Miscellaneous window rules
|
||||||
for_window [class="VirtualBox Machine" title="Windows"] fullscreen enable; move container to workspace $wVM
|
|
||||||
for_window [class="Waterfox"] move to workspace $w1
|
for_window [class="Waterfox"] move to workspace $w1
|
||||||
for_window [class="Spotify"] move to workspace $w10
|
for_window [class="discord"] move to workspace $w7
|
||||||
#hide_edge_borders smart
|
for_window [class="Spotify"] move to workspace $w8
|
||||||
|
|
||||||
# i3-gaps configs
|
# i3-gaps configs
|
||||||
gaps inner 10
|
gaps inner 6
|
||||||
gaps outer 0
|
gaps outer 0
|
||||||
|
|
||||||
# Apply colors to i3
|
# Apply colors to i3
|
||||||
@ -80,29 +70,10 @@ gaps outer 0
|
|||||||
client.background $bg
|
client.background $bg
|
||||||
|
|
||||||
###################
|
###################
|
||||||
## Statusbars and Daemons
|
## Unified configuration script
|
||||||
###################
|
###################
|
||||||
|
|
||||||
exec_always --no-startup-id "killall polybar && ~/.config/polybar/start.sh"
|
exec_always --no-startup-id "~/.config/dtfscripts/wmstartup.sh"
|
||||||
#exec --no-startup-id "redshift"
|
|
||||||
#exec_always --no-startup-id "compton --config ~/.config/compton.conf"
|
|
||||||
#exec_always --no-startup-id "dunst"
|
|
||||||
#exec_always --no-startup-id "feh --randomize --bg-fill ~/Pictures/Wallpapers/.active"
|
|
||||||
#exec --no-startup-id "mopidy"
|
|
||||||
#exec --no-startup-id "syncthing -no-browser"
|
|
||||||
|
|
||||||
bindsym $mod+$shift+w exec --no-startup-id "feh --randomize --bg-fill ~/Pictures/Wallpapers/.active"
|
|
||||||
|
|
||||||
###################
|
|
||||||
## Settings
|
|
||||||
###################
|
|
||||||
|
|
||||||
# No terminal bell
|
|
||||||
exec --no-startup-id "xset -b"
|
|
||||||
# No DPMS (display blanking)
|
|
||||||
exec --no-startup-id "xset -dpms"
|
|
||||||
# No screensaver
|
|
||||||
exec --no-startup-id "xset s off"
|
|
||||||
|
|
||||||
###################
|
###################
|
||||||
## Keybindings
|
## Keybindings
|
||||||
@ -138,11 +109,6 @@ bindsym XF86MonBrightnessDown exec xbacklight -dec 5 # decrease screen brightnes
|
|||||||
bindsym $mod+p exec --no-startup-id "~/.local/bin/mpv-xwinwrap"
|
bindsym $mod+p exec --no-startup-id "~/.local/bin/mpv-xwinwrap"
|
||||||
bindsym $mod+$shift+p exec --no-startup-id "pkill xwinwrap"
|
bindsym $mod+$shift+p exec --no-startup-id "pkill xwinwrap"
|
||||||
|
|
||||||
# VM controls
|
|
||||||
bindsym $mod+grave exec --no-startup-id VBoxManage startvm "Windows 9"; workspace $wVM
|
|
||||||
bindsym $mod+$shift+grave exec --no-startup-id VBoxManage controlvm "Windows 9" acpipowerbutton
|
|
||||||
bindsym $sup+grave exec --no-startup-id VBoxManage controlvm "Windows 9" savestate
|
|
||||||
|
|
||||||
# Miscellaneous non-movement hotkeys
|
# Miscellaneous non-movement hotkeys
|
||||||
bindsym $mod+$shift+c reload
|
bindsym $mod+$shift+c reload
|
||||||
bindsym $mod+$shift+r restart
|
bindsym $mod+$shift+r restart
|
||||||
@ -195,9 +161,6 @@ bindsym $mod+e layout toggle split
|
|||||||
# toggle tiling / floating
|
# toggle tiling / floating
|
||||||
bindsym $mod+f floating toggle
|
bindsym $mod+f floating toggle
|
||||||
|
|
||||||
# change focus between tiling / floating windows
|
|
||||||
#bindsym $mod+space focus mode_toggle
|
|
||||||
|
|
||||||
# focus the parent container
|
# focus the parent container
|
||||||
bindsym $mod+a focus parent
|
bindsym $mod+a focus parent
|
||||||
|
|
||||||
@ -213,12 +176,10 @@ bindsym $mod+5 workspace $w5
|
|||||||
bindsym $mod+6 workspace $w6
|
bindsym $mod+6 workspace $w6
|
||||||
bindsym $mod+7 workspace $w7
|
bindsym $mod+7 workspace $w7
|
||||||
bindsym $mod+8 workspace $w8
|
bindsym $mod+8 workspace $w8
|
||||||
bindsym $mod+9 workspace $w9
|
|
||||||
bindsym $mod+0 workspace $w10
|
|
||||||
|
|
||||||
# switch to next and previous workspaces
|
# switch to next and previous workspaces
|
||||||
bindsym $mod+I workspace next
|
bindsym $mod+. workspace next
|
||||||
bindsym $mod+U workspace prev
|
bindsym $mod+, workspace prev
|
||||||
|
|
||||||
bindsym $ctl+$mod+Right workspace next
|
bindsym $ctl+$mod+Right workspace next
|
||||||
bindsym $ctl+$mod+Left workspace prev
|
bindsym $ctl+$mod+Left workspace prev
|
||||||
@ -232,8 +193,6 @@ bindsym $mod+$shift+5 move container to workspace $w5
|
|||||||
bindsym $mod+$shift+6 move container to workspace $w6
|
bindsym $mod+$shift+6 move container to workspace $w6
|
||||||
bindsym $mod+$shift+7 move container to workspace $w7
|
bindsym $mod+$shift+7 move container to workspace $w7
|
||||||
bindsym $mod+$shift+8 move container to workspace $w8
|
bindsym $mod+$shift+8 move container to workspace $w8
|
||||||
bindsym $mod+$shift+9 move container to workspace $w9
|
|
||||||
bindsym $mod+$shift+0 move container to workspace $w10
|
|
||||||
|
|
||||||
###################
|
###################
|
||||||
## Modes
|
## Modes
|
||||||
@ -258,50 +217,3 @@ mode "resize" {
|
|||||||
|
|
||||||
bindsym $mod+r mode "resize"
|
bindsym $mod+r mode "resize"
|
||||||
|
|
||||||
# Control Mopidy
|
|
||||||
mode "mopidy" {
|
|
||||||
# Shuffle, Repeat, and Consume
|
|
||||||
bindsym s exec --no-startup-id "~/.local/bin/mpc/mpc-i3-shuffle"
|
|
||||||
bindsym r exec --no-startup-id "~/.local/bin/mpc/mpc-i3-repeat"
|
|
||||||
bindsym e exec --no-startup-id "~/.local/bin/mpc/mpc-i3-consume"
|
|
||||||
|
|
||||||
# Volume keys
|
|
||||||
bindsym Up exec --no-startup-id "mpc volume +5"
|
|
||||||
bindsym Down exec --no-startup-id "mpc volume -5"
|
|
||||||
|
|
||||||
# Toggle playback
|
|
||||||
bindsym t exec --no-startup-id "mpc toggle; notify-send -a 'Mopidy' -u low -t 1 'Toggle' 'Toggled playback'
|
|
||||||
|
|
||||||
# Start playing a playlist
|
|
||||||
bindsym p exec --no-startup-id "~/.local/bin/mpc/mpc-i3-playlists --clear"
|
|
||||||
# Append a playlist
|
|
||||||
bindsym o exec --no-startup-id "~/.local/bin/mpc/mpc-i3-playlists"
|
|
||||||
|
|
||||||
# Skip between tracks
|
|
||||||
bindsym Right exec --no-startup-id "mpc next; notify-send -a 'Mopidy' -u low -t 1 'Next' 'The current song has been skipped'"
|
|
||||||
bindsym Left exec --no-startup-id "mpc prev; notify-send -a 'Mopidy' -u low -t 1 'Previous' 'Rewound to the previous song'"
|
|
||||||
|
|
||||||
# Stop it altogether
|
|
||||||
bindsym k exec --no-startup-id "mpc stop; notify-send -a 'Mopidy' -u low -t 1 'Stop' 'Playback has been stopped'"
|
|
||||||
# Start playback
|
|
||||||
bindsym l exec --no-startup-id "mpc play; notify-send -a 'Mopidy' -u low -t 1 'Play' 'Playback has been started'"
|
|
||||||
|
|
||||||
# back to normal: Enter, Escape, or MOD+M
|
|
||||||
bindsym Return mode "default"
|
|
||||||
bindsym Escape mode "default"
|
|
||||||
bindsym $mod+m mode "default"
|
|
||||||
}
|
|
||||||
|
|
||||||
bindsym $mod+m mode "mopidy"
|
|
||||||
|
|
||||||
# Test things
|
|
||||||
mode "test" {
|
|
||||||
bindsym n exec --no-startup-id notify-send "Test Notification" "This is a simple test notification"
|
|
||||||
bindsym p exec --no-startup-id notify-send "i3 Current Path" "$PATH"
|
|
||||||
|
|
||||||
bindsym Return mode "default"
|
|
||||||
bindsym Escape mode "default"
|
|
||||||
bindsym $mod+$shift+t mode "default"
|
|
||||||
}
|
|
||||||
|
|
||||||
bindsym $mod+$shift+t mode "test"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user