]> Freerunner's - dotfiles.git/commitdiff
hypr: add shutdown script, update config
authorAndre Ramnitz <tux.rising@gmail.com>
Mon, 15 Jan 2024 18:53:46 +0000 (19:53 +0100)
committerAndre Ramnitz <tux.rising@gmail.com>
Sun, 18 Aug 2024 16:18:53 +0000 (18:18 +0200)
waybar: revert to wl-gammarelay-rs

config/hypr/scripts/gammarelay-autotemp.py
config/hypr/scripts/powermenu.sh
config/hypr/scripts/shutdown.sh [new file with mode: 0755]
config/hypr/scripts/startup.sh
config/waybar/config

index c1a0c8a3688471791f3c51400b1749de8c604050..d0e4f08f2a6348ea90a605dfe704c0007a40ceb4 100755 (executable)
@@ -15,7 +15,7 @@ with open('/tmp/autotemp.pid', 'a') as pid_file:
 temp_day = 6500
 temp_night = 3800
 dawn_time = 9 * 3600  # 9am
-dusk_time = 19 * 3600  # 19pm
+dusk_time = 18 * 3600  # 19pm
 
 while True:
     temp = temp_day
index 8f4367ceb1f787609469ddf959c3872976fa1a7d..7e3c998db627357a946451b3f4f1b6b8ae26b0f8 100755 (executable)
@@ -9,7 +9,7 @@ case $selected in
     reload)
         waybar_reload.sh &;;
     logout)
-        hyprctl dispatch exit;;
+        "$HOME"/.config/hypr/scripts/shutdown.sh && hyprctl dispatch exit;;
     suspend)
         sync && exec loginctl suspend;;
     reboot)
diff --git a/config/hypr/scripts/shutdown.sh b/config/hypr/scripts/shutdown.sh
new file mode 100755 (executable)
index 0000000..8c3c5b2
--- /dev/null
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+killall polkit-kde-authentication-agent-1 &
+killall mako &
+killall xdg-desktop-portal-hyprland &
+killall xdg-desktop-portal-kde &
+killall xdg-desktop-portal-gtk &
+killall xdg-desktop-portal-gnome &
+killall xdg-desktop-portal-wlr &
+killall xdg-desktop-portal &
+killall wl-gammarelay-rs &
+kill "$(cat /tmp/autotemp.pid)" &
+
index aa80355cdc89613cd02d66c77c98582296b3fcd7..8d5ae1789831931312b414ce32ef6069053eaa6e 100755 (executable)
@@ -95,25 +95,25 @@ if [[ ! $(pidof swww-daemon) ]]; then
     swww img ~/Bilder/Wallpapers/default.jpg &
 fi
 
-# if [[ ! $(pidof wl-gammarelay-rs) ]]; then
-#     "$HOME"/.cargo/bin/wl-gammarelay-rs > /dev/null 2>&1 &
-#     logger 'gammarelay started'
-# fi
-# if [[ ! -f "/tmp/autotemp.pid" ]]; then
-#     #kill "$(cat /tmp/autotemp.pid)" && logger "autotemp pid file removed"
-#     "$HOME"/.config/hypr/scripts/gammarelay-autotemp.py > /dev/null 2>&1 &
-# fi
-
-if [[ ! $(pidof wlsunset) ]]; then
-    wlsunset -l 51.5 -L 6.7 > /dev/null 2>&1 &
-    logger 'wlsunset started'
-else
-    logger 'wlsunset already running'
+if [[ ! $(pidof wl-gammarelay-rs) ]]; then
+    "$HOME"/.cargo/bin/wl-gammarelay-rs > /dev/null 2>&1 &
+    logger 'gammarelay started'
 fi
+if [[ ! -f "/tmp/autotemp.pid" ]]; then
+    kill "$(cat /tmp/autotemp.pid)" && logger "gammarelay-autotemp killed"
+    "$HOME"/.config/hypr/scripts/gammarelay-autotemp.py > /dev/null 2>&1 &
+fi
+
+# if [[ ! $(pidof wlsunset) ]]; then
+#     wlsunset -l 51.5 -L 6.7 > /dev/null 2>&1 &
+#     logger 'wlsunset started'
+# else
+#     logger 'wlsunset already running'
+# fi
 
-openrgb -p Greenish.orp &
+openrgb -p default &
 logger 'openrgb theme "simple" loaded'
-kcr create -c main -s default & # kakoune default server
+kks new default & # kakoune default server
 
 if [[ $(pidof swww-daemon) ]]; then
     killall wl-paste
index 8a484679e94d1c95f07c4b21f66ac5a812e4f1e9..e36ce64f99eefa53751f6781ae27990617e95fa4 100644 (file)
@@ -6,8 +6,8 @@
     // "width": 1280, // Waybar width
     "spacing": -8, // Gaps between modules (4px)
     // Choose the order of the modules
-//    "modules-left": ["hyprland/workspaces", "custom/spacer", "custom/gammarelay-temperature", "custom/gammarelay-gamma", "custom/gammarelay-brightness", "mpd"],
-    "modules-left": ["hyprland/workspaces", "custom/spacer", "mpd"],
+    "modules-left": ["hyprland/workspaces", "custom/spacer", "custom/gammarelay-temperature", "custom/gammarelay-gamma", "custom/gammarelay-brightness", "mpd"],
+//    "modules-left": ["hyprland/workspaces", "custom/spacer", "mpd"],
     "modules-center": ["hyprland/window"],
        "margin": "0",
     "modules-right": ["keyboard-state", "cpu", "memory", "temperature#temp2", "temperature", "pulseaudio", "clock", "tray", "idle_inhibitor", "custom/wallpaper", "custom/powermenu"],
     "idle_inhibitor": {
         "format": " {icon} ",
         "format-icons": {
-            "activated": "",
-            "deactivated": ""
+        "activated": "",
+        "deactivated": ""
         }
     },
 
 
      "custom/wallpaper": {
-        "format": "  ",
-        "on-click": "$HOME/.local/bin/rndwallpaper swww",
-       "tooltip": false,
-       "interval": "once",
+               "format": "  ",
+               "on-click": "$HOME/.local/bin/rndwallpaper swww",
+               "tooltip": false,
+               "interval": "once",
      },
 
 
-     "custom/powermenu": {
-        "format": " ⏻ ",
-        "on-click-middle": "$HOME/.config/hypr/scripts/powermenu.sh",
-       "tooltip": false,
-       "interval": "once",
-     },
+       "custom/powermenu": {
+               "format": " ⏻ ",
+               "on-click": "$HOME/.config/hypr/scripts/powermenu.sh",
+               "tooltip": false,
+               "interval": "once",
+    },
 
        "custom/spacer": {
-       "format": " ",
+               "format": " ",
        "tooltip": false,
        },