Update from e14

This commit is contained in:
2026-06-03 15:15:16 +02:00
parent a00c2300f8
commit afdc1c9c72
14 changed files with 547 additions and 318 deletions
+149
View File
@@ -0,0 +1,149 @@
// -*- mode: jsonc -*-
{
// "layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
"height": 30, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
"spacing": 6, // Gaps between modules (4px)
// Choose the order of the modules
"modules-left": [
"river/tags",
"sway/workspaces",
"river/window",
"sway/window"
],
"modules-center": [
"clock"
],
"modules-right": [
"wireplumber#sink",
"wireplumber#source",
"network",
"power-profiles-daemon",
"cpu",
"temperature",
"memory",
"backlight",
"battery",
"tray",
"custom/power"
],
// Modules configuration
"sway/workspaces": {
"all-outputs": true
},
"keyboard-state": {
"numlock": true,
"capslock": true,
"format": "{name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
"clock": {
"interval": 10,
"format": "{:%T %d.%m.%Y}",
"locale": "de_DE.UTF-8",
// "timezone": "America/New_York",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
},
"cpu": {
"format": "cpu {icon}",
"tooltip-format": "{usage}%",
"format-icons": [ "⡀", "⣀", "⣄", "⣤", "⣦", "⣶", "⣷", "⣿" ]
},
"memory": {
"format": "mem {icon}",
"format-icons": [ "⡀", "⣀", "⣄", "⣤", "⣦", "⣶", "⣷", "⣿" ],
"tooltip-format": "{}%"
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C"
},
"backlight": {
// "device": "acpi_video1",
"format": "screen {icon}",
"tooltip-format": "{percent}%",
"format-icons": [ "⡀", "⣀", "⣄", "⣤", "⣦", "⣶", "⣷", "⣿" ],
"scroll-step": 5
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "bat {icon}",
"format-charging": "bat {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"tooltip-format": "{capacity}%",
"format-icons": [ "⡀", "⣀", "⣄", "⣤", "⣦", "⣶", "⣷", "⣿" ]
},
"power-profiles-daemon": {
"format": "profile {icon}",
"tooltip-format": "profile: {profile}\ndriver: {driver}",
"tooltip": true,
"format-icons": {
"default": "-",
"performance": "p",
"balanced": "-",
"power-saver": "e"
}
},
"network": {
"format-wifi": "net {icon}",
"tooltip-format-wifi": "interface {ifname}\nip {ipaddr}/{cidr}\ngateway {gwaddr}\nssid {essid}",
"format-ethernet": "net e",
"tooltip-format": "interface {ifname}\nip {ipaddr}/{cidr}\ngateway {gwaddr}",
"format-linked": "net ?",
"format-disconnected": "net -",
"format-icons": [ "⡀", "⣀", "⣄", "⣤", "⣦", "⣶", "⣷", "⣿" ]
},
"wireplumber#sink": {
"format": "vol {icon}",
"tooltip-format": "{node_name}: {volume}%",
"format-icons": [ "⡀", "⣀", "⣄", "⣤", "⣦", "⣶", "⣷", "⣿" ],
"format-muted": "vol m",
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
"scroll-step": 5
},
"wireplumber#source": {
"node-type": "Audio/Source",
"format": "mic {icon}",
"tooltip-format": "{node_name}: {volume}%",
"format-icons": [ "⡀", "⣀", "⣄", "⣤", "⣦", "⣶", "⣷", "⣿" ],
"format-muted": "mic m",
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle",
"scroll-step": 5
},
"custom/media": {
"format": "{icon} {text}",
"return-type": "json",
"max-length": 40,
"format-icons": {
"spotify": "",
"default": "🎜"
},
"escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
},
"custom/power": {
"format": "⏻ ",
"tooltip": false,
"menu": "on-click",
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
"menu-actions": {
"shutdown": "shutdown",
"reboot": "reboot",
"suspend": "systemctl suspend",
"hibernate": "systemctl hibernate"
}
}
}
+28
View File
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<object class="GtkMenu" id="menu">
<child>
<object class="GtkMenuItem" id="suspend">
<property name="label">Suspend</property>
</object>
</child>
<child>
<object class="GtkMenuItem" id="hibernat">
<property name="label">Hibernate</property>
</object>
</child>
<child>
<object class="GtkMenuItem" id="shutdown">
<property name="label">Shutdown</property>
</object>
</child>
<child>
<object class="GtkSeparatorMenuItem" id="delimiter1"/>
</child>
<child>
<object class="GtkMenuItem" id="reboot">
<property name="label">Reboot</property>
</object>
</child>
</object>
</interface>
+178
View File
@@ -0,0 +1,178 @@
* {
/* `otf-font-awesome` is required to be installed for icons */
font-family: Cascadia Code, Roboto, Helvetica, Arial, monospace;
font-size: 13px;
}
window#waybar {
background-color: rgba(0, 0, 0, 0.7);
border-bottom: 3px solid rgba(100, 114, 125, 0.5);
color: #ffffff;
transition-property: background-color;
transition-duration: .1s;
}
window#waybar.hidden {
opacity: 1;
}
/*
window#waybar.empty {
background-color: transparent;
}
window#waybar.solo {
background-color: #FFFFFF;
}
*/
window#waybar.termite {
background-color: #3F3F3F;
}
window#waybar.chromium {
background-color: #000000;
border: none;
}
button {
/* Use box-shadow instead of border so the text isn't offset */
box-shadow: inset 0 -3px transparent;
/* Avoid rounded borders under each button name */
border: none;
border-radius: 0;
}
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
button:hover {
background: inherit;
box-shadow: inset 0 -3px #ffffff;
}
#tags button {
}
#tags button:hover {
background: rgba(0, 0, 0, 0.2);
}
#tags button.focused {
background-color: rgba(30, 30, 30, 0.7);
/* color: #7f7f7f; */
box-shadow: inset 0 -3px #ffffff;
}
#tags button.urgent {
background-color: #eb4d4b;
}
#mode {
background-color: #64727D;
box-shadow: inset 0 -3px #ffffff;
}
#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#wireplumber,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#scratchpad,
#power-profiles-daemon,
#mpd {
padding: 10px 10px;
color: #ffffff;
}
#window,
#workspaces {
margin: 0 4px;
}
/* If workspaces is the leftmost module, omit left margin */
.modules-left > widget:first-child > #workspaces {
margin-left: 0;
}
/* If workspaces is the rightmost module, omit right margin */
.modules-right > widget:last-child > #workspaces {
margin-right: 0;
}
@keyframes blink {
to {
background-color: #ffffff;
color: #000000;
}
}
/* Using steps() instead of linear as a timing function to limit cpu usage */
#battery.critical:not(.charging) {
background-color: #f53c3c;
color: #ffffff;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: steps(12);
animation-iteration-count: infinite;
animation-direction: alternate;
}
#language {
background: #00b093;
color: #740864;
padding: 0 5px;
margin: 0 5px;
min-width: 16px;
}
#keyboard-state {
background: #97e1ad;
color: #000000;
padding: 0 0px;
margin: 0 5px;
min-width: 16px;
}
#keyboard-state > label {
padding: 0 5px;
}
#keyboard-state > label.locked {
background: rgba(0, 0, 0, 0.2);
}
#scratchpad {
background: rgba(0, 0, 0, 0.2);
}
#scratchpad.empty {
background-color: transparent;
}
#privacy {
padding: 0;
}
#privacy-item {
padding: 0 5px;
color: white;
}
#privacy-item.screenshare {
background-color: #cf5700;
}
#privacy-item.audio-in {
background-color: #1ca000;
}
#privacy-item.audio-out {
background-color: #0069d4;
}