Skip to content

Commit 30491e7

Browse files
committed
hyprland: Split the config file
1 parent a64a641 commit 30491e7

File tree

8 files changed

+248
-246
lines changed

8 files changed

+248
-246
lines changed

.config/hypr/config.d/bind.conf

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# KeyBinds
2+
bind=SUPER,RETURN,exec,~/.local/bin/x-terminal-emulator
3+
bind=SUPER,c,exec,~/.local/bin/x-www-browser
4+
bind=SUPER,o,exec,xdg-open "$(find ~/Downloads -type f -not -name ".*" -printf "%T@ %p\n" | sort -n | cut -d' ' -f 2- | tail -n 1)"
5+
# bind=SUPER+SHIFT,e,exit,
6+
bind=SUPER+SHIFT,e,exec,ulauncher-toggle -q "sys "
7+
bind=SUPER+SHIFT,space,togglefloating,
8+
9+
## Group
10+
bind=SUPER,g,togglegroup,
11+
bind=SUPER,p,changegroupactive,f
12+
bind=SUPER,n,changegroupactive,b
13+
bind=SUPER+ALT,h,movewindoworgroup,l
14+
bind=SUPER+ALT,l,movewindoworgroup,r
15+
bind=SUPER+ALT,k,movewindoworgroup,u
16+
bind=SUPER+ALT,j,movewindoworgroup,d
17+
18+
## Mouse
19+
bindm=SUPER,mouse:272,movewindow
20+
bindm=SUPER,mouse:273,resizewindow
21+
22+
## Window
23+
bind=SUPER+SHIFT,q,killactive
24+
bind=ALT,F4,killactive
25+
bind=SUPER,f,fullscreen,1
26+
bind=SUPER+SHIFT,f,fullscreen,0
27+
bind=SUPER+SHIFT,space,togglefloating
28+
bind=SUPER+CTRL,space,togglefloating
29+
30+
bind=SUPER+SHIFT,backslash,layoutmsg,preselect r
31+
bind=SUPER,minus,layoutmsg,preselect d
32+
bind=SUPER,s,togglesplit
33+
34+
bind=SUPER,left,movefocus,l
35+
bind=SUPER,right,movefocus,r
36+
bind=SUPER,up,movefocus,u
37+
bind=SUPER,down,movefocus,d
38+
bind=SUPER,h,movefocus,l
39+
bind=SUPER,l,movefocus,r
40+
bind=SUPER,k,movefocus,u
41+
bind=SUPER,j,movefocus,d
42+
bind=SUPER+SHIFT,h,movewindow,l
43+
bind=SUPER+SHIFT,l,movewindow,r
44+
bind=SUPER+SHIFT,k,movewindow,u
45+
bind=SUPER+SHIFT,j,movewindow,d
46+
bind=SUPER+CTRL,h,movewindow,mon:l
47+
bind=SUPER+CTRL,l,movewindow,mon:r
48+
bind=SUPER+CTRL,k,movewindow,mon:u
49+
bind=SUPER+CTRL,j,movewindow,mon:d
50+
51+
## Workspace
52+
bind=SUPER,1,workspace,1
53+
bind=SUPER,2,workspace,2
54+
bind=SUPER,3,workspace,3
55+
bind=SUPER,4,workspace,4
56+
bind=SUPER,5,workspace,5
57+
bind=SUPER,6,workspace,6
58+
bind=SUPER,7,workspace,7
59+
bind=SUPER,8,workspace,8
60+
bind=SUPER,9,workspace,9
61+
bind=SUPER,0,workspace,10
62+
63+
bind=SUPER+SHIFT,1,movetoworkspacesilent,1
64+
bind=SUPER+SHIFT,2,movetoworkspacesilent,2
65+
bind=SUPER+SHIFT,3,movetoworkspacesilent,3
66+
bind=SUPER+SHIFT,4,movetoworkspacesilent,4
67+
bind=SUPER+SHIFT,5,movetoworkspacesilent,5
68+
bind=SUPER+SHIFT,6,movetoworkspacesilent,6
69+
bind=SUPER+SHIFT,7,movetoworkspacesilent,7
70+
bind=SUPER+SHIFT,8,movetoworkspacesilent,8
71+
bind=SUPER+SHIFT,9,movetoworkspacesilent,9
72+
bind=SUPER+SHIFT,0,movetoworkspacesilent,10
73+
74+
# bind=SUPER+CTRL+SHIFT,l,exec,pypr shift_monitors -1
75+
# bind=SUPER+CTRL+SHIFT,h,exec,pypr shift_monitors +1
76+
bind=SUPER+CTRL+SHIFT,h,movecurrentworkspacetomonitor,l
77+
bind=SUPER+CTRL+SHIFT,l,movecurrentworkspacetomonitor,r
78+
79+
bind=SUPER,mouse_down,workspace,e+1
80+
bind=SUPER,mouse_up,workspace,e-1

.config/hypr/config.d/env.conf

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Env
2+
env = GTK_THEME,Arc-Dark
3+
env = QT_STYLE_OVERRIDE,kvantum-dark
4+
env = LC_CTYPE,$LANG
5+
env = LC_NUMERIC,$LANG
6+
env = LC_TIME,$LANG
7+
env = LC_COLLATE,$LANG
8+
env = LC_MONETARY,$LANG
9+
env = LC_MESSAGES,$LANG
10+
env = LC_PAPER,$LANG
11+
env = LC_NAME,$LANG
12+
env = LC_ADDRESS,$LANG
13+
env = LC_TELEPHONE,$LANG
14+
env = LC_MEASUREMENT,$LANG
15+
env = LC_IDENTIFICATION,$LANG
16+
env = LC_ALL,
17+
18+
# fcitx
19+
env = XIM,fcitx
20+
env = XIM_PROGRAM,fcitx
21+
env = INPUT_METHOD,fcitx
22+
#env = GTK_IM_MODULE,fcitx
23+
env = QT_IM_MODULE,fcitx
24+
env = XMODIFIERS,@im=fcitx

