195 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 *

This commit is contained in:
Max Känner 2024-03-13 10:47:09 +01:00
parent 0f8b328b90
commit 70a6016243
3 changed files with 24 additions and 3 deletions

View File

@ -215,7 +215,7 @@
height = 26; height = 26;
modules-left = ["sway/workspaces" "sway/mode"]; modules-left = ["sway/workspaces" "sway/mode"];
modules-center = ["sway/window"]; modules-center = ["sway/window"];
modules-right = ["mpd" "tray" "sway/language" "clock" "backlight" "battery" "network"]; modules-right = ["mpd" "tray" "custom/squeekboard" "sway/language" "clock" "backlight" "battery" "network"];
"sway/workspaces" = { "sway/workspaces" = {
disable-scroll = true; disable-scroll = true;
@ -233,7 +233,7 @@
}; };
"mpd" = { "mpd" = {
format = "{stateIcon}{consumeIcon}{randomIcon}{repeatIcon}{singleIcon} {title} ({elapsedTime:%M:%S}/{totalTime:%M%S}) {volume}"; format = "{stateIcon}{consumeIcon}{randomIcon}{repeatIcon}{singleIcon} {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) {volume}";
format-stopped = "{stateIcon}{randomIcon}{repeatIcon}{singleIcon} Stopped {volume}"; format-stopped = "{stateIcon}{randomIcon}{repeatIcon}{singleIcon} Stopped {volume}";
format-disconnected = ""; format-disconnected = "";
unkown-tag = "N/A"; unkown-tag = "N/A";
@ -265,6 +265,20 @@
spacing = 10; spacing = 10;
}; };
"custom/squeekboard" = let
schema = "org.gnome.desktop.a11y.applications";
key = "screen-keyboard-enabled";
in {
format = "󰌌";
on-click = ''
if ["$(gsettings get ${schema} ${key})" == "'true'"]; then
gsettings set ${schema} ${key} false
else
gsettings set ${schema} ${key} true
fi
'';
};
"sway/language" = { "sway/language" = {
format = "{shortDescription}"; format = "{shortDescription}";
tooltip = false; tooltip = false;

View File

@ -40,6 +40,14 @@ window#waybar {
padding-right: 3px; padding-right: 3px;
} }
#custom-squeekboard {
border-width: 1px;
border-style: none none none solid;
border-color: #444444;
padding-left: 10px;
padding-right: 10px;
}
#language { #language {
border-width: 1px; border-width: 1px;
border-style: none none none solid; border-style: none none none solid;

View File

@ -29,7 +29,6 @@
in '' in ''
gnome_schema=org.gnome.desktop.interface gnome_schema=org.gnome.desktop.interface
gsettings set $gnome_schema gtk-theme 'Dracula' gsettings set $gnome_schema gtk-theme 'Dracula'
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true
''; '';
}; };
in { in {