mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-12 04:36:37 +02:00
hyprland: Simplify config
Less is more.
This commit is contained in:
parent
328f30151b
commit
ad3090d161
@ -1,16 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
# NOTE: This script was taken from the Hyprland wiki
|
||||
# TODO: Integrate hyprctl commands into your own workflow.
|
||||
HYPRGAMEMODE=$(hyprctl getoption animations:enabled | sed -n '2p' | awk '{print $2}')
|
||||
if [ $HYPRGAMEMODE = 1 ] ; then
|
||||
hyprctl --batch "\
|
||||
keyword animations:enabled 0;\
|
||||
keyword decoration:drop_shadow 0;\
|
||||
keyword decoration:blur 0;\
|
||||
keyword general:gaps_in 0;\
|
||||
keyword general:gaps_out 0;\
|
||||
keyword general:border_size 1;\
|
||||
keyword decoration:rounding 0"
|
||||
exit
|
||||
fi
|
||||
hyprctl reload
|
@ -1,23 +1,3 @@
|
||||
# Change the scale of the monitor
|
||||
monitor=eDP-1,preferred,auto,1
|
||||
|
||||
# Make it easy to plug in other monitors
|
||||
monitor=,preferred,auto,1
|
||||
#monitor=,highrr,auto,1 # Use the highest refresh rate
|
||||
#monitor=,highres,auto,1 # Use the highest resolution
|
||||
|
||||
# Execute your favorite apps at launch
|
||||
exec-once = swaybg --mode fill --image "$(fd -d 1 wallpaper.png /nix/store/)"
|
||||
exec-once = wpctl set-volume @DEFAULT_AUDIO_SINK@ 20%
|
||||
exec-once = sleep 0.5 && waybar
|
||||
exec-once = fcitx5 # Japanese input support
|
||||
exec-once = mullvad-vpn
|
||||
exec-once = wl-paste -p --watch wl-copy -pc # Disable middle click paste
|
||||
exec-once = udiskie # Auto-mount drives
|
||||
# exec-once = hyprland-autoname-workspaces --dedup
|
||||
# exec-once = play ~/start.flac
|
||||
|
||||
# Some default env vars.
|
||||
env=XCURSOR_SIZE,24
|
||||
env=BROWSER,librewolf
|
||||
env=GTK_IM_MODULE,fcitx
|
||||
@ -25,19 +5,25 @@ env = QT_IM_MODULE,fcitx
|
||||
env=XMODIFIERS,@im=fcitx
|
||||
env=SDL_IM_MODULE,fcitx
|
||||
env=GLFW_IM_MODULE,ibus
|
||||
monitor=,preferred,auto,1
|
||||
|
||||
exec-once = swaybg --mode fill --image "$(fd -d 1 wallpaper.png /nix/store/)"
|
||||
exec-once = wpctl set-volume @DEFAULT_AUDIO_SINK@ 20%
|
||||
exec-once = sleep 0.5 && waybar
|
||||
exec-once = fcitx5 # Japanese input support
|
||||
exec-once = mullvad-vpn
|
||||
exec-once = wl-paste -p --watch wl-copy -pc # Disable middle click paste
|
||||
exec-once = udiskie # Auto-mount drives
|
||||
|
||||
input {
|
||||
kb_layout = us
|
||||
accel_profile = flat
|
||||
|
||||
follow_mouse = 1
|
||||
|
||||
sensitivity = 0
|
||||
touchpad {
|
||||
natural_scroll = yes
|
||||
disable_while_typing = no
|
||||
}
|
||||
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
}
|
||||
|
||||
general {
|
||||
@ -53,7 +39,6 @@ general {
|
||||
decoration {
|
||||
rounding = 0
|
||||
blur = yes
|
||||
#inactive_opacity = 0.3
|
||||
blur_size = 3
|
||||
blur_passes = 1
|
||||
blur_new_optimizations = yes
|
||||
@ -105,9 +90,6 @@ device:tpps/2-elan-trackpoint {
|
||||
accel_profile = flat
|
||||
}
|
||||
|
||||
bind = SUPER, Z, exec, rofi -show
|
||||
bind = SUPER_SHIFT, Z, workspace, empty
|
||||
bind = SUPER_SHIFT, Z, exec, rofi -show
|
||||
bind = SUPER_SHIFT, Return, exec, kitty
|
||||
bind = SUPER, Tab, workspace, e+1
|
||||
bind = SUPER_SHIFT, Tab, workspace, e-1
|
||||
@ -143,42 +125,21 @@ bind = SUPER, L, layoutmsg, removemaster
|
||||
bind = SUPER_SHIFT, H, splitratio, -0.05
|
||||
bind = SUPER_SHIFT, L, splitratio, +0.05
|
||||
|
||||
# Switch workspaces with super + [0-9]
|
||||
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
|
||||
bind = SUPER, 0, workspace, 10
|
||||
|
||||
# Move active window to a workspace with super + shift + [0-9]
|
||||
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
|
||||
bind = SUPER_SHIFT, 0, movetoworkspace, 10
|
||||
|
||||
# Toggle workspaces with super + ctrl + [0-9]
|
||||
# TODO: Use 0 to show windows in all workspaces
|
||||
bind = SUPER_CTRL, 1, exec, ~/.config/hypr/tags.sh 1
|
||||
bind = SUPER_CTRL, 2, exec, ~/.config/hypr/tags.sh 2
|
||||
bind = SUPER_CTRL, 3, exec, ~/.config/hypr/tags.sh 3
|
||||
bind = SUPER_CTRL, 4, exec, ~/.config/hypr/tags.sh 4
|
||||
bind = SUPER_CTRL, 5, exec, ~/.config/hypr/tags.sh 5
|
||||
bind = SUPER_CTRL, 6, exec, ~/.config/hypr/tags.sh 6
|
||||
bind = SUPER_CTRL, 7, exec, ~/.config/hypr/tags.sh 7
|
||||
bind = SUPER_CTRL, 8, exec, ~/.config/hypr/tags.sh 8
|
||||
bind = SUPER_CTRL, 9, exec, ~/.config/hypr/tags.sh 9
|
||||
bind = SUPER_CTRL, 0, exec, ~/.config/hypr/tags.sh 10
|
||||
|
||||
layerrule = blur,waybar
|
||||
|
||||
@ -198,8 +159,6 @@ bindl=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- &&
|
||||
bindl=, XF86MonBrightnessDown, exec, brightnessctl set 5%- && notify-send -t 2000 "Decreased brightness to" "$(brightnessctl get)"
|
||||
bindl=, XF86MonBrightnessUp, exec, brightnessctl set +5% && notify-send -t 2000 "Increased brightness to" "$(brightnessctl get)"
|
||||
|
||||
bind = WIN, F1, exec, ~/.config/hypr/gamemode.sh
|
||||
|
||||
misc {
|
||||
disable_hyprland_logo = yes
|
||||
animate_mouse_windowdragging = yes
|
||||
|
Loading…
x
Reference in New Issue
Block a user