summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-07-05 13:24:36 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-07-05 13:24:36 +0800
commitc0aa58b09876eee82b6df2c27a993a42db0bec9d (patch)
treef244798f4f14b91406b21d3b6c397a5fee4cc4f9
parent3f8159bd6fd193a252c9de73dec1ac742d34dc79 (diff)
bump: hyprland
-rw-r--r--dot-config/hypr/autostart.conf21
-rw-r--r--dot-config/hypr/binds.conf43
-rw-r--r--dot-config/hypr/hyprland.conf17
-rw-r--r--dot-config/hypr/rules.conf11
4 files changed, 57 insertions, 35 deletions
diff --git a/dot-config/hypr/autostart.conf b/dot-config/hypr/autostart.conf
index 678c01a2..fdf90871 100644
--- a/dot-config/hypr/autostart.conf
+++ b/dot-config/hypr/autostart.conf
@@ -39,13 +39,13 @@ exec-once = /usr/lib/geoclue-2.0/demos/agent &
# input method
exec-once = fcitx5 -d
# app armor notifications
-# exec-once = aa-notify -p -s 1 -w 60 -f /var/log/audit/audit.log
+exec-once = aa-notify -p -s 1 -w 60 -f /var/log/audit/audit.log
# Clipboard history
# exec-once = wl-paste --watch cliphist store
exec-once = wl-paste --type text --watch cliphist store
exec-once = wl-paste --type image --watch cliphist store
-exec-once = clipsync
+# exec-once = clipsync
# exec-once = wl-clip-persist --clipboard regular
# Notification agent
@@ -75,11 +75,11 @@ exec-once = udiskie
exec-once = bitwarden-desktop
# exec-once = kdeconnectd
# exec-once = killall input-leap input-leaps; input-leap # works with https://github.com/3l0w/Hyprland/tree/feat/input-capture-impl
-exec-once = nextcloud --background
-exec-once = [noinitialfocus; workspace, special] localsend --hidden
-exec-once = [workspace 6 silent; noinitialfocus] vesktop-bin --start-minimized
+# exec-once = nextcloud --background
+# exec-once = [noinitialfocus; workspace, special] localsend --hidden
+# exec-once = [workspace 6 silent; noinitialfocus] discord --start-minimized
exec-once = beeper $waylandarg --no-sandbox --hidden --default-frame --enable-wayland-ime
-exec-once = bash -c "echo 'ddcci 0x37' | sudo tee /sys/bus/i2c/devices/i2c-13/new_device"
+# exec-once = bash -c "echo 'ddcci 0x37' | sudo tee /sys/bus/i2c/devices/i2c-13/new_device"
# Notify if stuff is already started
exec-once = warp-cli status | grep Connect && notify-send 'warp-vpn' 'connected'
@@ -94,8 +94,7 @@ exec-once = hyprsession
exec-once = $SCRIPTSDIR/hypridle.sh --stopidle
# spam of notification at start(e.g. chromium)
-exec-once = swaync-client --dnd-on && sleep 3 && swaync-client --dnd-off
-
+exec-once = if [[ $(swaync-client --get-dnd) == "false" ]]; then swaync-client --dnd-on && sleep 3 && swaync-client --dnd-off; fi
# thunar launch faster
exec-once = while true; do thunar --daemon; done
@@ -107,4 +106,8 @@ exec-once = while true; do thunar --daemon; done
# backlight
# exec-once = wf-recorder --muxer=v4l2 --codec=rawvideo --file=/dev/video9 -x yuv420p
-# exec-once = sleep 3 && hyperhdr
+exec-once = while true; do hyperhdr; done
+exec-once = video-guard
+
+exec-once = while true; do ~/scripts/flipper-ac.py "$(nc -lp 4883)"; done
+exec-once = while true; do nc -lp 4884 -e "~/scripts/flipper-ac.py statusBool"; done
diff --git a/dot-config/hypr/binds.conf b/dot-config/hypr/binds.conf
index 6f18b355..8783bae7 100644
--- a/dot-config/hypr/binds.conf
+++ b/dot-config/hypr/binds.conf
@@ -80,12 +80,10 @@ bind = $mod, Pause, execr, hyprfreeze -s -a
bind = ,Print, execr, $HOME/scripts/hyprshot --now
# Brightness
-bind = ,XF86MonBrightnessUp, execr, $HOME/scripts/sysutil.sh brightness --inc
-bind = ,XF86MonBrightnessDown, execr, $HOME/scripts/sysutil.sh brightness --dec
-# binde = ,XF86MonBrightnessUp, execr, hyprctl hyprsunset gamma +5
-# binde = ,XF86MonBrightnessDown, execr, hyprctl hyprsunset gamma -5
-
-
+# bind = ,XF86MonBrightnessUp, execr, $HOME/scripts/sysutil.sh brightness --inc
+# bind = ,XF86MonBrightnessDown, execr, $HOME/scripts/sysutil.sh brightness --dec
+binde = ,XF86MonBrightnessUp, execr, hyprctl hyprsunset gamma +5
+binde = ,XF86MonBrightnessDown, execr, hyprctl hyprsunset gamma -5
# Window management
# bind = $mod, d, execr, $HOME/scripts/hyprhide h
@@ -137,17 +135,28 @@ binde = $mod shift, j, movewindow, d
# binde = ctrl $mod, down, resizeactive, 0 20
# binde = ctrl $mod alt, space, setfloating, 1
# binde = ctrl $mod alt, space, centerwindow, 1
-binde = ctrl $mod alt, space, scroller:setsize, one
+binde = ctrl $mod alt, space, scroller:setheight, one
+binde = ctrl $mod alt, space, scroller:setwidth, one
# binde = shift alt, left, moveactive, -20 0
# binde = shift alt, right, moveactive, 20 0
# binde = shift alt, up, moveactive, 0 -20
# binde = shift alt, down, moveactive, 0 20
-binde = ctrl $mod shift, h, scroller:movewindow, l
-binde = ctrl $mod shift, h, scroller:setsize, onehalf
-binde = ctrl $mod shift, h, scroller:movewindow, r
-binde = ctrl $mod shift, h, scroller:movefocus, l
-binde = ctrl $mod shift, h, scroller:movefocus, r
-binde = ctrl $mod shift, l, scroller:setsize, onehalf
+# binde = ctrl $mod shift, h, scroller:movewindow, l
+# binde = ctrl $mod shift, h, scroller:setsize, onehalf
+# binde = ctrl $mod shift, h, scroller:movewindow, r
+# binde = ctrl $mod shift, h, scroller:movefocus, l
+# binde = ctrl $mod shift, h, scroller:movefocus, r
+# binde = ctrl $mod shift, l, scroller:setsize, onehalf
+binde = ctrl $mod shift, l, scroller:cyclewidth, next
+binde = ctrl $mod shift, h, scroller:cyclewidth, prev
+
+binde = ctrl $mod shift, j, scroller:cycleheight, next
+binde = ctrl $mod shift, k, scroller:cycleheight, prev
+
+binde = $mod ctrl, h, scroller:admitwindow, l
+binde = $mod ctrl, l, scroller:admitwindow, r
+binde = $mod alt, h, scroller:expelwindow, r
+binde = $mod alt, l, scroller:expelwindow, l
bind = $mod, home, scroller:movefocus, begin
bind = $mod, end, scroller:movefocus, end
@@ -167,10 +176,10 @@ bind = $mod shift, m, togglesplit, # dwindle
bind = $mod, s, pin
# Move focus with mainMod + arrow keys
-binde = $mod, h, scroller:movefocus, l
-binde = $mod, l, scroller:movefocus, r
-binde = $mod, k, scroller:movefocus, u
-binde = $mod, j, scroller:movefocus, d
+binde = $mod, h, movefocus, l
+binde = $mod, l, movefocus, r
+binde = $mod, k, movefocus, u
+binde = $mod, j, movefocus, d
bind = ctrl $mod, k, focuswindow, floating
bind = ctrl $mod, j, focuswindow, tiled
# vim binds
diff --git a/dot-config/hypr/hyprland.conf b/dot-config/hypr/hyprland.conf
index 7e5e1322..27b5241a 100644
--- a/dot-config/hypr/hyprland.conf
+++ b/dot-config/hypr/hyprland.conf
@@ -3,8 +3,13 @@
################
# See https://wiki.hyprland.org/Configuring/Monitors/
-monitor=,highres@highrr,auto,auto#,bitdepth,10
+# monitor=,highres@highrr,auto,auto#,bitdepth,10#,cm,hdr,sdrbrightness,1.5,sdrsaturation, 0.8#,cm,auto
# monitor=,preferred,auto,auto,bitdepth,10
+monitorv2 {
+ output =
+ mode = highres
+ scale = 1.5
+}
###################
@@ -106,14 +111,18 @@ decoration {
}
screen_shader = /usr/share/hyprshade/shaders/vibrance.glsl
- # dim_inactive = true
- # dim_strength = 0.4
+ dim_inactive = true
+ dim_strength = 0.1
# https://wiki.hyprland.org/Configuring/Variables/#blur
blur {
enabled = true
+ # heavy
size = 5 # 10
passes = 5 # 4
+ # light
+ # size = 8
+ # passes = 3
# noise = 0
# crazy & cool options
@@ -221,8 +230,6 @@ group {
# }
render {
- explicit_sync = 1
- explicit_sync_kms = 1
direct_scanout = true
# xp_mode = true # crazy drag bg
ctm_animation = 1
diff --git a/dot-config/hypr/rules.conf b/dot-config/hypr/rules.conf
index 26c59683..1fcef340 100644
--- a/dot-config/hypr/rules.conf
+++ b/dot-config/hypr/rules.conf
@@ -58,6 +58,10 @@ windowrule = fullscreenstate 0 2, tag:fakefullscreen
windowrule = fullscreen, tag:games
# Tearing (for better gaming performance)
windowrule = immediate, tag:games
+# fh5
+windowrule = suppressevent activatefocus, title:^(Forza Horizon 5)$
+windowrule = suppressevent activatefocus, class:steam_app_1551360
+windowrule = suppressevent activatefocus, tag:games
# time-sensitive app rules
windowrule = stayfocused, tag:time-sensitive
@@ -113,7 +117,7 @@ windowrule = tag +games, title:^(War Thunder.*)$
windowrule = tag +games, content:game
# System/Settings applications
-windowrule = tag +system, class:^(virt-manager|blueman-adapters|GParted|Xdm-app|timeshift-gtk|com.nextcloud.desktopclient.nextcloud|gearlever|Lxappearance|Lxtask|Lxrandr|Arandr|System-config-printer.py|Pavucontrol|Exo-helper-1|Protonvpn|Xfce4-power-manager-settings|Mysql-workbench-bin|Grub-customizer|Nitrogen|archlinux-tweak-tool.py|pamac-manager|helvum|Vmware|btrfs-assistant|Bitwarden|wootility-lekker|nwg-look|com.github.wwmm.easyeffects|kvantummanager)$
+windowrule = tag +system, class:^(virt-manager|blueman-adapters|blueman-manager|GParted|Xdm-app|timeshift-gtk|com.nextcloud.desktopclient.nextcloud|gearlever|Lxappearance|Lxtask|Lxrandr|Arandr|System-config-printer.py|Pavucontrol|Exo-helper-1|Protonvpn|Xfce4-power-manager-settings|Mysql-workbench-bin|Grub-customizer|Nitrogen|archlinux-tweak-tool.py|pamac-manager|helvum|Vmware|btrfs-assistant|Bitwarden|wootility-lekker|nwg-look|com.github.wwmm.easyeffects|kvantummanager)$
# Miscellaneous applications
windowrule = tag +misc, class:^(os_server|Os_server)$
@@ -179,8 +183,8 @@ windowrule = stayfocused, title:^(btop)$
# No shadow for tiled window
windowrule = noshadow,floating:0
# no border for unfocused window
-windowrulev2 = noborder, focus:0
-windowrulev2 = noshadow, focus:0
+# windowrulev2 = noborder, focus:0
+# windowrulev2 = noshadow, focus:0
# Opacity rules
# windowrule = opacity 0.89 override 0.89 override, .* set in decoration
@@ -271,7 +275,6 @@ windowrule = nofocus, class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinne
# permissions
permission = /usr/bin/grim, screencopy, allow
-permission = /usr/bin/wf-recorder, screencopy, allow
permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow
permission = /var/cache/hyprpm/system/dynamic-cursors/dynamic-cursors.so, plugin, allow