Changes keybinds

This commit is contained in:
Michel Fedde 2025-03-26 23:36:58 +01:00
parent f8e55bfb2b
commit e9418e5977
9 changed files with 29 additions and 154 deletions

View file

@ -8,7 +8,7 @@ general {
}
decoration {
rounding = 3
rounding = 10
active_opacity = 1.0
inactive_opacity = 1

View file

@ -28,7 +28,7 @@ env = GDK_SCALE,1
# NOTE! You must have the hyprcursor version to activate this.
# If you installed from 26-Dec-2024 and choose GTK theme, then you have it.
# https://wiki.hyprland.org/Hypr-Ecosystem/hyprcursor/
env = HYPRCURSOR_THEME,Bibata-Modern-Ice
env = HYPRCURSOR_THEME,Qogir-dark
env = HYPRCURSOR_SIZE,24
# firefox

View file

@ -4,6 +4,9 @@ $mainMod = SUPER
$scriptsDir = $HOME/.config/hypr/scripts
$configs = $HOME/.config/hypr/configs
$files = hyprdrop ghostty --identifier yazi_hyprdrop --args="yazi" --env="PWD=~/"
$term = ghostty
$scriptsDir = $HOME/.config/hypr/scripts
bind = $mainMod, Q, killactive,
bind = $mainMod SHIFT, Q, exec, $scriptsDir/KillActiveProcess.sh
@ -24,14 +27,7 @@ bindl = , xf86AudioNext, exec, $scriptsDir/MediaCtrl.sh --nxt
bindl = , xf86AudioPrev, exec, $scriptsDir/MediaCtrl.sh --prv
bindl = , xf86audiostop, exec, $scriptsDir/MediaCtrl.sh --stop
bindtn = , $mainMod_L, exec, killall -SIGUSR1 waybar
bindtn = SHIFT, $mainMod_L, exec, killall -SIGUSR1 waybar
bindtn = CTRL, $mainMod_L, exec, killall -SIGUSR1 waybar
bindtn = ALT, $mainMod_L, exec, killall -SIGUSR1 waybar
bindtrn = $mainMod, $mainMod_L, exec, killall -SIGUSR1 waybar
bindtrn = $mainMod SHIFT, $mainMod_L, exec, killall -SIGUSR1 waybar
bindtrn = $mainMod CTRL, $mainMod_L, exec, killall -SIGUSR1 waybar
bindtrn = $mainMod ALT, $mainMod_L, exec, killall -SIGUSR1 waybar
bind = $mainMod, O, exec, killall -SIGUSR1 waybar
# Move focus with mainMod + LHKJ
bind = $mainMod, H, movefocus, l
@ -40,10 +36,10 @@ bind = $mainMod, K, movefocus, u
bind = $mainMod, J, movefocus, d
# Move windows
bind = $mainMod SHIFT, H, movewindow, l
bind = $mainMod SHIFT, L, movewindow, r
bind = $mainMod SHIFT, K, movewindow, u
bind = $mainMod SHIFT, J, movewindow, d
#bind = $mainMod SHIFT, H, movewindow, l
#bind = $mainMod SHIFT, L, movewindow, r
#bind = $mainMod SHIFT, K, movewindow, u
#bind = $mainMod SHIFT, J, movewindow, d
# Container layouts
bind = $mainMod, E, togglesplit
@ -98,26 +94,20 @@ bind = , F12, exec, $scriptsDir/ScreenShot.sh --active # screenshot (active wind
bind = $mainMod SHIFT, N, exec, swaync-client -t -sw # swayNC notification panel
bind = $mainMod CTRL, L, movecurrentworkspacetomonitor, r
bind = $mainMod CTRL, H, movecurrentworkspacetomonitor, l
bind = $mainMod CTRL, K, movecurrentworkspacetomonitor, u
bind = $mainMod CTRL, J, movecurrentworkspacetomonitor, d
bind = $mainMod SHIFT, L, movecurrentworkspacetomonitor, r
bind = $mainMod SHIFT, H, movecurrentworkspacetomonitor, l
bind = $mainMod SHIFT, K, movecurrentworkspacetomonitor, u
bind = $mainMod SHIFT, J, movecurrentworkspacetomonitor, d
bind = $mainMod, F, fullscreen, 1
bind = $mainMod, Space, fullscreen, 0
$mainMod = SUPER
$files = hyprdrop ghostty --identifier yazi_hyprdrop --args="yazi" --env="PWD=~/"
$term = ghostty
$scriptsDir = $HOME/.config/hypr/scripts
# rofi App launcher
#bindr = $mainMod, $mainMod_L, exec, pkill rofi || rofi -show drun -modi drun,filebrowser,run,window # Super Key to Launch rofi menu
bind = $mainMod, Tab, exec, nwg-drawer -pbexit "wayland-logout" -pbpoweroff "systemctl poweroff" -pbreboot "systemctl reboot"
bind = ALT, Tab, exec, hyprswitch gui --mod-key alt --key tab
bind = $mainMod, Return, exec, $term #terminal
bind = $mainMod, Return, exec, $term
bind = $mainMod Shift, Return, exec, hyprdrop ghostty --identifier term_hyprdrop
bind = $mainMod, T, exec, $files #file manager
bind = $mainMod, T, exec, $files
bind = $mainMod, R, focusurgentorlast

View file

@ -6,9 +6,9 @@
#windowrule = workspace 6 silent,^(gamescope)$
# windowrule Position
windowrule = center,^(pavucontrol|org.pulseaudio.pavucontrol|com.saivert.pwvucontrol)
windowrule = center,^([Ww]hatsapp-for-linux)$
windowrule = center,^([Ff]erdium)$
windowrulev2 = center,class:^(pavucontrol|org.pulseaudio.pavucontrol|com.saivert.pwvucontrol)
windowrulev2 = center,class:^([Ww]hatsapp-for-linux)$
windowrulev2 = center,class:^([Ff]erdium)$
# WINDOWRULE v2
# windowrule v2 - position

View file

@ -1,34 +0,0 @@
#!/bin/bash
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## Searchable enabled keybinds using rofi
# Kill yad to not interfere with this binds
pkill yad || true
# Check if rofi is already running
if pidof rofi >/dev/null; then
pkill rofi
fi
# Define the config files
KEYBINDS_CONF="$HOME/.config/hypr/configs/Keybinds.conf"
USER_KEYBINDS_CONF="$HOME/.config/hypr/UserConfigs/UserKeybinds.conf"
LAPTOP_CONF="$HOME/.config/hypr/UserConfigs/Laptop.conf"
# Combine the contents of the keybinds files and filter for keybinds
KEYBINDS=$(cat "$KEYBINDS_CONF" "$USER_KEYBINDS_CONF" | grep -E '^(bind|bindl|binde|bindm)')
# Check if Laptop.conf exists and add its keybinds if present
if [[ -f "$LAPTOP_CONF" ]]; then
LAPTOP_BINDS=$(grep -E '^(bind|bindl|binde|bindm)' "$LAPTOP_CONF")
KEYBINDS+=$'\n'"$LAPTOP_BINDS"
fi
# check for any keybinds to display
if [[ -z "$KEYBINDS" ]]; then
echo "No keybinds found."
exit 1
fi
# Use rofi to display the keybinds
echo "$KEYBINDS" | rofi -dmenu -i -p "Keybinds" -config ~/.config/rofi/config-keybinds.rasi

View file

@ -1,89 +0,0 @@
#!/bin/bash
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Keyhints. Idea got from Garuda Hyprland
# GDK BACKEND. Change to either wayland or x11 if having issues
BACKEND=wayland
# Check if rofi is running and kill it if it is
if pgrep -x "rofi" > /dev/null; then
pkill rofi
fi
# Detect monitor resolution and scale
x_mon=$(hyprctl -j monitors | jq '.[] | select(.focused==true) | .width')
y_mon=$(hyprctl -j monitors | jq '.[] | select(.focused==true) | .height')
hypr_scale=$(hyprctl -j monitors | jq '.[] | select (.focused == true) | .scale' | sed 's/\.//')
# Calculate width and height based on percentages and monitor resolution
width=$((x_mon * hypr_scale / 100))
height=$((y_mon * hypr_scale / 100))
# Set maximum width and height
max_width=1200
max_height=1000
# Set percentage of screen size for dynamic adjustment
percentage_width=70
percentage_height=70
# Calculate dynamic width and height
dynamic_width=$((width * percentage_width / 100))
dynamic_height=$((height * percentage_height / 100))
# Limit width and height to maximum values
dynamic_width=$(($dynamic_width > $max_width ? $max_width : $dynamic_width))
dynamic_height=$(($dynamic_height > $max_height ? $max_height : $dynamic_height))
# Launch yad with calculated width and height
GDK_BACKEND=$BACKEND yad --width=$dynamic_width --height=$dynamic_height \
--center \
--title="Keybindings" \
--no-buttons \
--list \
--column=Key: \
--column=Description: \
--column=Command: \
--timeout-indicator=bottom \
"ESC" "close this app" "" "=" "SUPER KEY (Windows Key)" "(SUPER KEY)" \
" enter" "Terminal" "(kitty)" \
" SHIFT enter" "DropDown Terminal" "(kitty-pyprland)" \
" SHIFT K" "Searchable Keybinds" "(Keybinds)" \
" A" "Desktop Overview" "(AGS Overview)" \
" D" "Application Launcher" "(rofi-wayland)" \
" T" "Open File Manager" "(Thunar)" \
" S" "Google Search using rofi" "(rofi)" \
" Q" "close active window" "(not kill)" \
" Shift Q " "kills an active window" "(kill)" \
" Z" "Desktop Zoom" "(pyprland)" \
" Alt V" "Clipboard Manager" "(cliphist)" \
" W" "Choose wallpaper" "(Wallpaper Menu)" \
" Shift W" "Choose wallpaper effects" "(imagemagick + swww)" \
"CTRL ALT W" "Random wallpaper" "(via swww)" \
" B" "Hide/UnHide Waybar" "waybar" \
" CTRL B" "Choose waybar styles" "(waybar styles)" \
" ALT B" "Choose waybar layout" "(waybar layout)" \
" ALT R" "Reload Waybar swaync Rofi" "CHECK NOTIFICATION FIRST!!!" \
" SHIFT N" "Launch Notification Panel" "swaync Notification Center" \
" Print" "screenshot" "(grim)" \
" Shift Print" "screenshot region" "(grim + slurp)" \
" Shift S" "screenshot region" "(swappy)" \
" CTRL Print" "screenshot timer 5 secs " "(grim)" \
" CTRL SHIFT Print" "screenshot timer 10 secs " "(grim)" \
"ALT Print" "Screenshot active window" "active window only" \
"CTRL ALT P" "power-menu" "(wlogout)" \
"CTRL ALT L" "screen lock" "(hyprlock)" \
"CTRL ALT Del" "Hyprland Exit" "(SAVE YOUR WORK!!!)" \
" F" "Fullscreen" "Toggles to full screen" \
" CTL F" "Fake Fullscreen" "Toggles to fake full screen" \
" ALT L" "Toggle Dwindle | Master Layout" "Hyprland Layout" \
" Shift F" "Toggle float" "single window" \
" ALT F" "Toggle all windows to float" "all windows" \
" Shift B" "Toggle Blur" "normal or less blur" \
" SHIFT G" "Gamemode! All animations OFF or ON" "toggle" \
" ALT E" "Rofi Emoticons" "Emoticon" \
" ALT V" "Clipboard Manager" "cliphist" \
" H" "Launch this app" "" \
" E" "View or EDIT Keybinds, Settings, Monitor" "" \
"" "" "" \
"More tips:" "https://github.com/JaKooLit/Hyprland-Dots/wiki" ""\