update configs and setup

This commit is contained in:
2024-04-02 17:26:01 +02:00
parent 2939a2e2e0
commit ccd1408417
44 changed files with 1705 additions and 1342 deletions
+35 -153
View File
@@ -2,196 +2,78 @@
"$schema": "/etc/xdg/swaync/configSchema.json",
"positionX": "right",
"positionY": "top",
"control-center-margin-top": 20,
"control-center-margin-bottom": 20,
"control-center-margin-right": 20,
"control-center-margin-left": 0,
"notification-icon-size": 48,
"notification-body-image-height": 160,
"notification-body-image-width": 90,
"timeout": 6,
"timeout-low": 4,
"control-center-margin-top": 10,
"control-center-margin-bottom": 10,
"control-center-margin-right": 10,
"notification-icon-size": 24,
"notification-body-image-height": 100,
"notification-body-image-width": 200,
"timeout": 10,
"timeout-low": 5,
"timeout-critical": 0,
"fit-to-screen": true,
"control-center-width": 380,
"notification-window-width": 366,
"fit-to-screen": false,
"control-center-width": 500,
"control-center-height": 800,
"notification-window-width": 500,
"keyboard-shortcuts": true,
"image-visibility": "when-available",
"transition-time": 100,
"transition-time": 200,
"hide-on-clear": false,
"hide-on-action": true,
"script-fail-notify": true,
"scripts": {
"example-script": {
"exec": "echo 'Do something...'",
"urgency": "Normal"
}
},
"notification-visibility": {
"example-name": {
"state": "muted",
"urgency": "Low",
"app-name": "Spotify"
}
},
"widgets": [
"menubar",
"buttons-grid",
"volume",
"mpris",
"title",
"dnd",
"notifications"
],
"widgets": ["title", "dnd", "volume", "backlight", "notifications", "mpris", "buttons-grid"],
"widget-config": {
"title": {
"text": "Notifications",
"text": "Notification Center",
"clear-all-button": true,
"button-text": "Clear All"
"button-text": "󰆴 Clear All"
},
"dnd": {
"text": "Do Not Disturb"
},
"label": {
"max-lines": 1,
"text": "Control Center"
"text": "Notification Center"
},
"mpris": {
"image-size": 96,
"image-radius": 10
},
"backlight": {
"label": "",
"device": "intel_backlight",
"min": 10
},
"backlight#KB": {
"label": " ",
"device": "asus::kbd_backlight",
"subsystem": "leds"
"image-radius": 7
},
"volume": {
"label": ""
"label": "󰕾"
},
"menubar": {
"menu#power-buttons": {
"label": "",
"position": "right",
"actions": [
{
"label": " Reboot",
"command": "systemctl reboot"
},
{
"label": " Lock",
"command": "swaylock.sh"
},
{
"label": " Logout",
"command": "loginctl terminate-session ${XDG_SESSION_ID-}"
},
{
"label": " Shut down",
"command": "systemctl poweroff"
}
]
},
"menu#powermode-buttons": {
"label": "",
"position": "right",
"actions": [
{
"label": "Performance",
"command": "powerprofilesctl set performance"
},
{
"label": "Balanced",
"command": "powerprofilesctl set balanced"
},
{
"label": "Power-saver",
"command": "powerprofilesctl set power-saver"
}
]
},
"menu#screenshot-buttons": {
"label": "",
"position": "left",
"actions": [
{
"label": " Entire screen",
"command": "swaync-client -cp && sleep 1 && hyprshot -m output"
},
{
"label": " Select a region",
"command": "swaync-client -cp && sleep 1 && hyprshot -m region"
},
{
"label": " Open screenshot menu",
"command": "swaync-client -cp && rofi-screenshot"
},
{
"label": " Open screenshot folder",
"command": "exo-open $HYPRSHOT_DIR"
}
]
},
"menu#screencast-buttons": {
"label": "",
"position": "left",
"actions": [
{
"label": " Entire screen",
"command": "swaync-client -cp && sleep 1 && recording.sh toggle fullscreen"
},
{
"label": " Select a region",
"command": "swaync-client -cp && sleep 1 && recording.sh toggle region"
},
{
"label": " Stop",
"command": "swaync-client -cp && recording.sh stop"
},
{
"label": " Open screencast folder",
"command": "$XDG_VIDEOS_DIR/Screencasts"
}
]
}
"backlight": {
"label": "󰃟"
},
"buttons-grid": {
"actions": [
{
"label": "",
"command": "nm-connection-editor"
"label": "󰐥",
"command": "wlogout -P 1 -s -r 10 -c 10"
},
{
"label": "",
"command": "blueman"
"label": "󰕾",
"command": "pactl set-sink-mute @DEFAULT_SINK@ toggle"
},
{
"label": "",
"command": "nwg-look"
"label": "󰍬",
"command": "pactl set-source-mute @DEFAULT_SOURCE@ toggle"
},
{
"label": "",
"command": "exo-open ~/ConfigHub"
"label": "󰖩",
"command": "iwgtk"
},
{
"label": "",
"command": "ymuse"
"label": "󰂯",
"command": "blueberry"
},
{
"label": "",
"command": "orage"
"label": "",
"command": "rofi -show fb -modes 'fb:~/.config/rofi/settings-menu/setmen.sh' -theme ~/.config/rofi/settings-menu/settings-menu.rasi"
},
{
"label": "",
"command": "pamac-manager"
},
{
"label": "",
"command": "firefox"
"label": "󱓞",
"command": "rofi -show drun -theme ~/.config/rofi/launcher/launcher.rasi"
}
]
}
+206 -210
View File
@@ -1,245 +1,272 @@
@import url("/usr/share/themes/Catppuccin-Mocha-Standard-Lavender-Dark/gtk-3.0/gtk.css");
@define-color cc-bg rgba(26, 27, 38, .95);
@define-color noti-border-color rgba(255, 255, 255, 0.15);
@define-color noti-bg #2a293a;
@define-color noti-bg-hover-alt #454545;
@define-color noti-bg-alt rgba(38,37,53,1);
@define-color noti-fg #acb0d0;
@define-color noti-bg-hover rgba(255, 255, 255, 0.1);
@define-color noti-bg-focus rgba(255, 255, 255, 0.1);
@define-color noti-bg rgb(17, 17, 27);
@define-color noti-bg-darker rgba(43, 43, 57,.5);
@define-color noti-bg-hover rgb(27, 27, 43);
@define-color noti-bg-focus rgba(27, 27, 27, 0.6);
@define-color noti-close-bg rgba(255, 255, 255, 0.1);
@define-color noti-close-bg-hover rgba(255, 255, 255, 0.15);
@define-color noti-urgent rgba(255,0,80,0.8);
@define-color bg-selected #26A69A;
@define-color text-color-disabled rgb(150, 150, 150);
@define-color bg-selected rgb(0, 128, 255);
*{
font-family: "Hack Nerd Font";
color: @noti-fg;
* {
font-family: Hack Nerd Font;
}
.control-center .notification-row:focus,
.control-center .notification-row:hover {
opacity: 1;
background: @noti-bg-darker;
}
.notification-row {
outline: none;
}
.notification-row:focus,
.notification-row:hover {
background: @noti-bg-focus;
margin: 0px;
padding: 0px;
}
.notification {
border: 1px solid @bg-selected;
border-radius: 4px;
margin: 6px 12px;
background: @theme_base_color;
border: 2px solid rgba(180,190,254, 0.1);
border-radius: 10px;
margin: 3px -2px 3px 0px;
padding:10px;
box-shadow: none;
padding: 0;
}
/* Uncomment to enable specific urgency colors */
/* .low {
background: yellow;
}
.normal {
background: green;
} */
.critical {
border: 1px solid @noti-urgent;
}
.notification-content {
background: transparent;
padding: 6px;
border-radius: 4px;
background: @theme_base_color;
}
.summary {
margin-bottom:5px;
}
.notification-content .body {
font-size: 14px;
}
.notification-default-action {
margin: 0;
padding: 0;
border-radius: 10px;
}
.close-button {
background: @noti-close-bg;
color: white;
background: #f7768e;
color: @theme_base_color;
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;
padding: 0px;
border-radius: 10px;
margin-top: 5px;
margin-right: 0px;
}
.close-button:hover {
box-shadow: none;
background: @noti-close-bg-hover;
background: #f7768e;
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: white;
border: 2px solid rgba(180,190,254, 0.5);
border-top: none;
border-radius: 10px;
}
.notification-default-action:hover,
.notification-action:hover {
-gtk-icon-effect: none;
background: @noti-bg-alt;
color: rgba(180,190,254, 0.6);
background: @theme_base_color;
}
.notification-default-action {
border-radius: 4px;
border-radius: 10px;
margin: 0px;
}
/* When alternative actions are visible */
.notification-default-action:not(:only-child) {
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
border-bottom-left-radius: 7px;
border-bottom-right-radius: 7px;
}
.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: 4px;
border-bottom-left-radius: 10px;
background: #1b1b2b;
}
.notification-action:last-child {
border-bottom-right-radius: 4px;
border-right: 1px solid @noti-border-color;
border-bottom-right-radius: 10px;
background: #1b1b2b;
}
.image {}
.inline-reply {
margin-top: 8px;
}
.body-image {
margin-top: 6px;
background-color: white;
border-radius: 6px;
.inline-reply-entry {
background: @noti-bg-darker;
color: @theme_text_color;
caret-color: @theme_text_color;
border: 1px solid @noti-border-color;
border-radius: 10px;
}
.inline-reply-button {
margin-left: 4px;
background: @noti-bg;
border: 1px solid @noti-border-color;
border-radius: 10px;
color: @theme_text_color;
}
.inline-reply-button:disabled {
background: initial;
color: @text-color-disabled;
border: 1px solid transparent;
}
.inline-reply-button:hover {
background: @noti-bg-hover;
}
.image {
border-radius: 10px;
margin-right: 10px;
}
.summary {
font-size: 14px;
font-weight: bold;
font-size: 16px;
font-weight: 700;
background: transparent;
color: white;
color: @theme_text_color;
text-shadow: none;
}
.time {
font-size: 13px;
font-weight: bold;
font-size: 16px;
font-weight: 700;
background: transparent;
color: white;
color: @theme_text_color;
text-shadow: none;
margin-right: 18px;
}
.body {
font-size: 12px;
font-weight: normal;
font-size: 15px;
font-weight: 400;
background: transparent;
color: white;
text-shadow: none;
}
/* The "Notifications" and "Do Not Disturb" text widget */
.top-action-title {
color: white;
color: @theme_text_color;
text-shadow: none;
}
.control-center {
background-color: @noti-bg-alt;
background: @theme_base_color;
border: 2px solid rgba(180,190,254, 0.2);
border-radius: 10px;
padding-top:5px;
}
.control-center-list {
background: transparent;
}
.control-center-list-placeholder {
opacity: 0.5;
}
.floating-notifications {
background: transparent;
}
/* Window behind control center and on all other monitors */
.blank-window {
background: transparent;
background: alpha(black, 0.1);
}
/*** Widgets ***/
/* Title widget */
.widget-title {
margin: 8px;
font-size: 16px;
}
.widget-title>button {
font-size: 10px;
color: white;
text-shadow: none;
background: @noti-bg;
border: 1px solid @noti-border-color;
box-shadow: none;
border-radius: 20px;
}
.widget-title>button:hover {
background: @noti-bg-hover;
}
/* DND widget */
.widget-dnd {
margin: 8px;
color: #fff;
background: @noti-bg-darker;
padding: 5px 10px;
margin: 10px 10px 5px 10px;
font-size: 1.1rem;
border-radius: 20px;
}
.widget-dnd>switch {
font-size: initial;
border-radius: 20px;
background: @noti-bg;
border: 1px solid @noti-border-color;
box-shadow: none;
}
.widget-dnd>switch:checked {
background: @noti-bg;
}
.widget-dnd>switch slider {
background: @noti-bg-hover;
border-radius: 10px;
}
/* Label widget */
.widget-title>button {
font-size: 0.9rem;
color: @theme_text_color;
text-shadow: none;
background: @noti-bg;
box-shadow: none;
border-radius: 10px;
}
.widget-title>button:hover {
background: #f7768e;
color: @theme_base_color;
}
.widget-dnd {
background: @noti-bg-darker;
padding: 5px 10px;
margin: 5px 10px;
border-radius: 10px;
font-size: 1rem;
color: #fff;
}
.widget-dnd>switch {
border-radius: 10px;
background: rgba(180,190,254, 0.7);
}
.widget-dnd>switch:checked {
background: #f7768e;
border: 1px solid #f7768e;
}
.widget-dnd>switch slider {
background: @theme_base_color;
border-radius: 10px;
}
.widget-dnd>switch:checked slider {
background: @theme_base_color;
border-radius: 10px;
}
.widget-label {
margin: 4px 8px 8px;
margin: 10px 10px 5px 10px;
}
.widget-label>label {
font-size: 16px;
font-size: 1rem;
color: @theme_text_color;
}
/* Mpris widget */
.widget-mpris {
/* The parent to all players */
color: @theme_text_color;
background: @noti-bg-darker;
padding: 5px 10px;
margin: 5px 10px 5px 10px;
border-radius: 10px;
box-shadow:none;
}
.widget-mpris>box>button {
border-radius: 10px;
}
.widget-mpris-player {
padding: 8px;
margin: 8px;
padding: 5px 10px;
margin: 10px;
box-shadow: none;
}
.widget-mpris-title {
font-weight: bold;
font-weight: 700;
font-size: 1.25rem;
}
@@ -247,81 +274,50 @@
font-size: 1.1rem;
}
/* Volume and Brightness Widget*/
.widget-volume {
background-color: @noti-bg;
padding: 4px 4px 4px 20px;
margin: 0px 8px 8px 8px;
border-radius: 20px;
font-size: 14px;
}
.widget-backlight {
background-color: @noti-bg;
padding: 8px 8px 4px 8px;
margin: 8px 8px 0px 8px;
border-top-left-radius: 12px;
border-top-right-radius: 12px;
}
.KB {
padding: 4px 8px 4px 8px;
margin: 0px 8px 0px 8px;
border-radius: 0;
}
.widget-menubar>box{
padding: 8px 0px 4px;
margin: 0px 8px;
border-radius: 10px 10px 0px 0px;
background-color: @noti-bg;
}
.widget-menubar>box>.menu-button-bar>button{
border: 1px solid @noti-border-color;
background: @noti-bg;
.widget-buttons-grid {
font-size: x-large;
padding: 5px;
margin: 5px 10px 10px 10px;
border-radius: 10px;
margin: 4px 12px;
background: @noti-bg-darker;
}
.widget-buttons-grid{
padding: 0px 8px 8px;
margin: 0px 8px 8px;
border-radius: 0px 0px 10px 10px;
background-color: @noti-bg;
font-size: 14px;
}
.widget-buttons-grid>flowbox>flowboxchild>button{
background: @noti-bg;
border-radius: 20px;
.widget-buttons-grid>flowbox>flowboxchild>button {
margin: 3px;
background: @theme_base_color;
border-radius: 10px;
color: @theme_text_color;
}
.widget-buttons-grid>flowbox>flowboxchild>button:hover {
background: @noti-bg-hover;
background: rgba(180,190,254, 1);
color: @theme_base_color;
}
.screenshot-buttons,
.screencast-buttons,
.powermode-buttons,
.power-buttons{
border-radius: 20px;
}
.screenshot-buttons>button,
.screencast-buttons>button,
.powermode-buttons>button,
.power-buttons>button{
.widget-menubar>box>.menu-button-bar>button {
border: none;
background: transparent;
padding: 2px 0px;
margin: 5px 70px 3px;
border: 1px solid @noti-border-color;
}
.screenshot-buttons>button:hover,
.screencast-buttons>button:hover,
.powermode-buttons>button:hover,
.power-buttons>button:hover{
background: @noti-bg-hover;
.topbar-buttons>button {
border: none;
background: transparent;
}
.widget-volume {
background: @noti-bg-darker;
padding: 5px 10px 5px 12px;
margin: 5px 10px;
border-radius: 10px;
font-size: 1.5rem;
color: #fff;
}
.widget-backlight {
background: @noti-bg-darker;
padding: 5px;
margin: 5px 10px;
border-radius: 10px;
font-size: 2rem;
color: #fff;
}