sway: restructure folders, fix swayidle, add i3status config per host
This commit is contained in:
parent
d2ccde505a
commit
39ed1a4041
4 changed files with 51 additions and 5 deletions
45
conf.d/i3status_silence.toml
Normal file
45
conf.d/i3status_silence.toml
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
theme = "slick"
|
||||||
|
icons = "awesome5"
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "cpu"
|
||||||
|
interval = 1
|
||||||
|
format = "{barchart} {utilization}%"
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "memory"
|
||||||
|
format_mem = "{Mug}/{MTg}GB ({Mup}%)"
|
||||||
|
format_swap = "{SUm}MB/{STm}MB({SUp}%)"
|
||||||
|
display_type = "memory"
|
||||||
|
icons = true
|
||||||
|
clickable = true
|
||||||
|
interval = 5
|
||||||
|
warning_mem = 80
|
||||||
|
warning_swap = 80
|
||||||
|
critical_mem = 95
|
||||||
|
critical_swap = 95
|
||||||
|
|
||||||
|
# [[block]]
|
||||||
|
# block = "memory"
|
||||||
|
# format_mem = "{Mug}/{MTg}GB ({Mup}%)"
|
||||||
|
# format_swap = "{SUg}/{STg}GB ({SUp}%)"
|
||||||
|
# display_type = "swap"
|
||||||
|
# icons = true
|
||||||
|
# clickable = true
|
||||||
|
# interval = 5
|
||||||
|
# warning_mem = 80
|
||||||
|
# warning_swap = 80
|
||||||
|
# critical_mem = 95
|
||||||
|
# critical_swap = 95
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "battery"
|
||||||
|
interval = 10
|
||||||
|
format = "{percentage}% {time}"
|
||||||
|
|
||||||
|
[[block]]
|
||||||
|
block = "time"
|
||||||
|
format = "%Y/%m/%d %R"
|
||||||
|
timezone = "Europe/Berlin"
|
||||||
|
interval = 60
|
||||||
|
locale = "de_DE"
|
9
config
9
config
|
@ -17,7 +17,7 @@ set $right l
|
||||||
# Your preferred terminal emulator
|
# Your preferred terminal emulator
|
||||||
set $term termite
|
set $term termite
|
||||||
set $background $HOME/Cloud/xkonni/Pictures/wallpaper/5k_bavarian_forest_bw.jpg
|
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
|
# Your preferred application launcher
|
||||||
# Note: pass the final command to swaymsg so that the resulting window can be opened
|
# 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
|
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
||||||
|
|
||||||
### Idle configuration
|
### Idle configuration
|
||||||
bindsym $mod+Ctrl+Escape exec $lock_cmd
|
|
||||||
exec swayidle -w \
|
exec swayidle -w \
|
||||||
timeout 300 '$lock_cmd' \
|
|
||||||
timeout 600 'swaymsg "output * dpms off"' \
|
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'
|
before-sleep '$lock_cmd'
|
||||||
|
bindsym $mod+Ctrl+Escape exec $lock_cmd
|
||||||
|
|
||||||
### Input configuration
|
### Input configuration
|
||||||
# You can get the names of your inputs by running: swaymsg -t get_inputs
|
# 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.
|
# Read `man 5 sway-bar` for more information about this section.
|
||||||
bar {
|
bar {
|
||||||
position top
|
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"
|
font "Cascadia Code PL Regular 11"
|
||||||
colors {
|
colors {
|
||||||
separator #666666
|
separator #666666
|
||||||
|
|
Loading…
Reference in a new issue