Dotfiles erweitert: Wofi, Waybar (Config, Style, Script) und das WatchTower Wallpaper hinzugefügt

This commit is contained in:
2026-03-28 15:07:59 +01:00
parent d58d9982bf
commit 06798eef75
5 changed files with 145 additions and 0 deletions

40
.config/waybar/config Normal file
View File

@@ -0,0 +1,40 @@
{
"layer": "top",
"position": "top",
"height": 35,
"spacing": 4,
"modules-left": ["clock", "hyprland/window"],
"modules-center": ["hyprland/workspaces"],
"modules-right": ["pulseaudio", "network", "cpu", "memory", "tray"],
"clock": {
"format": "{:%H:%M | %d.%m.}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
},
"cpu": {
"format": "CPU: {usage}%",
"tooltip": false
},
"network": {
"format": "{ipaddr}"
},
"hyprland/workspaces": {
"format": "{icon}: {windows}",
"format-window-separator": "",
"workspace-taskbar": {
"enable": true,
"update-active-window": true,
"format": "{icon} ",
"icon-size": 18,
"on-click-window": "${SCRIPTS}/focus-window.sh {address} {button}"
}
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-icons": {
"default": ["", "", ""]
},
"on-click": "pavucontrol"
}
}

13
.config/waybar/refrech.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
# Prüfen, ob waybar bereits läuft
if pgrep -x "waybar" > /dev/null
then
# Wenn sie läuft, beende sie
pkill waybar
# Warte kurz, bis der Prozess wirklich weg ist
sleep 0.2
fi
# Starte waybar neu
waybar &

44
.config/waybar/style.css Normal file
View File

@@ -0,0 +1,44 @@
/* Die gesamte Bar */
window#waybar {
background-color: rgba(30, 30, 46, 0.8); /* Transparentes Dunkel */
border-bottom: 2px solid #5e81ac;
color: #cdd6f4;
font-family: "Fira Code", "Font Awesome 6 Free";
font-size: 14px;
}
/* Einzelne Module stylen */
#workspaces button {
padding: 0 5px;
background-color: transparent;
color: #ffffff;
}
#workspaces button.active {
color: #5e81ac;
border-bottom: 3px solid #5e81ac;
}
#clock, #cpu, #memory, #battery, #pulseaudio, #network {
padding: 0 10px;
margin: 4px;
background-color: #313244;
border-radius: 8px;
}
/* Dem Tray-Container Platz und Design geben */
#tray {
padding: 0 10px;
margin: 4px;
background-color: #313244; /* Gleicher Hintergrund wie CPU/Clock */
border-radius: 8px;
}
/* Den Abstand zwischen den einzelnen Icons im Tray erhöhen */
#tray > widget {
margin-left: 8px;
}
#tray > widget:first-child {
margin-left: 0px;
}