sway: restructure folders, fix swayidle, add i3status config per host

This commit is contained in:
Konstantin Koslowski 2020-12-19 01:18:43 +01:00
parent d2ccde505a
commit 39ed1a4041
4 changed files with 51 additions and 5 deletions

11
config
View file

@ -17,7 +17,7 @@ set $right l
# Your preferred terminal emulator
set $term termite
set $background $HOME/Cloud/xkonni/Pictures/wallpaper/5k_bavarian_forest_bw.jpg
set $lock_cmd $HOME/.config/sway/lock
set $lock_cmd $HOME/.config/sway/bin/lock
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
@ -31,12 +31,13 @@ output * bg $background fill
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
bindsym $mod+Ctrl+Escape exec $lock_cmd
exec swayidle -w \
timeout 300 '$lock_cmd' \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
resume 'swaymsg "output * dpms on"' \
timeout 900 '$lock_cmd' \
timeout 1800 'systemctl suspend-then-hibernate' \
before-sleep '$lock_cmd'
bindsym $mod+Ctrl+Escape exec $lock_cmd
### Input configuration
# You can get the names of your inputs by running: swaymsg -t get_inputs
@ -207,7 +208,7 @@ bindsym $mod+r mode "resize"
# Read `man 5 sway-bar` for more information about this section.
bar {
position top
status_command i3status-rs $HOME/.config/sway/i3status.toml
status_command i3status-rs $HOME/.config/sway/conf.d/i3status_$(hostname).toml
font "Cascadia Code PL Regular 11"
colors {
separator #666666