diff --git a/.bashrc b/.bashrc index 9dd89e8..f5d8ec0 100644 --- a/.bashrc +++ b/.bashrc @@ -32,7 +32,7 @@ alias flush="sudo rm -rf ~/.local/share/Trash" alias tp='trash-put' alias power='upower -i /org/freedesktop/UPower/devices/battery_BAT0' alias space='df -h /' -alias cache='sudo pacman -Scc && docker system prune -a --volumes && flush' +alias cache='sudo pacman -Sc && docker system prune -a --volumes && flush' alias die='shutdown -h now' alias protu='ls -la -h' alias ll='ls -a' diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 8e2148c..a3273d1 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -265,6 +265,7 @@ bind = $mainMod, L, exec, libreoffice bind = $mainMod, A, fullscreen bind = ,code:107, exec, command hyprshot -o ~/images/screenshot -m window bind = $mainMod, code:107, exec, command hyprshot -o ~/images/screenshot -m region +bind = CTRL ALT, code:107, exec, sh -c 'PIDFILE=/tmp/wf-recorder.pid; if [ -f "$PIDFILE" ]; then kill "$(cat "$PIDFILE")"; rm "$PIDFILE"; notify-send "Capture arrêtée"; else mkdir -p ~/Videos; FILE=~/Videos/recording-$(date +%Y-%m-%d_%H-%M-%S).mp4; GEOM=$(hyprctl activewindow -j | jq -r "\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"); wf-recorder -g "$GEOM" -f "$FILE" & echo $! > "$PIDFILE"; notify-send "Capture fenêtre active" "$FILE"; fi' # Function commands bind = $mainMod, F1, exec, pavucontrol