Initial swaync config
This commit is contained in:
parent
4d0ccb40d9
commit
b157ab3bf4
|
@ -0,0 +1,200 @@
|
||||||
|
{
|
||||||
|
"$schema": "/etc/xdg/swaync/configSchema.json",
|
||||||
|
"positionX": "right",
|
||||||
|
"positionY": "top",
|
||||||
|
"control-center-margin-top": 0,
|
||||||
|
"control-center-margin-bottom": 0,
|
||||||
|
"control-center-margin-right": 0,
|
||||||
|
"control-center-margin-left": 0,
|
||||||
|
"notification-icon-size": 24,
|
||||||
|
"notification-body-image-height": 48,
|
||||||
|
"notification-body-image-width": 48,
|
||||||
|
"timeout": 10,
|
||||||
|
"timeout-low": 5,
|
||||||
|
"timeout-critical": 0,
|
||||||
|
"fit-to-screen": true,
|
||||||
|
"control-center-width": 380,
|
||||||
|
"notification-window-width": 366,
|
||||||
|
"keyboard-shortcuts": true,
|
||||||
|
"image-visibility": "when-available",
|
||||||
|
"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": [
|
||||||
|
"label",
|
||||||
|
"menubar",
|
||||||
|
"buttons-grid",
|
||||||
|
"volume",
|
||||||
|
"mpris",
|
||||||
|
"title",
|
||||||
|
"dnd",
|
||||||
|
"notifications"
|
||||||
|
],
|
||||||
|
"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": 6
|
||||||
|
},
|
||||||
|
"backlight": {
|
||||||
|
"label": "",
|
||||||
|
"device": "intel_backlight",
|
||||||
|
"min": 10
|
||||||
|
},
|
||||||
|
"backlight#KB": {
|
||||||
|
"label": " ",
|
||||||
|
"device": "asus::kbd_backlight",
|
||||||
|
"subsystem": "leds"
|
||||||
|
},
|
||||||
|
"volume": {
|
||||||
|
"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": " Select a region",
|
||||||
|
"command": "swaync-client -cp && sleep 1 && grimshot --notify copy area"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": " Select a window",
|
||||||
|
"command": "swaync-client -cp && sleep 1 && grimshot --notify copy window"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": " Current output",
|
||||||
|
"command": "swaync-client -cp && sleep 1 && grimshot --notify copy output"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": " All outputs",
|
||||||
|
"command": "swaync-client -cp && sleep 1 && grimshot --notify copy screen"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
//"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"
|
||||||
|
//}
|
||||||
|
//]
|
||||||
|
//}
|
||||||
|
//},
|
||||||
|
"buttons-grid": {
|
||||||
|
"actions": [
|
||||||
|
{
|
||||||
|
"label": "",
|
||||||
|
"command": "nm-connection-editor"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "",
|
||||||
|
"command": "blueman-manager"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "",
|
||||||
|
"command": "nwg-look"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "",
|
||||||
|
"command": "exo-open ~/ConfigHub"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "",
|
||||||
|
"command": "ymuse"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "",
|
||||||
|
"command": "orage"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "",
|
||||||
|
"command": "pamac-manager"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "",
|
||||||
|
"command": "firefox"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,310 @@
|
||||||
|
/* Gruvbox Theme */
|
||||||
|
|
||||||
|
/* Greyscale */
|
||||||
|
@define-color highlight #ebdbb2;
|
||||||
|
@define-color foreground #928374;
|
||||||
|
@define-color background #282828;
|
||||||
|
@define-color black #010101;
|
||||||
|
|
||||||
|
/* Colours */
|
||||||
|
@define-color red #cc241d;
|
||||||
|
@define-color green #98971a;
|
||||||
|
@define-color yellow #d79921;
|
||||||
|
@define-color blue #458588;
|
||||||
|
@define-color magenta #b16286;
|
||||||
|
@define-color cyan #68986a;
|
||||||
|
|
||||||
|
/* Highlight colours */
|
||||||
|
@define-color hred #fb4934;
|
||||||
|
@define-color hgreen #b8bb26;
|
||||||
|
@define-color hyellow #fabd2f;
|
||||||
|
@define-color hblue #83a598;
|
||||||
|
@define-color hmagenta #d3869b;
|
||||||
|
@define-color hcyan #8ec07c;
|
||||||
|
|
||||||
|
.notification-row {
|
||||||
|
transition: all 200ms ease;
|
||||||
|
outline: none;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
margin-right: 13px;
|
||||||
|
margin-top: 8px;
|
||||||
|
border-radius: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .notification-row:focus,
|
||||||
|
.control-center .notification-row:hover {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-row:focus .notification,
|
||||||
|
.notification-row:hover .notification {
|
||||||
|
border: 0px solid @highlight;
|
||||||
|
background: @red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .notification {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center .notification-row {
|
||||||
|
opacity: 1;
|
||||||
|
margin: -5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification {
|
||||||
|
transition: all 200ms ease;
|
||||||
|
border-radius: 8px;
|
||||||
|
margin: 12px 7px 0px 7px;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.low {
|
||||||
|
background: @yellow;
|
||||||
|
padding: 6px;
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.normal {
|
||||||
|
background: @blue;
|
||||||
|
padding: 6px;
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.critical {
|
||||||
|
background: @red;
|
||||||
|
padding: 6px;
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-content {
|
||||||
|
background: transparent;
|
||||||
|
padding: 6px;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close-button {
|
||||||
|
background: @red;
|
||||||
|
color: @highlight;
|
||||||
|
text-shadow: none;
|
||||||
|
padding: 0;
|
||||||
|
border-radius: 100%;
|
||||||
|
margin-top: 17px;
|
||||||
|
margin-right: 10px;
|
||||||
|
box-shadow: none;
|
||||||
|
border: none;
|
||||||
|
min-width: 24px;
|
||||||
|
min-height: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close-button:hover {
|
||||||
|
box-shadow: none;
|
||||||
|
background: @hred;
|
||||||
|
transition: all 0.15s ease-in-out;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-default-action,
|
||||||
|
.notification-action {
|
||||||
|
padding: 4px;
|
||||||
|
margin: 0;
|
||||||
|
box-shadow: none;
|
||||||
|
background: @blue;
|
||||||
|
border: 1px solid @highlight;
|
||||||
|
color: @highlight;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-default-action.normal,
|
||||||
|
.notification-action.normal {
|
||||||
|
color: @red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-default-action:hover,
|
||||||
|
.notification-action:hover {
|
||||||
|
-gtk-icon-effect: none;
|
||||||
|
background: @hblue;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-default-action {
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 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: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-action:last-child {
|
||||||
|
border-bottom-right-radius: 8px;
|
||||||
|
border-right: 1px solid @highlight;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image {
|
||||||
|
}
|
||||||
|
|
||||||
|
.body-image {
|
||||||
|
margin-top: 6px;
|
||||||
|
background-color: @highlight;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
background: transparent;
|
||||||
|
color: @highlight;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.time {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
background: transparent;
|
||||||
|
color: @highlight;
|
||||||
|
text-shadow: none;
|
||||||
|
margin-right: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.body {
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: normal;
|
||||||
|
background: transparent;
|
||||||
|
color: @highlight;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* The "Notifications" and "Do Not Disturb" text widget */
|
||||||
|
.top-action-title {
|
||||||
|
color: @highlight;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center-clear-all {
|
||||||
|
color: @highlight;
|
||||||
|
text-shadow: none;
|
||||||
|
background: @red;
|
||||||
|
border: 2px solid @highlight;
|
||||||
|
box-shadow: none;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center-clear-all:hover {
|
||||||
|
background: @red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center-dnd {
|
||||||
|
border-radius: 8px;
|
||||||
|
background: @red;
|
||||||
|
border: 1px solid @highlight;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center-dnd:checked {
|
||||||
|
background: @green;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center-dnd slider {
|
||||||
|
background: @red;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center {
|
||||||
|
background: @background;
|
||||||
|
background-clip: border-box;
|
||||||
|
border-left: solid 1px @highlight;
|
||||||
|
border-radius: 0px;
|
||||||
|
padding: 4px;
|
||||||
|
color: @highlight;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-center-list {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.floating-notifications {
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Window behind control center and on all other monitors */
|
||||||
|
.blank-window {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*** Widgets ***/
|
||||||
|
|
||||||
|
/* Title widget */
|
||||||
|
.widget-title {
|
||||||
|
margin: 8px;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
.widget-title > button {
|
||||||
|
font-size: initial;
|
||||||
|
color: @highlight;
|
||||||
|
text-shadow: none;
|
||||||
|
background: @background;
|
||||||
|
border: 2px solid @highlight;
|
||||||
|
box-shadow: none;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
.widget-title > button:hover {
|
||||||
|
background: @background;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* DND widget */
|
||||||
|
.widget-dnd {
|
||||||
|
margin: 8px;
|
||||||
|
font-size: 1.1rem;
|
||||||
|
}
|
||||||
|
.widget-dnd > switch {
|
||||||
|
font-size: initial;
|
||||||
|
border-radius: 8px;
|
||||||
|
background: @foreground;
|
||||||
|
border: 1px solid @highlight;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
.widget-dnd > switch:checked {
|
||||||
|
background: @red;
|
||||||
|
}
|
||||||
|
.widget-dnd > switch slider {
|
||||||
|
background: @highlight;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid @highlight;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Label widget */
|
||||||
|
.widget-label {
|
||||||
|
margin: 8px;
|
||||||
|
}
|
||||||
|
.widget-label > label {
|
||||||
|
font-size: 1.1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Mpris widget */
|
||||||
|
.widget-mpris {
|
||||||
|
/* The parent to all players */
|
||||||
|
}
|
||||||
|
.widget-mpris-player {
|
||||||
|
padding: 8px;
|
||||||
|
margin: 8px;
|
||||||
|
background-color: @background;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 2px solid @highlight;
|
||||||
|
color: @highlight;
|
||||||
|
}
|
||||||
|
.widget-mpris-title {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
.widget-mpris-subtitle {
|
||||||
|
font-size: 1.1rem;
|
||||||
|
}
|
Loading…
Reference in New Issue