sway/readme: add wofi, update auto-locking, update readme

This commit is contained in:
2024-08-20 19:50:29 +02:00
parent f9fe64c02e
commit 17e8714b03
4 changed files with 37 additions and 20 deletions

View File

@@ -19,3 +19,4 @@ display-inlay-hints = true
[keys.normal]
"_" = ["extend_line_up", "extend_to_line_bounds"]
"+" = ["extend_line_down", "extend_to_line_bounds"]

View File

@@ -17,7 +17,7 @@
set $lock swaylock -f -c 3D484D
exec swayidle -w \
timeout 600 '$lock' \
timeout 900 'swaymsg "output * power off"' resume 'swaymsg "output * dpms on"' \
timeout 900 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
timeout 1200 'systemctl suspend' \
before-sleep '$lock'
@@ -61,8 +61,10 @@ bindgesture swipe:4:left focus left
# Run applications
bindsym $mod+Return exec kitty
bindsym $mod+d exec wofi --show drun -I -i -a
bindsym $mod+Shift+d exec wofi --show run -i -a
#bindsym $mod+d exec wofi --show drun -I -i -a
bindsym $mod+d exec tofi-drun | xargs swaymsg exec --
#bindsym $mod+Shift+d exec wofi --show run -i -a
bindsym $mod+Shift+d exec tofi-run | xargs swaymsg exec --
bindsym $mod+e exec nautilus
# Moving around
@@ -111,7 +113,7 @@ bindgesture swipe:4:left focus left
# Layout stuff
bindsym $mod+f fullscreen
bindsym $mod+Shift+space floating toggle
bindsym $mod+Shift+space floating toggle, border normal 2
bindsym $mod+space focus mode_toggle
# Scratchpad

View File

@@ -150,10 +150,20 @@
"sway/workspaces": {
"all-outputs": false,
"disable-scroll": true,
"format": "{icon} {name}",
"format": "{icon}",
"format-icons": {
"urgent": "",
"focused": "",
"1": "",
"2": "",
"3": "三",
"4": "四",
"5": "五",
"6": "六",
"7": "七",
"8": "八",
"9": "九",
"10": "十",
// "urgent": "",
// "focused": "",
"default": ""
}
},
@@ -203,6 +213,7 @@
"custom/power": {
"exec": "echo 💻 $(cat /sys/firmware/acpi/platform_profile)",
"interval": 10,
"on-click": "kitty -e 'htop'"
}
}