diff options
author | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-09-27 20:28:05 -0500 |
---|---|---|
committer | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-09-27 20:28:05 -0500 |
commit | 7edb3349287bdf182510f1b377583fc9988c6dbb (patch) | |
tree | faaa504d23b5b52fba0dd27926f10049e16191cf /nixos/.local/bin/poweroptions.org | |
parent | 245089884cac141b69f326ea741f7aad86f4a3ca (diff) |
move more into flake
Diffstat (limited to 'nixos/.local/bin/poweroptions.org')
-rw-r--r-- | nixos/.local/bin/poweroptions.org | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/nixos/.local/bin/poweroptions.org b/nixos/.local/bin/poweroptions.org deleted file mode 100644 index 6f154ef..0000000 --- a/nixos/.local/bin/poweroptions.org +++ /dev/null @@ -1,24 +0,0 @@ -#+title: Power Options Script - -Use =fuzzel= to open a menu to power off, reboot, or log out. -#+begin_src sh :tangle ~/.local/bin/poweroptions.sh :mkdirp yes :tangle-mode o755 - #!/bin/sh - - getoption () { - fuzzel --dmenu -l 3 -x 1 -r 10 << EOF - power off - restart - logout - EOF - } - - option=$(getoption | xargs) - case $option in - ' power off') - systemctl poweroff;; - ' restart') - systemctl reboot;; - ' logout') - hyprctl dispatch exit;; - esac -#+end_src |