Commit for generation 148
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
exec-once=[floating;size 504 330;move 25 60] kitty
|
exec-once=[floating;size 504 330;move 25 60] kitty
|
||||||
exec-once=[floating;size 504 660; move 25 400] kitty zsh -e 'nvim -c "source scripts/events.lua" -c "silent! r \!python scripts/schedule.py"'
|
exec-once=[floating;size 504 660; move 25 400] kitty zsh -e 'nvim -c "source scripts/events.lua" -c "silent! r \!python scripts/schedule.py"'
|
||||||
exec-once=/sbin/pypr
|
exec-once=/sbin/pypr
|
||||||
exec-once=hyprctl setcursor rose-pine-hyprcursor 24
|
exec-once=aplay /home/pagedmov/sound/sys/login.wav
|
||||||
# window rules
|
# window rules
|
||||||
windowrule = noshadow, ^(.*)$
|
windowrule = noshadow, ^(.*)$
|
||||||
windowrule = opacity 1 0.9, ^(kitty)$
|
windowrule = opacity 1 0.9, ^(kitty)$
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
$terminal = kitty
|
$terminal = kitty
|
||||||
$filemanager = kitty ranger
|
$filemanager = kitty ranger
|
||||||
$menu = rofi -show drun
|
$menu = rofi -show drun
|
||||||
$screenshot = grimblast copy area
|
$screenshot = grimblast copy area && check_sounds && aplay /home/pagedmov/sound/sys/screenshot.wav
|
||||||
$browser = firefox
|
$browser = firefox
|
||||||
env = qt_qpa_platformtheme,qt6ct
|
env = qt_qpa_platformtheme,qt6ct
|
||||||
env = XDG_CURRENT_DESKTOP,hyprland
|
env = XDG_CURRENT_DESKTOP,hyprland
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
|
SOUNDS_ENABLED = "1";
|
||||||
EDITOR = "/nixbin/nvim";
|
EDITOR = "/nixbin/nvim";
|
||||||
SUDO_EDITOR = "/nixbin/nvim";
|
SUDO_EDITOR = "/nixbin/nvim";
|
||||||
VISUAL = "/nixbin/nvim";
|
VISUAL = "/nixbin/nvim";
|
||||||
@@ -11,6 +12,7 @@
|
|||||||
STARSHIP_CONFIG = /home/pagedmov/.config/starship/starship.toml;
|
STARSHIP_CONFIG = /home/pagedmov/.config/starship/starship.toml;
|
||||||
FZF_DEFAULT_COMMAND = "find $HOME \( -path \"$HOME/.steam\" -o -path \"$HOME/.mozilla\" -o -path \"$HOME/go\" \) -prune -o -type f -print";
|
FZF_DEFAULT_COMMAND = "find $HOME \( -path \"$HOME/.steam\" -o -path \"$HOME/.mozilla\" -o -path \"$HOME/go\" \) -prune -o -type f -print";
|
||||||
GIT_TOKEN = "$(cat supersecret/git-token)";
|
GIT_TOKEN = "$(cat supersecret/git-token)";
|
||||||
|
PROMPT_COMMAND = "if [[ $? != 0 ]]; then check_sounds && aplay ~/sound/sys/error.wav; fi";
|
||||||
};
|
};
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
@@ -71,6 +73,9 @@ else
|
|||||||
mkdir -p "$comppath"
|
mkdir -p "$comppath"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
sounds_enabled() {[ "$SOUNDS_ENABLED" -eq "1" ]}
|
||||||
|
|
||||||
|
|
||||||
preexec() {
|
preexec() {
|
||||||
cmdcounter="/tmp/cmdcounter_$(whoami)"
|
cmdcounter="/tmp/cmdcounter_$(whoami)"
|
||||||
|
|
||||||
@@ -121,11 +126,13 @@ wiki_update() {
|
|||||||
# Functions
|
# Functions
|
||||||
ls() {
|
ls() {
|
||||||
command ls --group-directories-first --color=always -F1 "$@" | sort -f -k1
|
command ls --group-directories-first --color=always -F1 "$@" | sort -f -k1
|
||||||
|
checksound && aplay ~/sound/sys/ls.wav
|
||||||
}
|
}
|
||||||
|
|
||||||
# cd and ls after
|
# cd and ls after
|
||||||
cd() {
|
cd() {
|
||||||
builtin cd "$@" && ls
|
builtin cd "$@" && ls
|
||||||
|
checksound && aplay ~/sound/sys/cd.wav
|
||||||
}
|
}
|
||||||
src() {
|
src() {
|
||||||
autoload -U zrecompile
|
autoload -U zrecompile
|
||||||
@@ -178,6 +185,7 @@ safe_rm() {
|
|||||||
|
|
||||||
# Perform the removal if no checks or confirmation is "y"
|
# Perform the removal if no checks or confirmation is "y"
|
||||||
if [ "$check" = false ] || [ "$confirm" = "y" ]; then
|
if [ "$check" = false ] || [ "$confirm" = "y" ]; then
|
||||||
|
check_sounds && aplay ~/sound/sys/rm.wav
|
||||||
/run/current-system/sw/bin/rm -rfv "$dir"
|
/run/current-system/sw/bin/rm -rfv "$dir"
|
||||||
else
|
else
|
||||||
echo "Operation cancelled for '$dir'."
|
echo "Operation cancelled for '$dir'."
|
||||||
@@ -190,6 +198,7 @@ safe_rm() {
|
|||||||
|
|
||||||
|
|
||||||
nixswitch() {
|
nixswitch() {
|
||||||
|
checksounds && aplay ~/sound/sys/nixswitch-start.wav
|
||||||
builtin cd "$HOME/sysflakes"
|
builtin cd "$HOME/sysflakes"
|
||||||
nix flake update
|
nix flake update
|
||||||
|
|
||||||
@@ -203,6 +212,7 @@ nixswitch() {
|
|||||||
fi
|
fi
|
||||||
sudo nixos-rebuild switch --flake "$HOME/sysflakes#glasshouse"
|
sudo nixos-rebuild switch --flake "$HOME/sysflakes#glasshouse"
|
||||||
builtin cd $OLDPWD
|
builtin cd $OLDPWD
|
||||||
|
checksounds && aplay ~/sound/sys/update.wav
|
||||||
}
|
}
|
||||||
journal() {
|
journal() {
|
||||||
# journal for keeping track of stuff I do that isn't declared in my nix config
|
# journal for keeping track of stuff I do that isn't declared in my nix config
|
||||||
|
|||||||
Reference in New Issue
Block a user