aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Sangdahl <[email protected]>2023-01-09 12:25:56 -0700
committerJack Sangdahl <[email protected]>2023-01-09 12:25:56 -0700
commit280116d6d16411bda29980c0cfefcab8132cbc97 (patch)
tree66de03f9f5c727d9acb8eba7d6de8c1964e0fed3
parent9740a25d7cdfba0ef8ab19f35d52dee52e5131cb (diff)
downloaddots-280116d6d16411bda29980c0cfefcab8132cbc97.tar.gz
dots-280116d6d16411bda29980c0cfefcab8132cbc97.zip
add power menu script & misc things
-rwxr-xr-x.config/scripts/power_menu.sh25
-rw-r--r--.config/sway/config4
m---------.zsh/zsh-syntax-highlighting0
3 files changed, 25 insertions, 4 deletions
diff --git a/.config/scripts/power_menu.sh b/.config/scripts/power_menu.sh
new file mode 100755
index 00000000..5e76ee0a
--- /dev/null
+++ b/.config/scripts/power_menu.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+# call this script in button/power function of /etc/acpi/default.sh
+
+OPTIONS="\uf023 lock\n
+ \uf186 suspend\n
+ \uf2f5 logout\n
+ \uf011 shutdown\n
+ \uf2f1 reboot\n"
+
+SELECTED=$(echo -e $OPTIONS |
+ wofi -H 260 -d -p "power menu:" |
+ awk '{print tolower($2)}')
+
+case $SELECTED in
+ lock)
+ swaylock;;
+ suspend)
+ loginctl suspend;;
+ logout)
+ swaymsg exit;;
+ shutdown)
+ openrc-shutdown -p now;;
+ reboot)
+ reboot;;
+esac
diff --git a/.config/sway/config b/.config/sway/config
index f8b275a0..9ff13cf7 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -14,10 +14,6 @@ set $down j
set $up k
set $right l
-set $term alacritty
-set $browser firefox-bin
-set $screenshot grim -g "$(slurp)" - | wl-copy
-
output * bg ~/.img/wallpaper/waves_mono.png fill
exec /usr/bin/mako
diff --git a/.zsh/zsh-syntax-highlighting b/.zsh/zsh-syntax-highlighting
-Subproject c5ce0014677a0f69a10b676b6038ad127f40c6b
+Subproject b2c910a85ed84cb7e5108e7cb3406a2e825a858