feat: very nice swaync config
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "/etc/xdg/swaync/configSchema.json",
|
"$schema": "/etc/xdg/swaync/configSchema.json",
|
||||||
"ignore-gtk-theme": false,
|
"ignore-gtk-theme": true,
|
||||||
"positionX": "right",
|
"positionX": "right",
|
||||||
"positionY": "top",
|
"positionY": "top",
|
||||||
"layer": "overlay",
|
"layer": "overlay",
|
||||||
@@ -51,10 +51,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"widgets": [
|
"widgets": [
|
||||||
"inhibitors",
|
|
||||||
"title",
|
"title",
|
||||||
|
"buttons-grid",
|
||||||
|
"volume",
|
||||||
|
"inhibitors",
|
||||||
"dnd",
|
"dnd",
|
||||||
"notifications"
|
"notifications",
|
||||||
|
"mpris"
|
||||||
],
|
],
|
||||||
"widget-config": {
|
"widget-config": {
|
||||||
"inhibitors": {
|
"inhibitors": {
|
||||||
@@ -63,16 +66,16 @@
|
|||||||
"clear-all-button": true
|
"clear-all-button": true
|
||||||
},
|
},
|
||||||
"title": {
|
"title": {
|
||||||
"text": "Notifications",
|
"text": "Kolinux v1.0",
|
||||||
"clear-all-button": true,
|
"clear-all-button": true,
|
||||||
"button-text": "Purge"
|
"button-text": "Purge notifications"
|
||||||
},
|
},
|
||||||
"dnd": {
|
"dnd": {
|
||||||
"text": "Don't bother"
|
"text": "Don't bother"
|
||||||
},
|
},
|
||||||
"label": {
|
"label": {
|
||||||
"max-lines": 5,
|
"max-lines": 1,
|
||||||
"text": "Label Text"
|
"text": "Kolinux 1.0"
|
||||||
},
|
},
|
||||||
"mpris": {
|
"mpris": {
|
||||||
"blacklist": [],
|
"blacklist": [],
|
||||||
@@ -84,12 +87,25 @@
|
|||||||
"buttons-per-row": 7,
|
"buttons-per-row": 7,
|
||||||
"actions": [
|
"actions": [
|
||||||
{
|
{
|
||||||
"label": "直",
|
"label": "",
|
||||||
"type": "toggle",
|
"type": "toggle",
|
||||||
"active": true,
|
"active": true,
|
||||||
"command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && nmcli radio wifi on || nmcli radio wifi off'",
|
"command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && nmcli radio wifi on || nmcli radio wifi off'",
|
||||||
"update-command": "sh -c '[[ $(nmcli radio wifi) == \"enabled\" ]] && echo true || echo false'"
|
"update-command": "sh -c '[[ $(nmcli radio wifi) == \"enabled\" ]] && echo true || echo false'"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "",
|
||||||
|
"type": "toggle",
|
||||||
|
"command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && bluetoothctl power on || bluetoothctl power off'",
|
||||||
|
"update-command": "sh -c \'bluetoothctl show | awk \\\"/Powered/ {print \\$2}\\\" | grep -q yes && echo true || echo false\'"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "",
|
||||||
|
"type": "toggle",
|
||||||
|
"command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && mullvad connect || mullvad disconnect'",
|
||||||
|
"update-command": "sh -c '[[ $(mullvad status | grep -e Connected ) == \"Connected\" ]] && echo true || echo false'"
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
font: "JetBrains Mono Nerd Font 10";
|
font-family: "JetBrains Mono Nerd Font";
|
||||||
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.close-button {
|
.close-button {
|
||||||
@@ -359,6 +360,11 @@
|
|||||||
margin: 8px;
|
margin: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.widget-dnd switch:checked {
|
||||||
|
background: var(--noti-bg-focus);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.widget-dnd switch slider {
|
.widget-dnd switch slider {
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
}
|
}
|
||||||
@@ -437,6 +443,7 @@
|
|||||||
|
|
||||||
/* Buttons widget */
|
/* Buttons widget */
|
||||||
.widget-buttons-grid {
|
.widget-buttons-grid {
|
||||||
|
min-height: 50px;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
margin: 8px;
|
margin: 8px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
@@ -444,10 +451,21 @@
|
|||||||
|
|
||||||
.widget-buttons-grid flowboxchild > button {
|
.widget-buttons-grid flowboxchild > button {
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-buttons-grid flowboxchild > button.toggle > * {
|
||||||
|
font-size: 36px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.widget-buttons-grid flowboxchild > button.toggle:checked {
|
.widget-buttons-grid flowboxchild > button.toggle:checked {
|
||||||
/* style given to the active toggle button */
|
/* style given to the active toggle button */
|
||||||
|
background-color: var(--noti-bg-focus);
|
||||||
|
}
|
||||||
|
|
||||||
|
.widget-buttons-grid flowboxchild > button.toggle:hover {
|
||||||
|
/* style given to the active toggle button */
|
||||||
|
background-color: var(--bg-selected);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Menubar widget */
|
/* Menubar widget */
|
||||||
@@ -510,6 +528,10 @@
|
|||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.widget-volume trough highlight {
|
||||||
|
background: var(--noti-bg-focus);
|
||||||
|
}
|
||||||
|
|
||||||
/* Each row app icon */
|
/* Each row app icon */
|
||||||
.widget-volume row image {
|
.widget-volume row image {
|
||||||
-gtk-icon-size: var(--widget-volume-row-icon-size);
|
-gtk-icon-size: var(--widget-volume-row-icon-size);
|
||||||
|
|||||||
Reference in New Issue
Block a user