Johan Rong 2 месяцев назад
Родитель
Сommit
5e9e5653cf

+ 7 - 41
home/features/desktop/hyprland/config/caelestia-shell.json

@@ -224,13 +224,13 @@
         },
         "clock": {
             "background": false,
-            "showDate": false,
+            "showDate": true,
             "showIcon": true
         },
         "dragThreshold": 20,
         "entries": [
             {
-                "enabled": true,
+                "enabled": false,
                 "id": "logo"
             },
             {
@@ -292,7 +292,7 @@
         },
         "tray": {
             "background": false,
-            "compact": false,
+            "compact": true,
             "hiddenIcons": [
             ],
             "iconSubs": [
@@ -418,7 +418,7 @@
         "showOverFullscreen": false
     },
     "launcher": {
-        "actionPrefix": ">",
+        "actionPrefix": "#",
         "actions": [
             {
                 "command": [
@@ -464,40 +464,6 @@
                 "icon": "colors",
                 "name": "Variant"
             },
-            {
-                "command": [
-                    "caelestia",
-                    "wallpaper",
-                    "-r"
-                ],
-                "dangerous": false,
-                "description": "Switch to a random wallpaper",
-                "enabled": true,
-                "icon": "casino",
-                "name": "Random"
-            },
-            {
-                "command": [
-                    "setMode",
-                    "light"
-                ],
-                "dangerous": false,
-                "description": "Change the scheme to light mode",
-                "enabled": true,
-                "icon": "light_mode",
-                "name": "Light"
-            },
-            {
-                "command": [
-                    "setMode",
-                    "dark"
-                ],
-                "dangerous": false,
-                "description": "Change the scheme to dark mode",
-                "enabled": true,
-                "icon": "dark_mode",
-                "name": "Dark"
-            },
             {
                 "command": [
                     "systemctl",
@@ -569,7 +535,7 @@
             }
         ],
         "dragThreshold": 50,
-        "enableDangerousActions": false,
+        "enableDangerousActions": true,
         "enabled": true,
         "favouriteApps": [
         ],
@@ -706,7 +672,7 @@
                 "id": "dnd"
             },
             {
-                "enabled": false,
+                "enabled": true,
                 "id": "vpn"
             }
         ],
@@ -726,7 +692,7 @@
             "vpnChanged": true
         },
         "vpn": {
-            "enabled": false,
+            "enabled": true,
             "provider": [
                 {
                     "displayName": "Wireguard (Your VPN)",

+ 22 - 5
home/features/desktop/hyprland/config/modules/keybindings.lua

@@ -24,7 +24,24 @@ hl.bind(secMod .. " + S",  hl.dsp.exec_cmd("spotify"))
 hl.bind(secMod .. " + D",  hl.dsp.exec_cmd("discord"))
 hl.bind(secMod .. " + L",  hl.dsp.exec_cmd("caelestia shell lock lock"))
 hl.bind(secMod .. " + SHIFT + C", hl.dsp.exec_cmd("hyprpicker --autocopy"))
-hl.bind(secMod .. " + SHIFT + S", hl.dsp.exec_cmd("caelestia shell picker openFreeze"))
+hl.bind(secMod .. " + SHIFT + S", hl.dsp.exec_cmd([[
+#!/bin/bash
+OLD=$(wl-paste)
+caelestia shell picker openFreezeClip
+
+for i in {1..20}; do
+  NEW=$(wl-paste)
+  
+  if [ "$NEW" != "$OLD" ]; then
+    wl-paste --type image/png > ~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%M-%S).png
+    exit 0
+  fi
+
+  sleep 0.1
+done
+
+exit 1
+]]))
 
 -- Move focus with mainMod + arrow keys
 hl.bind(mainMod .. " + left",  hl.dsp.focus({ direction = "left" }))
@@ -43,19 +60,19 @@ hl.bind(mainMod .. " + SHIFT + down",  hl.dsp.window.move({ direction = "down" }
 for i = 1, 10 do
     local key = i % 10 -- 10 maps to key 0
     hl.bind(mainMod .. " + " .. key,             hl.dsp.focus({ workspace = i}))
-    hl.bind(mainMod .. " + SHIFT + " .. key,     hl.dsp.window.move({ workspace = i }))
+    hl.bind(mainMod .. " + SHIFT + " .. key,     hl.dsp.window.move({ workspace = i, follow = false }))
 end
 
 for i = 1, 10 do
     local key = "F" .. i
     hl.bind(mainMod .. " + " .. key,             hl.dsp.focus({ workspace = i + 10 }))
-    hl.bind(mainMod .. " + SHIFT + " .. key,     hl.dsp.window.move({ workspace = i + 10 }))
+    hl.bind(mainMod .. " + SHIFT + " .. key,     hl.dsp.window.move({ workspace = i + 10, follow = false }))
 end
 
 
 -- Example special workspace (scratchpad)
-hl.bind(mainMod .. " + S",         hl.dsp.workspace.toggle_special("magic"))
-hl.bind(mainMod .. " + SHIFT + S", hl.dsp.window.move({ workspace = "special:magic" }))
+hl.bind(mainMod .. " + BAR",         hl.dsp.workspace.toggle_special("magic"))
+hl.bind(mainMod .. " + SHIFT + BAR", hl.dsp.window.move({ workspace = "special:magic" }))
 
 -- Scroll through existing workspaces with mainMod + scroll
 hl.bind(mainMod .. " + mouse_down", hl.dsp.focus({ workspace = "e+1" }))