diff options
author | jjanzen <jjanzen@jjanzen.ca> | 2025-03-08 16:05:09 -0600 |
---|---|---|
committer | jjanzen <jjanzen@jjanzen.ca> | 2025-03-08 16:05:09 -0600 |
commit | 93c1e9e304831ff7d07f9395ee0c9ff329861d0e (patch) | |
tree | 72a0195a29065ce709813a0ad3800b80a8cb43cd /nixos/flake/home/scripts.nix.org | |
parent | 061c4776c375d4f2d0e26b6f76daf642da2e438c (diff) |
system changes
Diffstat (limited to 'nixos/flake/home/scripts.nix.org')
-rw-r--r-- | nixos/flake/home/scripts.nix.org | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/nixos/flake/home/scripts.nix.org b/nixos/flake/home/scripts.nix.org deleted file mode 100644 index b98b389..0000000 --- a/nixos/flake/home/scripts.nix.org +++ /dev/null @@ -1,43 +0,0 @@ -#+title: Custom Scripts - -Open script container. -#+begin_src nix :tangle ~/.flake/home/scripts.nix :mkdirp yes - { config, pkgs, ... }: - - { - home.file = { -#+end_src - -Use =fuzzel= to open a menu to power off, reboot, or log out. -#+begin_src nix :tangle ~/.flake/home/scripts.nix :mkdirp yes - ".local/bin/poweroptions.sh" = { - text = '' - #!/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 - ''; - executable = true; - }; -#+end_src - -Close script container. -#+begin_src nix :tangle ~/.flake/home/scripts.nix :mkdirp yes - }; - } -#+end_src |