]> Freerunner's - dotfiles.git/commitdiff
swaync: add initial config
authorAndre Ramnitz <tux.rising@gmail.com>
Thu, 22 Aug 2024 20:44:43 +0000 (22:44 +0200)
committerAndre Ramnitz <tux.rising@gmail.com>
Mon, 26 Aug 2024 13:52:01 +0000 (15:52 +0200)
24 files changed:
config/swaync/config.json [new file with mode: 0644]
config/swaync/icons/backup.png [new file with mode: 0644]
config/swaync/icons/battery-quarter-solid.svg [new file with mode: 0644]
config/swaync/icons/battery-status.png [new file with mode: 0644]
config/swaync/icons/brightness-100.png [new file with mode: 0644]
config/swaync/icons/brightness-20.png [new file with mode: 0644]
config/swaync/icons/brightness-40.png [new file with mode: 0644]
config/swaync/icons/brightness-60.png [new file with mode: 0644]
config/swaync/icons/brightness-80.png [new file with mode: 0644]
config/swaync/icons/dropper.png [new file with mode: 0644]
config/swaync/icons/microphone-mute.png [new file with mode: 0644]
config/swaync/icons/microphone.png [new file with mode: 0644]
config/swaync/icons/music.png [new file with mode: 0644]
config/swaync/icons/palette.png [new file with mode: 0644]
config/swaync/icons/picture.png [new file with mode: 0644]
config/swaync/icons/timer.png [new file with mode: 0644]
config/swaync/icons/uptime.png [new file with mode: 0644]
config/swaync/icons/volume-high.png [new file with mode: 0644]
config/swaync/icons/volume-low.png [new file with mode: 0644]
config/swaync/icons/volume-mid.png [new file with mode: 0644]
config/swaync/icons/volume-mute.png [new file with mode: 0644]
config/swaync/icons/vpn.png [new file with mode: 0644]
config/swaync/images/bell.png [new file with mode: 0644]
config/swaync/style.css [new file with mode: 0644]

