mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
feat: Adds keybinds for uninstalling desktop apps, and rules to float the tui app.
This commit is contained in:
8
env/.config/hypr/keybinds.conf
vendored
8
env/.config/hypr/keybinds.conf
vendored
@@ -46,10 +46,12 @@ bind = $mainMod, M, exec, ~/.local/bin/toggle-waybar
|
||||
bind = $mainMod, N, exec, $terminal -e nvim
|
||||
bind = $mainMod, P, exec, $pwa "https://pass.proton.me"
|
||||
bind = $mainMod SHIFT, P, pseudo, # dwindle
|
||||
bind = $mainMod SHIFT, R, exec, ~/.local/bin/waybar-restart
|
||||
bind = $mainMod, Y, exec, $pwa "https://youtube.com"
|
||||
bind = $mainMod, U, exec, $pwd "https://unifi.ui.com"
|
||||
bind = $mainMod SHIFT, U, exec, $terminal --class=com.ghostty.float -e ~/.local/scripts/uninstall-desktop-app
|
||||
bind = $mainMod, V, exec, $terminal --class=com.ghostty.clipse -e clipse
|
||||
bind = $mainMod, W, killactive,
|
||||
bind = $mainMod SHIFT, R, exec, ~/.local/bin/waybar-restart
|
||||
|
||||
# TODO: change modifier key.
|
||||
#bind = $mainMod SHIFT, L, exec, hyprlock
|
||||
@@ -61,8 +63,8 @@ bind = $mainMod SHIFT, R, exec, ~/.local/bin/waybar-restart
|
||||
bind = $mainMod SHIFT ALT, 4, exec, hyprshot -m region -o ~/Pictures
|
||||
bind = $mainMod SHIFT ALT, 3, exec, hyprshot -m window -o ~/Pictures
|
||||
|
||||
bind = CTRL, F, exec, ~/.local/bin/window-toggle-floating
|
||||
#bind = CTRL, F, togglefloating,
|
||||
bind = CTRL, F, fullscreen,
|
||||
bind = ctrl shift, f, exec, ~/.local/scripts/window-toggle-floating
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind = $mainMod, H, movefocus, l
|
||||
|
||||
5
env/.config/hypr/windows.conf
vendored
5
env/.config/hypr/windows.conf
vendored
@@ -11,11 +11,12 @@ windowrule = center, tag:floating-window
|
||||
windowrule = size 800 600, tag:floating-window
|
||||
|
||||
# Force windows to be a floating window
|
||||
windowrule = tag +floating-window, class:^(blueberry.py|org.gnome.Nautilus)$
|
||||
windowrule = tag +floating-window, class:^(blueberry.py|org.gnome.Nautilus|com.ghostty.float)$
|
||||
|
||||
# Force bluetooth settings to stay focused when visible.
|
||||
# Force to stay focused when visible.
|
||||
windowrule = stayfocused, class:(blueberry.py)
|
||||
windowrule = stayfocused, class:Pinentry.gtk
|
||||
windowrule = stayfocused, class:com.ghostty.float
|
||||
|
||||
# Clipboard history tui in floating window.
|
||||
windowrule = tag +floating-window, class:.*clipse.*
|
||||
|
||||
4
env/.local/scripts/uninstall-desktop-app
vendored
4
env/.local/scripts/uninstall-desktop-app
vendored
@@ -58,9 +58,10 @@ fi
|
||||
|
||||
if [[ ${#files} == 0 ]]; then
|
||||
interactive_mode="1"
|
||||
|
||||
files+=(
|
||||
$(find $XDG_DATA_HOME/applications -mindepth 1 -maxdepth 1 -type f -name "*.desktop" -printf "%f\n" |
|
||||
gum choose --no-limit --padding "2 4" --header "Choose desktop apps to remove:")
|
||||
gum choose --no-limit --padding "2 4" --header "Choose desktop apps to remove:" --selected-prefix="✗ ")
|
||||
)
|
||||
fi
|
||||
|
||||
@@ -105,7 +106,6 @@ for f in ${files[@]}; do
|
||||
rm -rf $file
|
||||
fi
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
if [[ ${#files} -gt 0 ]]; then
|
||||
|
||||
Reference in New Issue
Block a user