]> Freerunner's - dotfiles.git/commitdiff
swaync: use hyprpicker as color pipette
authorAndre Ramnitz <tux.rising@gmail.com>
Thu, 5 Sep 2024 21:37:16 +0000 (23:37 +0200)
committerAndre Ramnitz <tux.rising@gmail.com>
Thu, 5 Sep 2024 21:38:05 +0000 (23:38 +0200)
config/dot-config/swaync/config.json
config/dot-config/swaync/style.css
local/dot-local/bin/hyprpickr [new file with mode: 0755]

index 99efc99d7b322e7c79d6f76fb9aae413453dd9d1..29f3b1d03d33a0d55e91f88b4abac9f9fca70153 100644 (file)
       "urgency": "Normal"
     }
   },
-  "widgets": [
-    "dnd",
-    "mpris",
-    "title",
-    "notifications",
-    "menubar#label"
-  ],
+  "widgets": ["dnd", "mpris", "title", "notifications", "menubar#label"],
   "widget-config": {
     "title": {
       "text": "Notifications",
@@ -59,9 +53,9 @@
     },
     "menubar#label": {
       "menu#power-buttons": {
-        "label": "", 
+        "label": "",
         "position": "right",
-        "actions": [ 
+        "actions": [
           {
             "label": " Lock",
             "command": "hyprlock"
@@ -87,7 +81,7 @@
       "menu#powermode-buttons": {
         "label": "󱪂",
         "position": "right",
-        "actions": [ 
+        "actions": [
           {
             "label": "Performance",
             "command": "/home/andy/.local/bin/powerprofile oc"
           },
           {
             "label": "󰴱",
-            "command": "/home/andy/.local/bin/wl-color-picker.sh"
+            "command": "footclient -a popup -H /home/andy/.local/bin/hyprpickr"
           }
         ]
       }
index 4005a1c429599fb373f193212f1791a64d4a335f..08c95fbbff23ece1eb8418cf00bcac9a55a04451 100644 (file)
@@ -90,7 +90,6 @@
   border: none;
 }
 
-
 .notification-default-action,
 .notification-action {
   padding: 4px;
   border-right: 1px solid @noti-border-color;
 }
 
-.image {}
+.image {
+}
 
 .body-image {
   margin-top: 6px;
   background: transparent;
 }
 
-
 .control-center slider:hover {
   background-color: @noti-bg-hover;
 }
   background: transparent;
 }
 
-
-
 /* Widget TITLE
 ──────────────────────────────────────────────────────────────────────────────
 */
   font-size: 1.5rem;
 }
 
-.widget-title>button {
+.widget-title > button {
   font-size: initial;
   color: white;
   text-shadow: none;
   border-radius: 4px;
 }
 
-.widget-title>button:hover {
+.widget-title > button:hover {
   background: @noti-bg-hover;
 }
 
-
-
 /* Widget DND
 ──────────────────────────────────────────────────────────────────────────────
 */
 .widget-dnd {
-  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.7), 0 2px 6px 2px rgba(0, 0, 0, 0.3);
+  box-shadow:
+    0 0 0 1px rgba(0, 0, 0, 0.3),
+    0 1px 3px 1px rgba(0, 0, 0, 0.7),
+    0 2px 6px 2px rgba(0, 0, 0, 0.3);
   margin: 4px 8px 4px 8px;
   font-size: 1.1rem;
   border: 1px solid @bt7;
   border-radius: 4px;
 }
 
-.widget-dnd>switch {
+.widget-dnd > switch {
   font-size: initial;
   border-radius: 12px;
   background: @noti-bg;
   box-shadow: none;
 }
 
-.widget-dnd>switch:checked {
+.widget-dnd > switch:checked {
   background: @noti-urgent;
 }
 
-.widget-dnd>switch slider {
+.widget-dnd > switch slider {
   background: @noti-bg-hover;
   border-radius: 12px;
 }
 
 /* pansen */
-.widget-dnd>switch:checked slider {
+.widget-dnd > switch:checked slider {
   background: #f22;
   border-radius: 12px;
 }
   margin: 8px;
 }
 
-.widget-label>label {
+.widget-label > label {
   font-size: 1.1rem;
 }
 
-
-
 /* Widget MPRIS
 ──────────────────────────────────────────────────────────────────────────────
 */
 }
 
 .widget-mpris button {
-  color: alpha(@ws, .6);
+  color: alpha(@ws, 0.6);
 }
 
 .widget-mpris button:hover {
   color: @ws;
-  background: alpha(@purple, .6);
+  background: alpha(@purple, 0.6);
 }
 
 .widget-mpris-title {
   font-family: Noto Sans;
 }
 
-
 /* Widget VOLUME (not ready yet)
 ──────────────────────────────────────────────────────────────────────────────
 */
   font-size: 3rem;
 }
 
-
-
 /* Widget POWERMENU
 ──────────────────────────────────────────────────────────────────────────────
 */
   margin: 2px;
 }
 
-.power-buttons>button:hover {
-    background: @bt7;
+.power-buttons > button:hover {
+  background: @bt7;
 }
 
 /* items of the drop-down menu */
-.power-buttons>button>label {
+.power-buttons > button > label {
   background-color: @yellow;
   color: @bs;
   font-size: 1.5rem;
   animation: colored-gradient 10s ease infinite;
 }
 
-
 /* Widget MENUBAR
 ──────────────────────────────────────────────────────────────────────────────
 */
-.widget-menubar>box>.menu-button-bar>button {
+.widget-menubar > box > .menu-button-bar > button {
   background: @noti-bg;
   box-shadow: none;
   border: 1px solid @border;
   font-size: 1.5rem;
 }
 
-.widget-menubar>box>.menu-button-bar>button:hover {
+.widget-menubar > box > .menu-button-bar > button:hover {
   background: @noti-bg-hover;
 }
 
-.topbar-buttons>button {
+.topbar-buttons > button {
   background: @noti-bg;
   box-shadow: none;
   border: 1px solid @border;
   font-size: 1.5rem;
 }
 
-.topbar-buttons>button:hover {
-    background: @noti-bg-hover;
+.topbar-buttons > button:hover {
+  background: @noti-bg-hover;
 }
 
-.topbar-buttons>button>label {
+.topbar-buttons > button > label {
   font-size: 1.5rem;
 }
 
-
 /* Widget BUTTONGRID (not ready yet)
 ──────────────────────────────────────────────────────────────────────────────
 */
 }
 
 /*grid buttons*/
-.widget-buttons-grid>flowbox>flowboxchild>button {
+.widget-buttons-grid > flowbox > flowboxchild > button {
   background: none;
   box-shadow: none;
   border-radius: 8px;
   border: 0px solid transparent;
 }
 
-.widget-buttons-grid>flowbox>flowboxchild>button:hover {
+.widget-buttons-grid > flowbox > flowboxchild > button:hover {
   background: @noti-bg-hover;
 }
 
-
-
-
 /* Widget Powermode (UV/OC)
 ──────────────────────────────────────────────────────────────────────────────
 */
   font-size: 1.25rem;
 }
 
-.powermode-buttons>button {
+.powermode-buttons > button {
   border: 1px solid @border;
   box-shadow: none;
   padding: 0px;
   margin: 2px;
 }
 
-.powermode-buttons>button:hover {
+.powermode-buttons > button:hover {
   background: @noti-bg-hover;
 }
 
-.powermode-buttons>button>label {
+.powermode-buttons > button > label {
   background-color: @yellow;
   color: @bs;
   font-size: 1.5rem;
 */
 .notification-group {
   margin: 2px 8px 2px 8px;
-
 }
 .notification-group-headers {
   font-weight: bold;
-  font-size: 2.00rem;
+  font-size: 2rem;
   color: @ws;
   letter-spacing: 2px;
 }
 .notification-group-close-all-button {
   background: transparent;
   color: @bs;
-  margin: 4px; 
+  margin: 4px;
   padding: 4px;
   border-radius: 6px;
 }
diff --git a/local/dot-local/bin/hyprpickr b/local/dot-local/bin/hyprpickr
new file mode 100755 (executable)
index 0000000..da027fe
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+swaync-client -cp -sw
+sleep 0.5 && command hyprpicker