chore: proper keymap documentation and more cleanup

This commit is contained in:
Fabio Lenherr / DashieTM 2023-01-01 23:48:42 +01:00
parent 6f9ecd5c96
commit d46086ec26
16 changed files with 348 additions and 109 deletions

191
hypr/hyprland.conf Normal file
View file

@ -0,0 +1,191 @@
#
#fix the fucking portal
exec-once=systemctl --user import-environment
exec-once=dbus-update-activation-environment --all
#
#
monitor=DP-3,2560x1440@165,0x0,1
monitor=DP-1,3440x1440@180,2560x0,1
monitor=DP-2,1920x1200@60,6000x0,1
monitor=DP-2,transform,1
monitor=,highrr,auto,1
workspace=DP-3,1
workspace=DP-1,2
workspace=DP-2,3
input {
kb_file=/home/dashie/.config/keymap.xkb #us with dead_diaeresis on shift + ' to get ä ö ü
kb_layout=
kb_variant=
kb_model=
kb_options=
kb_rules=
repeat_delay=200
natural_scroll=false
follow_mouse=1
force_no_accel=true
touchpad {
natural_scroll=yes
tap-to-click=yes
}
}
general {
sensitivity=1.0 # for mouse cursor
gaps_in=5
gaps_out=10
border_size=3
col.active_border=0xFFFF0000 0xFF00FF00 0xFF0000FF 45deg
col.inactive_border=0x66333333
apply_sens_to_raw=0 # whether to apply the sensitivity to raw input (e.g. used by games where you aim using your mouse)
}
decoration {
rounding=10
blur=1
blur_size=3 # minimum 1
blur_passes=1 # minimum 1
blur_new_optimizations=true
}
animations {
enabled=1
animation=windowsMove,1,1,default
animation=windows,1,7,default
animation=border,1,10,default
animation=fade,1,10,default
animation=workspaces,1,6,default
}
dwindle {
preserve_split=true
pseudotile=0 # enable pseudotiling on dwindle
}
gestures {
workspace_swipe=yes
}
misc {
no_vfr=false
# animate_manual_resizes=true
# enable_swallow=true
# swallow_regex=^(.*)(Alacritty)(.*)$
}
#reserve place for bar
#monitor=eDP-1,addreserved,45,0,0,0
# example window rules
# for windows named/classed as abc and xyz
windowrule=tile,^(.*)(Spotify)(.*)$
windowrule=float,^(.*)(Steam)(.*)$
windowrule=float,^(.*)(Calculator)(.*)$
windowrule=float,^(.*)(winecfg.exe)(.*)$
windowrule=float,^(.*)(speed.exe)(.*)$
windowrule=center,^(.*)(gnome)(.*)$
# windowrule=windowdance,^(.*)(ota)(.*)$
windowrule=forceinput,^(.*)(ota)(.*)$
windowrule=size 1200 800,^(org.gnome.NautilusPreviewer)$
windowrule=center,^(.*)(swappy)(.*)$
windowrule=opacity 80,^(.*)(dunst)(.*)$
#windowrule=tile,xyz
#windowrule=float,abc
#windowrule=pseudo,abc
#windowrule=monitor 0,xyz
# example binds
bind=SUPER,S,exec,grim -g "$(slurp)" - | wl-copy
bind=SUPERSHIFTALT,S,exec,grim -g "$(slurp)" $HOME/gits/ost-3semester/Screenshots/$(date +'%Y-%m-%d:%I:%M:%S.png')
bind=SUPERSHIFT,S,exec,grim -g "$(slurp)" - | swappy -f -
bind=SUPER,F,exec,firefox
bind=SUPER,T,exec,alacritty
bind=SUPER,Q,killactive,
bind=SUPER,M,exit,
bind=SUPER,E,exec,nautilus --new-window
bind=SUPER,V,togglefloating,
bind=SUPER,B,fullscreen,
bind=SUPER,R,exec,wofi -I -m -t alacritty -s ~/.config/wofi/style.css --show drun
bind=SUPERSHIFT,R,exec,wofi -I -m -t alacritty -s ~/.config/wofi/style.css --show run
bind=SUPER,C,togglesplit
bind=SUPER,G,exec,calculator --gui
bind=SUPERSHIFT,L,exec, playerctl -a pause & swaylock -c 000000 & systemctl suspend
bind=,XF86AudioMute,exec,pactl set-sink-mute @DEFAULT_SINK@ toggle
bind=,XF86AudioLowerVolume,exec, $HOME/.config/eww/scripts/change-volume sink -5%
bind=,XF86AudioRaiseVolume,exec, $HOME/.config/eww/scripts/change-volume sink +5%
bind=,XF86AudioPlay,exec, playerctl play-pause
bind=,XF86AudioNext,exec, playerctl next
bind=,XF86AudioPrev,exec, playerctl previous
bind=,XF86MonBrightnessDown,exec, $HOME/.config/eww/scripts/change-brightness brightness 10%-
bind=,XF86MonBrightnessUp,exec, $HOME/.config/eww/scripts/change-brightness brightness +10%
bind=SUPER,D,exec,$HOME/.config/eww/scripts/cockpit_toggle
binde=SUPER,bracketleft,movefocus,l
binde=SUPER,bracketright,movefocus,r
binde=SUPER,semicolon,movefocus,u
binde=SUPER,apostrophe,movefocus,d
bind=SUPER,left,movewindow,l
bind=SUPER,right,movewindow,r
bind=SUPER,up,movewindow,u
bind=SUPER,down,movewindow,d
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
bind=SUPERSHIFT,1,movetoworkspace,1
bind=SUPERSHIFT,2,movetoworkspace,2
bind=SUPERSHIFT,3,movetoworkspace,3
bind=SUPERSHIFT,4,movetoworkspace,4
bind=SUPERSHIFT,5,movetoworkspace,5
bind=SUPERSHIFT,6,movetoworkspace,6
bind=SUPERSHIFT,7,movetoworkspace,7
bind=SUPERSHIFT,8,movetoworkspace,8
bind=SUPERSHIFT,9,movetoworkspace,9
bind=SUPERSHIFT,0,movetoworkspace,10
bindm=SUPER,mouse:272,movewindow
bindm=SUPER,mouse:273,resizewindow
binde=SUPER,O,resizeactive,-20 0
binde=SUPER,P,resizeactive,20 0
binde=SUPER,K,resizeactive,0 -20
binde=SUPER,L,resizeactive,0 20
#binds for debug testing
bind=SUPERALT,H,pass,^(wlroots)$
bind=SUPERALT,J,pass,^(wlroots)$
bind=SUPERALT,left,pass,^(wlroots)$
bind=SUPERALT,right,pass,^(wlroots)$
bind=SUPERALT,up,pass,^(wlroots)$
bind=SUPERALT,down,pass,^(wlroots)$
#autostart programs
#exec=~/Documents/scripts/hyprstart.sh
#exec=hyprstart.sh
exec-once=hyprpaper
exec-once=eww daemon
exec-once=eww open bar
exec-once=element-desktop
exec-once=firefox
exec-once=streamdeck -n