mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-02-23 20:10:51 +01:00
Inital testing with an install script
This commit is contained in:
parent
6049d117d5
commit
1b2a869b25
@ -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
25
config/scripts/zcc.nix
Normal 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
|
||||||
|
''
|
Loading…
Reference in New Issue
Block a user