aboutsummaryrefslogtreecommitdiff
path: root/nixos/.flake/home/scripts.org
diff options
context:
space:
mode:
authorJacob Janzen <jacob.a.s.janzen@gmail.com>2024-09-28 00:01:09 -0500
committerJacob Janzen <jacob.a.s.janzen@gmail.com>2024-09-28 00:01:09 -0500
commitb7e84fa6048007cda7e6c8226e28bc2db90f792a (patch)
tree170bcaff17d7aec0c6aac5807c7a5857dbd71def /nixos/.flake/home/scripts.org
parent7b2986845fde19db57703dad1105359913486abd (diff)
add file extensions to files
Diffstat (limited to 'nixos/.flake/home/scripts.org')
-rw-r--r--nixos/.flake/home/scripts.org43
1 files changed, 0 insertions, 43 deletions
diff --git a/nixos/.flake/home/scripts.org b/nixos/.flake/home/scripts.org
deleted file mode 100644
index b98b389..0000000
--- a/nixos/.flake/home/scripts.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