up
This commit is contained in:
parent
c0a0afd077
commit
4e5cdbbac5
@ -9,9 +9,7 @@ feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md))
|
|||||||
- [ ] Upload new wallpapers
|
- [ ] Upload new wallpapers
|
||||||
- [ ] MacOS theme
|
- [ ] MacOS theme
|
||||||
- [ ] GithubFetch: Neofetch like, github calendar in the terminal
|
- [ ] GithubFetch: Neofetch like, github calendar in the terminal
|
||||||
- [ ] Night shift Toggle
|
|
||||||
- [ ] Write a hyprland shortcuts markdown file (Parse the hyprland settings conf)
|
- [ ] Write a hyprland shortcuts markdown file (Parse the hyprland settings conf)
|
||||||
- [ ] Lock script
|
|
||||||
- [ ] Tofi (Wofi but terminal based)
|
- [ ] Tofi (Wofi but terminal based)
|
||||||
|
|
||||||
- [ ] Waybar
|
- [ ] Waybar
|
||||||
|
1
docs/scripts/get_keybindings.sh
Normal file
1
docs/scripts/get_keybindings.sh
Normal file
@ -0,0 +1 @@
|
|||||||
|
#!/usr/bin/env bash
|
@ -1,10 +1,12 @@
|
|||||||
# installation script...
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# check if on nixos
|
# https://github.com/anotherhadi/nixy
|
||||||
# check if ./hosts exist
|
# Installation script: Should be run on fresh nixos install.
|
||||||
# check if gum is installed (dependencie)
|
|
||||||
# save path
|
printf "\n\e[0;92m- \e[0m\e[1;77mNixy's Installation Script\e[0;96m [anotherhadi/nixy]\e[0m"
|
||||||
# remove .git
|
|
||||||
# git init and initial commit
|
# Check if we're on the good directory
|
||||||
# create custom configuration
|
[[ -f "./docs/scripts/install.sh" ]] || (printf "\n\e[0;91mx \e[0m\e[1;77mNot in the project root directory\e[0m"; exit 1)
|
||||||
# save it to ./hosts
|
DIR=$(pwd)
|
||||||
|
|
||||||
|
# Create a new configuration
|
||||||
|
@ -15,4 +15,20 @@ let
|
|||||||
notif "night-shift" "$message"
|
notif "night-shift" "$message"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in { home.packages = [ night-shift-on night-shift-off ]; }
|
night-shift-toggle = pkgs.writeShellScriptBin "night-shift-toggle" ''
|
||||||
|
if pgrep wlsunset; then
|
||||||
|
night-shift-off
|
||||||
|
else
|
||||||
|
night-shift-on
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
night-shift-status = pkgs.writeShellScriptBin "night-shift-status" ''
|
||||||
|
if pgrep wlsunset; then
|
||||||
|
echo "1"
|
||||||
|
else
|
||||||
|
echo "0"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
in { home.packages = [ night-shift-on night-shift-off night-shift-toggle night-shift-status ]; }
|
||||||
|
Loading…
Reference in New Issue
Block a user