Add '.config/hypr/hyprland.conf'

This commit is contained in:
tk1rk 2022-11-14 22:49:20 +01:00
parent 433911dee3
commit 253591cd9a
1 changed files with 216 additions and 0 deletions

216
.config/hypr/hyprland.conf Normal file
View File

@ -0,0 +1,216 @@
# This is an example Hyprland config file.
# Syntax is the same as in Hypr, but settings might differ.
#
# Refer to the wiki for more information.
#
# Please note not all available settings / options are set here.
# For a full list, see the wiki (basic and advanced configuring)
#
# Variables
$browser = /usr/bin/qutebrowser
$terminal = alacritty
$editor = alacritty -t Neovim -e /usr/bin/nvim
$files = kitty --title ranger -e /usr/bin/ranger
monitor=,preferred,auto,1
workspace=DP-1,1
input {
kb_file=
kb_layout=
kb_variant=
kb_model=
kb_options=
kb_rules=
follow_mouse=true
touchpad {
natural_scroll=false
disable_while_typing=true
middle_button_emulation=true
tap-to-click=true
}
}
general {
sensitivity=3.0
main_mod=SUPER
no_cursor_warps=false
gaps_in=2
gaps_out=5
border_size=3
col.active_border=rgb(B5E8E0ff)
col.inactive_border=0x00333333
cursor_inactive_timeout=2
apply_sens_to_raw=0 # whether to apply the sensitivity to raw input (e.g. used by games where you aim using your mouse)
damage_tracking=full # leave it on full unless you hate your GPU and want to make it suffer
no_border_on_floating=true
}
decoration {
# rounding=3
# blur=true
# multisample_edges=true
# blur_size=6 # minimum 1
# blur_passes=1 # minimum 1
# blur_new_optimizations=true
# active_opacity=0.8
# inactive_opacity=0.8
# fullscreen_opacity=1
# drop_shadow=false
rounding=3
blur=1
blur_size=08 # minimum 1
blur_passes=1 # minimum 1
blur_new_optimizations=1
active_opacity=0.8
inactive_opacity=0.8
fullscreen_opacity=1
}
animations {
enabled=1
animation=windows,1,4,default
animation=border,1,1,default
animation=fade,1,9,default
animation=workspaces,1,3,default
}
dwindle {
pseudotile=0 # enable pseudotiling on dwindle
}
gestures {
workspace_swipe=no
}
binds {
workspace_back_and_forth=true
}
misc {
disable_hyprland_logo=true
no_vfr=false
}
# example window rules
# for windows named/classed as abc and xyz
#windowrule=move 69 420,abc
#windowrule=size 420 69,abc
#windowrule=tile,xyz
#windowrule=float,abc
#windowrule=pseudo,abc
#windowrule=monitor 0,xyz
windowrule=float,Rofi
windowrule=tile,spotify
windowrule=workspace 1 silent,qutebrowser
windowrule=workspace 2 silent,Alacritty
windowrule=workspace 3 silent,kitty
windowrule=workspace 1 silent,Firefox
windowrule=workspace 6 silent,telegram
windowrule=workspace 4 silent,Emacs
windowrule=workspace 7 silent,zathura
windowrule=workspace 9 silent,thunderbird
windowrule=workspace 8 silent,FreeTube
windowrule=workspace 10 silent,discord
# example binds
bind=SUPER,36,exec,alacritty
bind=SUPER,Q,killactive,
bind=SUPER,M,exit,
bind=SUPER,F,exec,firefox
bind=SUPERSHIFT,F,fullscreen,
bind=SUPER,E,exec,telegram-desktop
bind=SUPERSHIFT,space,togglefloating,
#bind=SUPER,P,pseudo,
bind=SUPER,P,exec,chromium
bind=SUPER,Z,exec,zoom
bind=SUPER,W,exec,qutebrowser
bind=SUPER,U,exec,freetube
bind=SUPER,A,exec,emacs
bind=SUPER,B,exec,thunderbird
bind=SUPER,R,exec,discord
bind=SUPER,C,exec,killall -SIGUSR1 waybar
bind=SUPERSHIFT,D,exec,~/.config/polybar/blocks/scripts/launcher.sh
bind=SUPERCTRL,Q,exec,~/.config/polybar/blocks/scripts/powermenu.sh
bind=SUPERSHIFT,N,exec,~/.config/polybar/blocks/scripts/wifimenu.sh
bind=,Print,exec,grim ~/Pictures/Screenshots/$(date +'%Y%m%d%H%M%S_1.png') && notify-send 'Screenshot Saved'
bind=SUPER,N,exec,kitty --title ranger -e /usr/bin/ranger
bind=SUPER,S,exec,spotify
#bind=SUPERSHIFT,S,movecursortocorner,3
#bind=SUPERSHIFT,D,movecursortocorner,2
#bind=SUPERSHIFT,X,movecursortocorner,0
bind=SUPERSHIFT,C,movecursortocorner,1
bind=,XF86AudioRaiseVolume,exec,~/.config/dunst/volume2.sh up
bind=,XF86AudioLowerVolume,exec,~/.config/dunst/volume2.sh down
bind=,XF86AudioMute,exec,~/.config/dunst/volume2.sh mute
bind=,XF86MonBrightnessUp,exec,~/.config/dunst/brightness.sh up
bind=,XF86MonBrightnessDown,exec,~/.config/dunst/brightness.sh down
#bind=,XF86Calculator,exec,QT_QPA_PLATFORMTHEME=qt5ct kcalc
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
bind=SUPER,H,movefocus,l
bind=SUPER,L,movefocus,r
bind=SUPER,K,movefocus,u
bind=SUPER,J,movefocus,d
bind=SUPER,left,movefocus,l
bind=SUPER,right,movefocus,r
bind=SUPER,up,movefocus,u
bind=SUPER,down,movefocus,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,H,movewindow,l
bind=SUPERSHIFT,L,movewindow,r
bind=SUPERSHIFT,K,movewindow,u
bind=SUPERSHIFT,J,movewindow,d
bind=SUPERSHIFT,left,movewindow,l
bind=SUPERSHIFT,right,movewindow,r
bind=SUPERSHIFT,up,movewindow,u
bind=SUPERSHIFT,down,movewindow,d
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
bind=SUPER,mouse_down,workspace,e+1
bind=SUPER,mouse_up,workspace,e-1
exec-once=hyprpaper
exec-once=waybar
exec-once=dunst
#exec-once=nm-applet
exec-once=swayidle
#exec-one=mako