.config/hypr/config.d/monitor.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
monitor=,preferred,auto,1

.config/hypr/config.d/option.conf

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
general {
2+
sensitivity = 1.0 # for mouse cursor
3+
cursor_inactive_timeout = 5
4+
5+
gaps_in = 2
6+
gaps_out = 2
7+
border_size = 2
8+
col.active_border = 0x66ee1111
9+
col.inactive_border = 0x66333333
10+
11+
apply_sens_to_raw = 0 # whether to apply the sensitivity to raw input (e.g. used by games where you aim using your mouse)
12+
13+
#damage_tracking = full # leave it on full unless you hate your GPU and want to make it suffer
14+
}
15+
16+
input {
17+
kb_layout =
18+
kb_variant =
19+
kb_model =
20+
kb_options =
21+
kb_rules =
22+
23+
follow_mouse = 1
24+
sensitivity = 1
25+
repeat_rate = 50
26+
repeat_delay = 500
27+
28+
touchpad {
29+
natural_scroll = no
30+
}
31+
}
32+
33+
decoration {
34+
rounding = 10
35+
blur {
36+
size = 3 # minimum 1
37+
passes = 1 # minimum 1, more passes = more resource intensive.
38+
}
39+
# Your blur "amount" is blur_size * blur_passes, but high blur_size (over around 5-ish) will produce artifacts.
40+
# if you want heavy blur, you need to up the blur_passes.
41+
# the more passes, the more you can up the blur_size without noticing artifacts.
42+
}
43+
44+
animations {
45+
enabled = 1
46+
animation = windows,1,7,default
47+
animation = border,1,10,default
48+
animation = fade,1,10,default
49+
animation = workspaces,1,6,default
50+
}
51+
52+
dwindle {
53+
pseudotile = true
54+
force_split = 2
55+
preserve_split = true
56+
}
57+
58+
gestures {
59+
workspace_swipe = no
60+
}
61+
62+
misc {
63+
disable_hyprland_logo = true
64+
disable_splash_rendering = true
65+
}

.config/hypr/config.d/startup.conf

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Startup
2+
exec-once=hyprpaper
3+
exec-once=hyprctl setcursor ComixCursors-Black 24
4+
exec-once=systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
5+
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
6+
# https://github.com/espanso/espanso/issues/1750
7+
#exec-once=systemctl --user start espanso
8+
#exec-once=nm-applet --indicator
9+
exec-once=blueman-applet
10+
exec-once=fcitx5
11+
exec-once=waybar
12+
exec-once=~/.config/hypr/scripts/hyprland_portal.sh
13+
14+
# Apps
15+
## Sound
16+
exec-once=pasystray
17+
exec-once=systemctl --user start pipewire pipewire-pulse wireplumber
18+
19+
## Waybar
20+
bind=SUPER,r,exec,killall -SIGUSR2 waybar
21+
22+
## pypr
23+
exec-once=pypr
24+
bind=SUPER,semicolon,exec,pypr toggle term
25+
# windowrulev2=float,class:(wezterm.scratchpad)
26+
# windowrulev2=workspace special:scratch_term silent,class:(wezterm.scratchpad)
27+
# windowrulev2=size 90% 90%,class:(wezterm.scratchpad)
28+
# windowrulev2=center,class:(wezterm.scratchpad)
29+
30+
## Lock
31+
exec-once=swayidle -w timeout 600 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
32+
exec-once=swayidle -w timeout 610 'swaylock -c 000000' resume 'hyprctl dispatch dpms on'
33+
exec-once=swayidle -w timeout 10 'if pgrep swaylock; then hyprctl dispatch dpms off"; fi' resume 'if pgrep swaylock; then hyprctl dispatch dpms on; fi'
34+
bind=SUPER,comma,exec,swaylock -c 000000
35+
36+
## Notification
37+
exec-once=dunst
38+
bind=SUPER,BackSpace,exec,dunstctl close
39+
bind=SUPER+SHIFT,BackSpace,exec,dunstctl close_all
40+
bind=SUPER,grave,exec,dunstctl history-pop
41+
bind=SUPER+SHIFT,grave,exec,dunstctl context
42+
bind=SUPER+CTRL,grave,exec,dunstctl action
43+
44+
## Ulauncher
45+
exec-once=systemctl --user import-environment PATH; systemctl --user start ulauncher
46+
bind=SUPER,d,exec,ulauncher-toggle
47+
bind=ALT,F2,exec,ulauncher-toggle
48+
bind=SUPER,space,exec,ulauncher-toggle
49+
50+
## CopyQ
51+
exec-once=copyq
52+
bind=SUPER+CTRL,v,exec,copyq show
53+
windowrulev2=float,class:(com.github.hluk.copyq)
54+
windowrulev2=size 50% 50%,class:(com.github.hluk.copyq)
55+
windowrulev2=center,class:(com.github.hluk.copyq)
56+
57+
## Screenshots
58+
bind=,Print,exec,grim "$(echo ~/Pictures/screenshots/$(date +'%Y%m%d_%H%M%S').png)"
59+
bind=SHIFT,Print,exec,grim -g "$(slurp)" - | swappy -f -
60+
bind=CTRL,Print,exec,swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | slurp | grim -g - - | swappy -f -
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Window rule
2+
windowrulev2=size 50% 70%,class:^(GTK Application)$
3+
windowrulev2=center,class:^(GTK Application)$
4+
windowrulev2 = bordercolor rgb(FF0000) rgb(880808),fullscreen:1

0 commit comments

Comments
 (0)