Inital testing with an install script

This commit is contained in:
Tyler Kelley 2024-02-10 18:38:42 -06:00
parent 6049d117d5
commit 1b2a869b25
2 changed files with 26 additions and 0 deletions

View File

@ -23,6 +23,7 @@ in {
(import ./../scripts/web-search.nix { inherit pkgs; }) (import ./../scripts/web-search.nix { inherit pkgs; })
(import ./../scripts/rofi-launcher.nix { inherit pkgs; }) (import ./../scripts/rofi-launcher.nix { inherit pkgs; })
(import ./../scripts/screenshootin.nix { inherit pkgs; }) (import ./../scripts/screenshootin.nix { inherit pkgs; })
(import ./../scripts/zcc.nix { inherit pkgs; })
]; ];
programs.gh.enable = true; programs.gh.enable = true;

25
config/scripts/zcc.nix Normal file
View File

@ -0,0 +1,25 @@
{ pkgs, ... }:
let
inherit (import ../../options.nix) flakeDir;
in
pkgs.writeShellScriptBin "zcc" ''
kdenlive=false
# Function to toggle the boolean variable
toggle_kdenlive() {
kdenlive=$(yad --width=200 --height=100 --title="Toggle Kdenlive" \
--text="Toggle Kdenlive" --button="Toggle:0" --button="Cancel:1" \
--checkbox --value="$kdenlive")
# If the user clicks "Toggle" button, update the boolean value
if [ "$?" -eq 0 ]; then
echo "Kdenlive is now set to: $kdenlive"
else
echo "Toggle canceled. Kdenlive remains set to: $kdenlive"
fi
}
# Call the toggle function
toggle_kdenlive
''