diff options
Diffstat (limited to 'linux/home/.config/hypr/user')
| -rw-r--r-- | linux/home/.config/hypr/user/binds.conf | 167 | ||||
| -rw-r--r-- | linux/home/.config/hypr/user/env.conf | 23 | ||||
| -rw-r--r-- | linux/home/.config/hypr/user/exec.conf | 4 | ||||
| -rw-r--r-- | linux/home/.config/hypr/user/monitors.conf | 4 | ||||
| -rw-r--r-- | linux/home/.config/hypr/user/window_rules.conf | 70 |
5 files changed, 268 insertions, 0 deletions
diff --git a/linux/home/.config/hypr/user/binds.conf b/linux/home/.config/hypr/user/binds.conf new file mode 100644 index 0000000..a337a0e --- /dev/null +++ b/linux/home/.config/hypr/user/binds.conf @@ -0,0 +1,167 @@ +# Window Manager keybindings + +# Scratchpad +bind = SUPER, semicolon, exec, ~/.scripts/scratchpad && bash ~/.config/hypr/scripts/move-scratchpad.sh +bind = SUPER, X, exec, ~/.scripts/scratchpad && bash ~/.config/hypr/scripts/move-scratchpad.sh +#bind = SUPER, semicolon, exec, ~/.scripts/scratchpad +#bind = SUPER, X, exec, ~/.scripts/scratchpad + +# HUD +bind = SUPER, E, exec, ~/.scripts/heads-up-display + +# Package manager Terminal +bind = SUPER, Q, exec, ~/.scripts/pac + +# Mouse binds +bindm = SUPER, mouse:272, movewindow +bindm = SUPER, mouse:273, resizewindow +bind = SUPER, mouse_down, workspace, e-1 +bind = SUPER, mouse_up, workspace, e+1 + +# Screenshot binds +bind = , Print, exec,~/.scripts/screenshot_full +bind = ALT, Print, exec,~/.scripts/screenshot + +# Application binds +$term=wezterm +bind = SUPER, T, exec, $term -e tmux new-session -A -s term +bind = SUPER, Enter, exec, $term -e tmux new-session -A -s term +bind = SUPER, W, exec, $browser +#bind = SUPER, G, exec, $notepad + +# ags +bind = SUPER_SHIFT, R, exec, ags -q; ags; notify-send "ags reloaded" +bind=SUPER, Space, exec, ags -t launcher +bind=,XF86PowerOff, exec, ags -t powermenu +bind=SUPER, escape, exec, ags -t powermenu +bind=SUPER, Tab, exec, ags -t overview +#bind = SUPER, Space, exec, ags -r "toggleLauncher()" + +# Clipboard +bind = SUPER, V, exec, pkill wofi || cliphist list | wofi --dmenu -p clippick -l top_right -x -15 -y 10 -n | cliphist decode | wl-copy + + +# Hyprland keys +bind=SUPER_SHIFT,Escape,exec,hyprctl reload; notify-send "Config Reloaded" +bind = SUPER, D, killactive, +#bind = SUPER_SHIFT, S, movetoworkspace,special +#bind = SUPER, S, togglespecialworkspace, + + +# Other dispatchers +bind = ALT, Tab, cyclenext +bind = SUPER, C, cyclenext +bind = SUPER, F, fullscreen +#bind = SUPER, T, exec, hyprctl dispatch centerwindow none +bind = SUPER, M, fullscreen, 1 +bind = SUPER_SHIFT, M, fakefullscreen + + +bind = SUPER, P, pseudo, +bind = SUPER, S, togglefloating, +bind = SUPER_SHIFT, G, togglegroup, +bind = SUPER, tab, changegroupactive, +bind = SUPER_SHIFT, I, togglesplit, # dwindle + + +# Move window with SUPER + Shift + arrow keys +# [↑] +# [←] [↓] [→] +bind = SUPER_SHIFT, left, movewindow, l +bind = SUPER_SHIFT, right, movewindow, r +bind = SUPER_SHIFT, up, movewindow, u +bind = SUPER_SHIFT, down, movewindow, d +bind = SUPER_SHIFT, H, movewindow, l +bind = SUPER_SHIFT, L, movewindow, r +bind = SUPER_SHIFT, K, movewindow, u +bind = SUPER_SHIFT, J, movewindow, d + +# Move window focus with SUPER + arrow keys +# [↑] +# [←] [↓] [→] +bind = SUPER, left, movefocus, l +bind = SUPER, right, movefocus, r +bind = SUPER, up, movefocus, u +bind = SUPER, down, movefocus, d +bind = SUPER, H, movefocus, l +bind = SUPER, L, movefocus, r +bind = SUPER, K, movefocus, u +bind = SUPER, J, movefocus, d + +# Move To a workspaces +bind = SUPER, 1, workspace, 1 +bind = SUPER, 2, workspace, 2 +bind = SUPER, 3, workspace, 3 +bind = SUPER, 4, workspace, 4 +bind = SUPER, 5, workspace, 5 +bind = SUPER, 6, workspace, 6 +bind = SUPER, 7, workspace, 7 +bind = SUPER, 8, workspace, 8 +bind = SUPER, 9, workspace, 9 + +# Move windows between workspaces +bind = SUPER_SHIFT, 1, movetoworkspace, 1 +bind = SUPER_SHIFT, 2, movetoworkspace, 2 +bind = SUPER_SHIFT, 3, movetoworkspace, 3 +bind = SUPER_SHIFT, 4, movetoworkspace, 4 +bind = SUPER_SHIFT, 5, movetoworkspace, 5 +bind = SUPER_SHIFT, 6, movetoworkspace, 6 +bind = SUPER_SHIFT, 7, movetoworkspace, 7 +bind = SUPER_SHIFT, 8, movetoworkspace, 8 +bind = SUPER_SHIFT, 9, movetoworkspace, 9 + + +# Use this to get thw XF86 bind (FN + Fx combination) for your keyboard +# xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p' + +# Volume Control +#binde = , XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +1% +#binde = , XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -1% +bind = , XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle +bind = , XF86AudioMicMute, exec, pactl set-source-mute @DEFAULT_SOURCE@ toggle +bind = ALT, down, exec, pactl set-sink-volume @DEFAULT_SINK@ -5% +bind = ALT, up, exec, pactl set-sink-volume @DEFAULT_SINK@ +5% + +# Media Control +bind = , XF86AudioMedia, exec, playerctl play-pause +bind = , XF86AudioPlay, exec, playerctl play-pause +bind = , XF86AudioStop, exec, playerctl stop +bind = , XF86AudioPrev, exec, playerctl previous +bind = , XF86AudioNext, exec, playerctl next + +# Use arrow keys as multimedia keys +bind = ALT_SHIFT, left, exec, playerctl previous +bind = ALT_SHIFT, up, exec, playerctl play-pause +bind = ALT_SHIFT, right, exec, playerctl next + +# Brightness Control +binde = , XF86MonBrightnessUp, exec, light -A 1 +binde = , XF86MonBrightnessDown, exec, light -U 1 + +bind = ALT, left, exec, brightnessctl set 10%- # Screen brightness down FN+F7 +bind = ALT, right, exec, brightnessctl set 10%+ # Screen brightness up FN+F8 + +# Screensaver key +bind = , XF86ScreenSaver, exec,~/.scripts/lock + +bind = SUPER_SHIFT, Y, exec, spotify +bind = SUPER_SHIFT, D, exec, discord +bind = SUPER , W, exec, firefox +bind = SUPER_SHIFT, B, exec, rofi-rbw + +# Others +#bind = , XF86Mail, exec,$gmail +#bind = , XF86HomePage, exec, $explorer ~/ +#bind = , XF86Calculator, exec, qalculate-gtk +#bind = , XF86Search, exec, wofi + +$mainMod = SUPER +bind = $mainMod, tilde, exec, ~/.scripts/translate.sh +bind = $mainMod CONTROL, k, exec, ~/.scripts/killmenu + + + +# trigger when the switch is turning on +# bindl = , switch:on:Lid Switch, exec, hyprctl keyword monitor ", 1920x1080@60, auto, 1" +# trigger when the switch is turning off +bindl = , switch:off:Lid Switch, exec, playerctl --all-players stop; ~/.scripts/lock; systemctl suspend diff --git a/linux/home/.config/hypr/user/env.conf b/linux/home/.config/hypr/user/env.conf new file mode 100644 index 0000000..93f7694 --- /dev/null +++ b/linux/home/.config/hypr/user/env.conf @@ -0,0 +1,23 @@ +#Environment Variables for the Hyprland session + +# XDG +env = XDG_CURRENT_DESKTOP,Hyprland +env = XDG_SESSION_TYPE,wayland +env = XDG_SESSION_DESKTOP,Hyprland + +# QT +env = QT_AUTO_SCREEN_SCALE_FACTOR,1 +env = QT_QPA_PLATFORM=wayland;xcb # Not yet working for onlyoffice-editor +env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1 +env = QT_QPA_PLATFORMTHEME,qt6ct + +# GTK +#env = GDK_BACKEND=wayland + +# Toolkit +#env = SDL_VIDEODRIVER,wayland +env = _JAVA_AWT_WM_NONEREPARENTING,1 +env = CLUTTER_BACKEND,wayland +env = GDK_BACKEND,wayland,x11 +env = MOZ_ENABLE_WAYLAND,1 + diff --git a/linux/home/.config/hypr/user/exec.conf b/linux/home/.config/hypr/user/exec.conf new file mode 100644 index 0000000..22846d9 --- /dev/null +++ b/linux/home/.config/hypr/user/exec.conf @@ -0,0 +1,4 @@ +exec-once=$HOME/.config/hypr/autostart +exec-once = swww kill; swww init --format xrgb +exec = ags +exec =$HOME/.scripts/move-qemu.sh diff --git a/linux/home/.config/hypr/user/monitors.conf b/linux/home/.config/hypr/user/monitors.conf new file mode 100644 index 0000000..7464786 --- /dev/null +++ b/linux/home/.config/hypr/user/monitors.conf @@ -0,0 +1,4 @@ +monitor=auto,preferred,auto, 1, bitdepth,10 +#monitor=, 1920x1080@60, auto, 1 +#monitor=, 1366x768@60, auto, 1 +#monitor=LVDS-1, 1366x768@60, auto, 1, bitdepth,10 diff --git a/linux/home/.config/hypr/user/window_rules.conf b/linux/home/.config/hypr/user/window_rules.conf new file mode 100644 index 0000000..3964de2 --- /dev/null +++ b/linux/home/.config/hypr/user/window_rules.conf @@ -0,0 +1,70 @@ +# {{@@ header() @@}} +# vim:fileencoding=utf-8:ft=conf:foldmethod=marker + +# Workspaces +windowrulev2 = workspace 1 silent, class:firefox +windowrulev2 = workspace 4 silent, class:discord +windowrulev2 = workspace 5 silent, class:Spotify + +# Scratchpad +$scratchpad = class:^(scratchpad)$ +windowrulev2 = opacity 1 0.9,class:^(scratchpad)$ +windowrulev2 = float,$scratchpad +#windowrule = float,^(scratchpad)$ +#windowrule = move 15 40, ^(scratchpad)$ +#windowrule = move center,^(scratchpad)$ +#$scratchpadsize = size 98% 93% +#windowrulev2 = tile,$scratchpad +#windowrulev2 = pin,$scratchpad +#windowrulev2=windowdance,$scratchpad +#windowrulev2 = move 100%-20,$scratchpad +#windowrulev2 = $scratchpadsize,$scratchpad + +# HUD +windowrule = float, ^(heads-up-display)$ +windowrule = pin, ^(heads-up-display)$ +windowrule = size 325 160, ^(heads-up-display)$ +windowrule = move 1020 50, ^(heads-up-display)$ + +# Package manager Terminal +windowrule = float, ^(pac)$ +windowrule = pin, ^(pac)$ +windowrule = size 325 160, ^(pac)$ +windowrule = move 50 50, ^(pac)$ + +# Picture-in-Picture +windowrulev2 = idleinhibit fullscreen, title:^Picture-in-Picture$ +windowrulev2 = float, title:^Picture-in-Picture$ +windowrulev2 = pin, title:^Picture-in-Picture$ +windowrulev2 = move 920 480, title:^Picture-in-Picture$ +windowrulev2 = size 425 260, title:^Picture-in-Picture$ + +# Firefox +windowrulev2 = float, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$ +windowrulev2 = opacity 1 1,class:^(firefox)$ + +# Applications +windowrule = float,^(rlr)$ +windowrule = float,^(pavucontrol)$ +windowrule = float,^(blueman-manager)$ +windowrule = float,^(nm-connection-editor)$ +windowrule = float,^(mediainfo-gui)$ +windowrulev2 = float, class:^(nemo)$, title:^(.*Properties)$ +windowrulev2 = float, class:^(Nemo-preview-start)$ +windowrulev2 = move 100%-433 53, class:^(wofi)$, title:^(clippick)$ +windowrulev2 = animation popin, class:^(wlogout)$, title:^(wlogout)$ +windowrulev2 = float, class:^(wlogout)$, title:^(wlogout)$ +windowrulev2 = animation slide, class:^(wofi)$ +#windowrulev2 = float, class:^(steam)$ +windowrule = float,^(com.github.neithern.g4music)$ +windowrule = size 670 635,^(com.github.neithern.g4music)$ +windowrule = move center,^(com.github.neithern.g4music)$ +windowrulev2 = opacity 0.0 override,class:^(xwaylandvideobridge)$ +windowrulev2 = noanim,class:^(xwaylandvideobridge)$ +windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$ +windowrulev2 = maxsize 1 1,class:^(xwaylandvideobridge)$ +windowrulev2 = noblur,class:^(xwaylandvideobridge)$ + +# Blur +windowrule = noblur,^(firefox)$ # disables blur for firefox +windowrule = noblur,^(scratchpad)$ # disables blur for firefox |
