]> Freerunner's - dotfiles.git/commitdiff
hyprland: update config
authorAndre Ramnitz <tux.rising@gmail.com>
Mon, 11 Dec 2023 22:27:21 +0000 (23:27 +0100)
committerAndre Ramnitz <tux.rising@gmail.com>
Sun, 18 Aug 2024 16:18:52 +0000 (18:18 +0200)
hypr/.config/hypr/hyprland.conf
hypr/.config/hypr/scripts/daemons.sh [new file with mode: 0755]
hypr/.config/hypr/scripts/startup.sh

index 613ea3e9c0143fd897dd1cc233fb9001e99eca05..7c3d4beae20117404ab7f11c2fd18a9a2e0c2856 100644 (file)
@@ -23,10 +23,7 @@ env = XDG_SESSION_DESKTOP, Hyprland
 # Execute your favorite apps at launch
 
 exec-once = ~/.config/hypr/scripts/startup.sh
-exec-once = swww init
-exec-once = swww img ~/Bilder/Wallpapers/default.jpg
-exec-once = mpd
-exec-once = qutebrowser && sleep 3 && ~/.local/bin/foot && ~/.local/bin/foot
+exec-once = ~/.config/hypr/scripts/daemons.sh
 
 # Source a file (multi-file configs)
 # source = ~/.config/hypr/myColors.conf
@@ -64,7 +61,7 @@ general {
     gaps_in = 10
     gaps_out = 20
     border_size = 2
-    col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
+    col.active_border = rgba(ff6347ee) rgba(ff4500ee) 45deg
     col.inactive_border = rgba(595959aa)
 
     layout = dwindle
@@ -90,7 +87,7 @@ decoration {
     }
 
     drop_shadow = yes
-    shadow_range = 4
+    shadow_range = 8
     shadow_render_power = 3
     col.shadow = rgba(1a1a1aee)
 }
@@ -160,11 +157,12 @@ windowrulev2 = minsize 1 1, title:^()$, class:^(steam)$
 windowrulev2 = float, size 1560 1000, pin, workspace special:overlay, class:^(org.keepassxc.KeePassXC)$
 windowrule = float, ^(firefox)$
 windowrulev2 = opacity 1.0 override 0.8 override, group, class:^(foot)$
+windowrulev2 = opacity 1.0 override 0.8 override, float, class:^(popup)$ #kks shell integration
 windowrule = float, ^(openrgb)$
-windowrule = float, ^(org.kde.dolphin)$
-windowrule = float, ^(org.kde.okular)$
-windowrule = float, ^(org.kde.gwenview)$
-windowrule = float, ^(org.kde.skanlite)$
+windowrule = float, ^(org.kde.*)$
+windowrule = float, ^(org.kde.okular)$
+windowrule = float, ^(org.kde.gwenview)$
+windowrule = float, ^(org.kde.skanlite)$
 
 # See https://wiki.hyprland.org/Configuring/Keywords/ for more
 $sureMod = SUPER ALT CTRL
@@ -253,6 +251,9 @@ bind = , XF86AudioNext, exec, playerctl next
 bind = , XF86AudioPrev, exec, playerctl previous
 bind = , XF86audiostop, exec, playerctl stop
 
+# printscr
+bind = $mainMod, Print, exec, grim -g "$(slurp)" - | swappy -f -
+
 # 'scratchpad
 bind = $mainMod, O, togglespecialworkspace, overlay
 bind = $mainMod SHIFT, O, movetoworkspace, special:overlay
diff --git a/hypr/.config/hypr/scripts/daemons.sh b/hypr/.config/hypr/scripts/daemons.sh
new file mode 100755 (executable)
index 0000000..c8bf495
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/env bash
+logger '=============================='
+logger 'userland daemons startup begin'
+
+
+if [[ ! $(pidof mpd) ]]; then
+       mpd &
+       logger 'mpd started'
+fi
+
+if [[ ! $(pidof mpd-mpris) ]]; then
+       mpd-mpris &
+       logger 'mpd-mpris started'
+fi
+
+if [[ ! $(pidof swww-daemon) ]]; then
+    swww init &
+    logger 'swww-daemon started'
+    swww img ~/Bilder/Wallpapers/default.jpg &
+fi
+
+openrgb -p simple.orp &
+kak -d -s default &
+
+sleep 2 && logger 'userland daemons startup begin' && logger '=============================='
index 2519826816c9fc803a353b3b62e907bc1f0563be..f90c66daddb27288a607d3642c44b450430b6579 100755 (executable)
@@ -1,17 +1,19 @@
 #!/usr/bin/env bash
 
 logger '============================'
-logger 'NEW hyprland session started'
+logger 'hyperland main startup begin'
 
 CONFIG="$HOME/.config/mako/config"
 
 if [[ ! -d "$XDG_RUNTIME_DIR" ]] ; then
+    # shellcheck disable=SC2155
+    # shellcheck disable=SC2046
     export XDG_RUNTIME_DIR=$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX)
     logger 'xdg-runtime dir set'
 fi
 
 if [[ ! "$DBUS_SESSION_BUS_ADDRESS" ]]; then
-    dbus-daemon --session --address=unix:path=$XDG_RUNTIME_DIR/bus &
+    dbus-daemon --session --address=unix:path="$XDG_RUNTIME_DIR"/bus &
     logger 'dbus session daemon started'
 fi
 
@@ -49,12 +51,10 @@ else
     logger 'gentoo-pipewire-launcher (re-)started'
 fi
 
-openrgb -p simple.orp &
-
 if [[ ! $(pidof waybar) ]]; then
     waybar &
     logger 'waybar started'
 fi
 
-sleep 2 && logger 'END of hyprland session start' && logger '============================='
+sleep 2 && logger 'hyperland main startup begin' && logger '============================'