diff --git a/config/swaync/config.json b/config/swaync/config.json
new file mode 100644 (file)
index 0000000..d99d144
--- /dev/null
@@ -0,0 +1,128 @@
+{
+  "$schema": "/etc/xdg/swaync/configSchema.json",
+  "positionX": "right",
+  "positionY": "top",
+  "control-center-margin-top": 2,
+  "control-center-margin-bottom": 2,
+  "control-center-margin-right": 1,
+  "control-center-margin-left": 0,
+  "notification-icon-size": 64,
+  "notification-body-image-height": 100,
+  "notification-body-image-width": 200,
+  "timeout": 10,
+  "timeout-low": 5,
+  "timeout-critical": 0,
+  "fit-to-screen": false,
+  "control-center-width": 500,
+  "control-center-height": 1402,
+  "notification-window-width": 500,
+  "keyboard-shortcuts": true,
+  "image-visibility": "when-available",
+  "transition-time": 200,
+  "hide-on-clear": true,
+  "hide-on-action": false,
+  "script-fail-notify": true,
+  "scripts": {
+    "example-script": {
+      "exec": "echo 'Do something...'",
+      "urgency": "Normal"
+    }
+  },
+  "widgets": [
+    "dnd",
+    "mpris",
+    "title",
+    "notifications",
+    "menubar#label"
+  ],
+  "widget-config": {
+    "title": {
+      "text": "Notifications",
+      "clear-all-button": true,
+      "button-text": "Clear All"
+    },
+    "dnd": {
+      "text": "Do Not Disturb"
+    },
+    "label": {
+      "max-lines": 1,
+      "text": "Control Center"
+    },
+    "mpris": {
+      "image-size": 96,
+      "image-radius": 12
+    },
+    "volume": {
+      "label": "",
+      "show-per-app": true,
+      "show-per-app-icon": true
+    },
+    "menubar#label": {
+      "menu#power-buttons": {
+        "label": "", 
+        "position": "right",
+        "actions": [ 
+          {
+            "label": " Lock",
+            "command": "hyprlock"
+          },
+          {
+            "label": " Logout",
+            "command": "hyprctl dispatch exit"
+          },
+          {
+            "label": " Reboot",
+            "command": "loginctl reboot"
+          },
+          {
+            "label": " Shut down",
+            "command": "loginctl poweroff"
+          }
+        ]
+      },
+      "menu#powermode-buttons": {
+        "label": "󱪂",
+        "position": "right",
+        "actions": [ 
+          {
+            "label": "Performance",
+            "command": "/home/andy/.local/bin/powerprofile oc"
+          },
+          {
+            "label": "Balanced",
+            "command": "/home/andy/.local/bin/powerprofile default"
+          },
+          {
+            "label": "Power-saver",
+            "command": "/home/andy/.local/bin/powerprofile silent"
+          }
+        ]
+      },
+      "buttons#topbar-buttons": {
+        "position": "left",
+        "actions": [
+          {
+            "label": "󰄀",
+            "command": "/home/andy/dotfiles/config/hypr/scripts/grimblast-sshot-output"
+          },
+          {
+            "label": "",
+            "command": "/home/andy/dotfiles/config/hypr/scripts/grimblast-sshot-area"
+          }
+        ]
+      }
+    },
+    "buttons-grid": {
+      "actions": [
+        {
+          "label": "",
+          "command": "~/.config/rofi/rofi-wifi-menu.sh"
+        },
+        {
+          "label": "",
+          "command": "~/.config/rofi/rofi-bluetooth"
+        }
+      ]
+    }
+  }
+}
diff --git a/config/swaync/icons/backup.png b/config/swaync/icons/backup.png
new file mode 100644 (file)
index 0000000..a60a495
Binary files /dev/null and b/config/swaync/icons/backup.png differ
diff --git a/config/swaync/icons/battery-quarter-solid.svg b/config/swaync/icons/battery-quarter-solid.svg
new file mode 100644 (file)
index 0000000..450ef3d
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M0 176c0-44.2 35.8-80 80-80H464c44.2 0 80 35.8 80 80v16c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32v16c0 44.2-35.8 80-80 80H80c-44.2 0-80-35.8-80-80V176zm80-16c-8.8 0-16 7.2-16 16V336c0 8.8 7.2 16 16 16H464c8.8 0 16-7.2 16-16V176c0-8.8-7.2-16-16-16H80zm112 32V320H96V192h96z"/></svg>
\ No newline at end of file
diff --git a/config/swaync/icons/battery-status.png b/config/swaync/icons/battery-status.png
new file mode 100644 (file)
index 0000000..07bf815
Binary files /dev/null and b/config/swaync/icons/battery-status.png differ
diff --git a/config/swaync/icons/brightness-100.png b/config/swaync/icons/brightness-100.png
new file mode 100644 (file)
index 0000000..1e28ac3
Binary files /dev/null and b/config/swaync/icons/brightness-100.png differ
diff --git a/config/swaync/icons/brightness-20.png b/config/swaync/icons/brightness-20.png
new file mode 100644 (file)
index 0000000..aee9c52
Binary files /dev/null and b/config/swaync/icons/brightness-20.png differ
diff --git a/config/swaync/icons/brightness-40.png b/config/swaync/icons/brightness-40.png
new file mode 100644 (file)
index 0000000..bbedd1c
Binary files /dev/null and b/config/swaync/icons/brightness-40.png differ
diff --git a/config/swaync/icons/brightness-60.png b/config/swaync/icons/brightness-60.png
new file mode 100644 (file)
index 0000000..4cd838b
Binary files /dev/null and b/config/swaync/icons/brightness-60.png differ
diff --git a/config/swaync/icons/brightness-80.png b/config/swaync/icons/brightness-80.png
new file mode 100644 (file)
index 0000000..6684bdb
Binary files /dev/null and b/config/swaync/icons/brightness-80.png differ
diff --git a/config/swaync/icons/dropper.png b/config/swaync/icons/dropper.png
new file mode 100644 (file)
index 0000000..2e222a3
Binary files /dev/null and b/config/swaync/icons/dropper.png differ
diff --git a/config/swaync/icons/microphone-mute.png b/config/swaync/icons/microphone-mute.png
new file mode 100644 (file)
index 0000000..1780e33
Binary files /dev/null and b/config/swaync/icons/microphone-mute.png differ
diff --git a/config/swaync/icons/microphone.png b/config/swaync/icons/microphone.png
new file mode 100644 (file)
index 0000000..d1b6d76
Binary files /dev/null and b/config/swaync/icons/microphone.png differ
diff --git a/config/swaync/icons/music.png b/config/swaync/icons/music.png
new file mode 100644 (file)
index 0000000..92bf4c6
Binary files /dev/null and b/config/swaync/icons/music.png differ
diff --git a/config/swaync/icons/palette.png b/config/swaync/icons/palette.png
new file mode 100644 (file)
index 0000000..3ba73d0
Binary files /dev/null and b/config/swaync/icons/palette.png differ
diff --git a/config/swaync/icons/picture.png b/config/swaync/icons/picture.png
new file mode 100644 (file)
index 0000000..4669bc3
Binary files /dev/null and b/config/swaync/icons/picture.png differ
diff --git a/config/swaync/icons/timer.png b/config/swaync/icons/timer.png
new file mode 100644 (file)
index 0000000..420d1f1
Binary files /dev/null and b/config/swaync/icons/timer.png differ
diff --git a/config/swaync/icons/uptime.png b/config/swaync/icons/uptime.png
new file mode 100644 (file)
index 0000000..9dd08de
Binary files /dev/null and b/config/swaync/icons/uptime.png differ
diff --git a/config/swaync/icons/volume-high.png b/config/swaync/icons/volume-high.png
new file mode 100644 (file)
index 0000000..200f17b
Binary files /dev/null and b/config/swaync/icons/volume-high.png differ
diff --git a/config/swaync/icons/volume-low.png b/config/swaync/icons/volume-low.png
new file mode 100644 (file)
index 0000000..17cfff7
Binary files /dev/null and b/config/swaync/icons/volume-low.png differ
diff --git a/config/swaync/icons/volume-mid.png b/config/swaync/icons/volume-mid.png
new file mode 100644 (file)
index 0000000..1a3ad3a
Binary files /dev/null and b/config/swaync/icons/volume-mid.png differ
diff --git a/config/swaync/icons/volume-mute.png b/config/swaync/icons/volume-mute.png
new file mode 100644 (file)
index 0000000..0b9b0c3
Binary files /dev/null and b/config/swaync/icons/volume-mute.png differ
diff --git a/config/swaync/icons/vpn.png b/config/swaync/icons/vpn.png
new file mode 100644 (file)
index 0000000..e31acaa
Binary files /dev/null and b/config/swaync/icons/vpn.png differ
diff --git a/config/swaync/images/bell.png b/config/swaync/images/bell.png
new file mode 100644 (file)
index 0000000..d9fea96
Binary files /dev/null and b/config/swaync/images/bell.png differ
diff --git a/config/swaync/style.css b/config/swaync/style.css
new file mode 100644 (file)
index 0000000..2caf633
--- /dev/null
@@ -0,0 +1,530 @@
+@import "../colors/colorscheme.css";
+
+/*
+ * vim: ft=less
+ */
+
+@define-color noti-border-color rgba(255, 255, 255, 0.15);
+@define-color noti-bg #2E3440;
+@define-color noti-bg-alt #383E4A;
+@define-color noti-fg #E5E9F0;
+@define-color noti-bg-hover #4c5f72;
+@define-color noti-bg-focus #A3BE8C;
+@define-color noti-close-bg rgba(255, 255, 255, 0.5);
+@define-color noti-close-bg-hover rgba(255, 255, 255, 1.00);
+@define-color noti-urgent #BF616A;
+
+@define-color bg-selected rgb(0, 128, 255);
+
+* {
+  color: @wt9;
+  font-family: Iosevka Nerd Font Propo;
+  font-size: 15px;
+  font-weight: 500;
+  transition: 100ms;
+  box-shadow: unset;
+}
+
+.notification-row {
+  outline: none;
+}
+
+.notification-row:focus,
+.notification-row:hover {
+  background: @noti-bg-focus;
+}
+
+.notification {
+  border-radius: 12px;
+  margin: 6px 12px;
+  padding: 0px;
+  background-color: @ral9005;
+  border: 2px solid @bt8;
+  box-shadow: unset;
+}
+
+/* Uncomment to enable specific urgency colors */
+/* .low {
+  background: yellow;
+  padding: 6px;
+}
+
+.normal {
+  background: green;
+  padding: 6px;
+}
+*/
+
+.critical {
+  border-color: @noti-urgent;
+}
+
+/*  padding: 5px 10px 5px 10px;
+*/
+.notification-content {
+  background: @ral9005;
+  padding: 6px;
+  border-radius: 12px;
+}
+
+/* close button per benachrichtigung */
+.close-button {
+  background: @wt2;
+  color: @transparent;
+  text-shadow: none;
+  padding: 0;
+  border-radius: 100%;
+  margin-top: 10px;
+  margin-right: 16px;
+  box-shadow: none;
+  border: none;
+  min-width: 24px;
+  min-height: 24px;
+}
+
+.close-button:hover {
+  box-shadow: none;
+  background: #f00;
+  color: @ws;
+  transition: all 0.15s ease-in-out;
+  border: none;
+}
+
+
+.notification-default-action,
+.notification-action {
+  padding: 4px;
+  margin: 0;
+  box-shadow: none;
+  background: @noti-bg;
+  border: 1px solid @noti-border-color;
+  color: @ws;
+}
+
+.notification-default-action:hover,
+.notification-action:hover {
+  -gtk-icon-effect: none;
+  background: @noti-bg-hover;
+}
+
+.notification-default-action {
+  border-radius: 12px;
+}
+
+/* When alternative actions are visible */
+.notification-default-action:not(:only-child) {
+  border-bottom-left-radius: 0px;
+  border-bottom-right-radius: 0px;
+}
+
+.notification-action {
+  border-radius: 0px;
+  border-top: none;
+  border-right: none;
+}
+
+/* add bottom border radius to eliminate clipping */
+.notification-action:first-child {
+  border-bottom-left-radius: 10px;
+}
+
+.notification-action:last-child {
+  border-bottom-right-radius: 10px;
+  border-right: 1px solid @noti-border-color;
+}
+
+.image {}
+
+.body-image {
+  margin-top: 6px;
+  background-color: transparent;
+  border-radius: 12px;
+}
+
+.summary {
+  font-size: 16px;
+  font-weight: bold;
+  background: transparent;
+  color: @yellow;
+  text-shadow: none;
+}
+
+.time {
+  font-size: 16px;
+  font-weight: bold;
+  background: transparent;
+  color: @wt7;
+  text-shadow: none;
+  margin-right: 32px;
+}
+
+.body {
+  font-size: 15px;
+  font-weight: normal;
+  background: transparent;
+  color: @ws;
+  text-shadow: none;
+}
+
+/* The "Notifications" and "Do Not Disturb" text widget */
+.top-action-title {
+  color: white;
+  text-shadow: none;
+  margin: 8px 0px 8px 0px;
+}
+
+.control-center {
+  background-color: @ral9017;
+  border: 1px solid @border;
+  border-radius: 2px;
+}
+
+/* scheiss close all knopf */
+.control-center .widget-title button {
+  color: @ws;
+  background-color: @noti-bg;
+  border: 1px solid @border;
+  padding: 8px;
+}
+
+/* der vollständigkeit halber mal aufgelistet:
+.control-center .widget-title button:hover {
+  border: 1px solid @surface1@;
+  background-color: @surface2@;
+  color: @txt@;
+}*/
+
+.control-center .widget-title button:active {
+  border: 1px solid @border;
+  background-color: @red;
+  color: @ws;
+}
+
+/* kompletter hintergrund */
+.control-center > box {
+  padding: 0px;
+  margin: 4px 8px 4px 8px;
+}
+
+.control-center-list {
+  background: transparent;
+}
+
+
+.control-center slider:hover {
+  background-color: @noti-bg-hover;
+}
+
+.control-center slider:active {
+  background-color: #77767e;
+}
+
+.floating-notifications {
+  background: transparent;
+}
+
+/* Window behind control center and on all other monitors */
+.blank-window {
+  background: transparent;
+}
+
+
+
+/* Widget TITLE
+──────────────────────────────────────────────────────────────────────────────
+*/
+.widget-title {
+  margin: 8px;
+  font-size: 1.5rem;
+}
+
+.widget-title>button {
+  font-size: initial;
+  color: white;
+  text-shadow: none;
+  background: @ral9023;
+  border: 1px solid @noti-border-color;
+  box-shadow: none;
+  border-radius: 4px;
+}
+
+.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);
+  margin: 4px 8px 4px 8px;
+  font-size: 1.1rem;
+  border: 1px solid @bt7;
+  background: @ral9005;
+  border-radius: 4px;
+}
+
+.widget-dnd>switch {
+  font-size: initial;
+  border-radius: 12px;
+  background: @noti-bg;
+  border: 1px solid @noti-border-color;
+  box-shadow: none;
+}
+
+.widget-dnd>switch:checked {
+  background: @noti-urgent;
+}
+
+.widget-dnd>switch slider {
+  background: @noti-bg-hover;
+  border-radius: 12px;
+}
+
+/* pansen */
+.widget-dnd>switch:checked slider {
+  background: #f22;
+  border-radius: 12px;
+}
+
+/* Label widget */
+.widget-label {
+  margin: 8px;
+}
+
+.widget-label>label {
+  font-size: 1.1rem;
+}
+
+
+
+/* Widget MPRIS
+──────────────────────────────────────────────────────────────────────────────
+*/
+.widget-mpris {
+  padding: 10px 0px 0px 0px;
+  /* The parent to all players */
+}
+
+.widget-mpris-player {
+  margin: 0px 0px 0px 0px;
+}
+
+.widget-mpris button {
+  color: alpha(@ws, .6);
+}
+
+.widget-mpris button:hover {
+  color: @ws;
+  background: alpha(@purple, .6);
+}
+
+.widget-mpris-title {
+  font-weight: bold;
+  font-size: 1.5rem;
+  font-family: Noto Sans;
+}
+
+.widget-mpris-subtitle {
+  font-size: 1.25rem;
+  font-family: Noto Sans;
+}
+
+
+
+/* Widget VOLUME (not ready yet)
+──────────────────────────────────────────────────────────────────────────────
+*/
+.widget-volume {
+  background-color: transparent;
+  padding: 5px 40px 5px 40px;
+  margin: 0px 0px 0px 0px;
+  border-bottom-left-radius: 12px;
+  border-bottom-right-radius: 12px;
+  font-size: 3rem;
+}
+
+.widget-backlight {
+  background-color: transparent;
+  padding: 5px 40px 5px 40px;
+  margin: 0px 8px 8px 8px;
+  border-bottom-left-radius: 12px;
+  border-bottom-right-radius: 12px;
+  font-size: 3rem;
+}
+
+.KB {
+  background-color: transparent;
+  padding: 5px 40px 5px 40px;
+  margin: 0px 8px 8px 8px;
+  border-bottom-left-radius: 12px;
+  border-bottom-right-radius: 12px;
+  font-size: 3rem;
+}
+
+
+
+/* Widget POWERMENU
+──────────────────────────────────────────────────────────────────────────────
+*/
+.power-buttons {
+  padding: 5px 40px 5px 40px;
+  margin: 5px;
+  border-radius: 8px;
+  font-size: 1.25rem;
+}
+
+.power-buttons button {
+  border: 1px solid @border;
+  box-shadow: none;
+  padding: 0px;
+  margin: 2px;
+}
+
+/* voll nutte, der eigentliche text ist >label */
+.power-buttons>button>label {
+  background-color: @yellow;
+  color: @bs;
+  font-size: 1.5rem;
+}
+
+.power-buttons>button:hover {
+    background: @bt7;
+}
+
+
+
+/* Widget POWERMENU
+──────────────────────────────────────────────────────────────────────────────
+*/
+.widget-menubar>box>.menu-button-bar>button {
+  background: @noti-bg;
+  box-shadow: none;
+  border: 1px solid @border;
+  border-radius: 8px;
+  margin: 5px;
+  font-size: 1.5rem;
+}
+
+.widget-menubar>box>.menu-button-bar>button:hover {
+  background: @noti-bg-hover;
+}
+
+/*ganz oben 2.+3. von links*/
+.topbar-buttons>button {
+  background: @noti-bg;
+  box-shadow: none;
+  border: 1px solid @border;
+  border-radius: 8px;
+  margin: 5px;
+  font-size: 1.5rem;
+}
+
+.topbar-buttons>button:hover {
+    background: @noti-bg-hover;
+}
+
+.topbar-buttons>button>label {
+  font-size: 1.5rem;
+}
+
+
+
+/* Widget BUTTONGRID (not ready yet)
+──────────────────────────────────────────────────────────────────────────────
+*/
+.widget-buttons-grid {
+  padding: 8px;
+  margin: 8px;
+  border-radius: 12px;
+  background-color: @ral9017;
+  font-size: 2rem;
+}
+
+/*grid buttons*/
+.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 {
+  background: @noti-bg-hover;
+}
+
+
+
+
+/* Widget Powermode (UV/OC)
+──────────────────────────────────────────────────────────────────────────────
+*/
+.powermode-buttons {
+  padding: 5px 40px 5px 40px;
+  margin: 5px;
+  border-radius: 8px;
+  font-size: 1.25rem;
+}
+
+.powermode-buttons>button {
+  border: 1px solid @border;
+  box-shadow: none;
+  padding: 0px;
+  margin: 2px;
+}
+
+.powermode-buttons>button:hover {
+  background: @noti-bg-hover;
+}
+
+.powermode-buttons>button>label {
+  background-color: @yellow;
+  color: @bs;
+  font-size: 1.5rem;
+}
+
+.powermode-buttons>button>label {
+  background-color: @yellow;
+  color: @bs;
+}
+
+.powermode-buttons>button>label:hover {
+  background: @noti-bg-hover;
+}
+
+
+
+/* NOTIFICATIONS Collapse/expand buttons
+──────────────────────────────────────────────────────────────────────────────
+*/
+.notification-group {
+  margin: 2px 8px 2px 8px;
+
+}
+.notification-group-headers {
+  font-weight: bold;
+  font-size: 2.00rem;
+  color: @ws;
+  letter-spacing: 2px;
+}
+
+.notification-group-icon {
+  color: @ws;
+  font-size: 12px;
+}
+
+.notification-group-collapse-button,
+.notification-group-close-all-button {
+  background: transparent;
+  color: @bs;
+  margin: 4px; 
+  border-radius: 6px;
+  padding: 4px;
+}
+
+.notification-group-collapse-button:hover,
+.notification-group-close-all-button:hover {
+  background: @noti-bg-hover;
+}