From: Andre Ramnitz Date: Thu, 5 Sep 2024 21:37:16 +0000 (+0200) Subject: swaync: use hyprpicker as color pipette X-Git-Tag: v0.2~100 X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=fbec0979ef7e2452b5952190745fdefa7e4b1584;p=dotfiles.git swaync: use hyprpicker as color pipette --- diff --git a/config/dot-config/swaync/config.json b/config/dot-config/swaync/config.json index 99efc99d..29f3b1d0 100644 --- a/config/dot-config/swaync/config.json +++ b/config/dot-config/swaync/config.json @@ -28,13 +28,7 @@ "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" @@ -119,7 +113,7 @@ }, { "label": "󰴱", - "command": "/home/andy/.local/bin/wl-color-picker.sh" + "command": "footclient -a popup -H /home/andy/.local/bin/hyprpickr" } ] } diff --git a/config/dot-config/swaync/style.css b/config/dot-config/swaync/style.css index 4005a1c4..08c95fbb 100644 --- a/config/dot-config/swaync/style.css +++ b/config/dot-config/swaync/style.css @@ -90,7 +90,6 @@ border: none; } - .notification-default-action, .notification-action { padding: 4px; @@ -133,7 +132,8 @@ border-right: 1px solid @noti-border-color; } -.image {} +.image { +} .body-image { margin-top: 6px; @@ -214,7 +214,6 @@ background: transparent; } - .control-center slider:hover { background-color: @noti-bg-hover; } @@ -232,8 +231,6 @@ background: transparent; } - - /* Widget TITLE ────────────────────────────────────────────────────────────────────────────── */ @@ -242,7 +239,7 @@ font-size: 1.5rem; } -.widget-title>button { +.widget-title > button { font-size: initial; color: white; text-shadow: none; @@ -252,17 +249,18 @@ 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; @@ -270,7 +268,7 @@ border-radius: 4px; } -.widget-dnd>switch { +.widget-dnd > switch { font-size: initial; border-radius: 12px; background: @noti-bg; @@ -278,17 +276,17 @@ 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; } @@ -298,12 +296,10 @@ margin: 8px; } -.widget-label>label { +.widget-label > label { font-size: 1.1rem; } - - /* Widget MPRIS ────────────────────────────────────────────────────────────────────────────── */ @@ -317,12 +313,12 @@ } .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 { @@ -336,7 +332,6 @@ font-family: Noto Sans; } - /* Widget VOLUME (not ready yet) ────────────────────────────────────────────────────────────────────────────── */ @@ -367,8 +362,6 @@ font-size: 3rem; } - - /* Widget POWERMENU ────────────────────────────────────────────────────────────────────────────── */ @@ -386,12 +379,12 @@ 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; @@ -400,11 +393,10 @@ 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; @@ -413,11 +405,11 @@ 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; @@ -426,15 +418,14 @@ 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) ────────────────────────────────────────────────────────────────────────────── */ @@ -447,20 +438,17 @@ } /*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) ────────────────────────────────────────────────────────────────────────────── */ @@ -471,18 +459,18 @@ 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; @@ -496,11 +484,10 @@ */ .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; } @@ -514,7 +501,7 @@ .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 index 00000000..da027fec --- /dev/null +++ b/local/dot-local/bin/hyprpickr @@ -0,0 +1,4 @@ +#!/bin/sh + +swaync-client -cp -sw +sleep 0.5 && command hyprpicker