aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/rofisession
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-05-17 06:10:02 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-05-17 06:10:02 +0300
commit484181c25cba61469254e24bff578cff5189c8a7 (patch)
tree6bb3b33b3c710467a6f0463912b929f2e039cd90 /dotfiles/.local/bin/rofisession
parent0b065dc2c0cae46c4f6151483249a682db122eb6 (diff)
downloadswayrice-484181c25cba61469254e24bff578cff5189c8a7.tar.gz
swayrice-484181c25cba61469254e24bff578cff5189c8a7.zip
WIP: move to rofi
Diffstat (limited to 'dotfiles/.local/bin/rofisession')
-rwxr-xr-xdotfiles/.local/bin/rofisession15
1 files changed, 15 insertions, 0 deletions
diff --git a/dotfiles/.local/bin/rofisession b/dotfiles/.local/bin/rofisession
new file mode 100755
index 0000000..88cf3c6
--- /dev/null
+++ b/dotfiles/.local/bin/rofisession
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+export SWAYSESSION_GUI=1
+
+if [ -n "$1" ]; then
+ swaysession $1 > /dev/null
+ exit 0
+fi
+
+echo -ne "\0no-custom\x1ftrue\n"
+echo -ne "\0prompt\x1fWhat to do?\n"
+echo -ne "logout\0icon\x1fsystem-log-out\n"
+echo -ne "suspend\0icon\x1fsystem-suspend\n"
+echo -ne "reboot\0icon\x1fsystem-restart\n"
+echo -ne "poweroff\0icon\x1fsystem-shutdown\n"