From 83da65287d74e772a5c6d9c8142f80f59846c3a9 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Tue, 8 Apr 2025 14:05:43 +0200 Subject: [PATCH] update hypr and replacy waybor config to original --- dot_config/hypr/hyprland.conf | 12 +- dot_config/waybar/config | 314 ---------- dot_config/waybar/config-old | 110 ---- dot_config/waybar/config-old2 | 176 ------ dot_config/waybar/config.jsonc | 210 +++++++ .../waybar/executable_brightness-down.sh | 2 - dot_config/waybar/executable_brightness-up.sh | 2 - .../waybar/executable_waybar-khal-old.py | 33 - dot_config/waybar/executable_waybar-khal.py | 33 - dot_config/waybar/style.css | 586 ++++++++++-------- dot_config/waybar/style.css-old | 102 --- dot_config/waybar/style.css-old2 | 296 --------- dot_config/waybar/style.css-old3 | 298 --------- 13 files changed, 540 insertions(+), 1634 deletions(-) delete mode 100644 dot_config/waybar/config delete mode 100644 dot_config/waybar/config-old delete mode 100644 dot_config/waybar/config-old2 create mode 100644 dot_config/waybar/config.jsonc delete mode 100644 dot_config/waybar/executable_brightness-down.sh delete mode 100644 dot_config/waybar/executable_brightness-up.sh delete mode 100644 dot_config/waybar/executable_waybar-khal-old.py delete mode 100644 dot_config/waybar/executable_waybar-khal.py delete mode 100644 dot_config/waybar/style.css-old delete mode 100644 dot_config/waybar/style.css-old2 delete mode 100644 dot_config/waybar/style.css-old3 diff --git a/dot_config/hypr/hyprland.conf b/dot_config/hypr/hyprland.conf index d4c24f1..5ced7fc 100644 --- a/dot_config/hypr/hyprland.conf +++ b/dot_config/hypr/hyprland.conf @@ -114,7 +114,7 @@ decoration { # https://wiki.hyprland.org/Configuring/Variables/#animations animations { - enabled = true + enabled = false # Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more @@ -190,8 +190,8 @@ $mainMod = Alt # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod, Return, exec, $terminal -bind = $mainMod, C, killactive, -bind = $mainMod, M, exit, +bind = $mainMod+Shift, Q, killactive, +bind = $mainMod+Shift, M, exit, bind = $mainMod, E, exec, $fileManager bind = $mainMod, V, togglefloating, bind = $mainMod, D, exec, $menu @@ -204,6 +204,12 @@ bind = $mainMod, right, movefocus, r bind = $mainMod, up, movefocus, u bind = $mainMod, down, movefocus, d +# Move active window with mainMod + arrow keys +bind = $mainMod+Shift, left, movewindow, l +bind = $mainMod+Shift, right, movewindow, r +bind = $mainMod+Shift, up, movewindow, u +bind = $mainMod+Shift, down, movewindow, d + # Switch workspaces with mainMod + [0-9] bind = $mainMod, 1, workspace, 1 bind = $mainMod, 2, workspace, 2 diff --git a/dot_config/waybar/config b/dot_config/waybar/config deleted file mode 100644 index f3d1b4a..0000000 --- a/dot_config/waybar/config +++ /dev/null @@ -1,314 +0,0 @@ -{ - // "layer": "top", // Waybar at top layer - // "position": "bottom", // Waybar position (top|bottom|left|right) - "height": 36, // Waybar height (to be removed for auto height) - // "width": 1280, // Waybar width - //"spacing": 4, // Gaps between modules (4px) - "layer": "top", - "gtk-layer-shell": "true", - "margin-top": 4, - "margin-left": 16, - "margin-right": 16, - "margin-bottom": -6, - // Choose the order of the modules - "modules-left": [ - "sway/workspaces", - "sway/mode", - "sway/scratchpad" - ], - "modules-center": [ - "sway/window" - ], - "modules-right": [ - "idle_inhibitor", - "pulseaudio", - "network", - //"cpu", - //"memory", - //"temperature", - "backlight", - //"custom/wl-gammarelay-temperature", - //"custom/wl-gammarelay-brightness", - //"custom/wl-gammarelay-gamma", - //"keyboard-state", - //"sway/language", - "custom/events", - "clock", - "battery", - "battery#bat2", - "tray", - "custom/notification", - "custom/wvkbd" - ], - // Modules configuration - "sway/workspaces": { - "disable-scroll": true, - "all-outputs": true, - "format": "{name}: {icon} ", - "format-icons": { - "1": "", - "2": "", - "3": "", - "urgent": "", - "focused": "", - "default": "" - } - }, - "keyboard-state": { - "numlock": true, - "capslock": true, - "format": "{name} {icon} ", - "format-icons": { - "locked": "", - "unlocked": "" - } - }, - "sway/mode": { - "format": "{}" - }, - "sway/scratchpad": { - "format": "{icon} {count}", - "show-empty": false, - "format-icons": [ - "", - "" - ], - "tooltip": true, - "tooltip-format": "{app}: {title}" - }, - "mpd": { - "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ", - "format-disconnected": "Disconnected ", - "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ", - "unknown-tag": "N/A", - "interval": 2, - "consume-icons": { - "on": " " - }, - "random-icons": { - "off": " ", - "on": " " - }, - "repeat-icons": { - "on": " " - }, - "single-icons": { - "on": "1 " - }, - "state-icons": { - "paused": "", - "playing": "" - }, - "tooltip-format": "MPD (connected)", - "tooltip-format-disconnected": "MPD (disconnected)" - }, - "idle_inhibitor": { - "format": "{icon}", - "format-icons": { - "activated": "", - "deactivated": "" - } - }, - "tray": { - // "icon-size": 21, - "spacing": 10 - }, - "clock": { - "format": "{:%H:%M}  ", - "format-alt": "{:%A, %B %d, %Y (%R)}  ", - "tooltip-format": "{calendar}", - "calendar": { - "mode" : "year", - "mode-mon-col" : 3, - "weeks-pos" : "right", - "on-scroll" : 1, - "on-click-right": "mode", - "format": { - "months": "{}", - "days": "{}", - "weeks": "W{}", - "weekdays": "{}", - "today": "{}" - } - }, - "actions": { - "on-click-right": "mode", - "on-click-forward": "tz_up", - "on-click-backward": "tz_down", - "on-scroll-up": "shift_up", - "on-scroll-down": "shift_down" - } - }, - "cpu": { - "format": "{usage}% ", - "tooltip": false - }, - "memory": { - "format": "{}% " - }, - "temperature": { - // "thermal-zone": 2, - // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", - "critical-threshold": 80, - // "format-critical": "{temperatureC}°C {icon}", - "format": "{temperatureC}°C {icon}", - "format-icons": [ - "", - "", - "" - ] - }, - "backlight": { - // "device": "acpi_video1", - "format": "{percent}% {icon}", - "on-scroll-up": "~/.config/waybar/brightness-up.sh 1", - "on-scroll-down": "~/.config/waybar/brightness-down.sh 1", - "on-click": "~/.config/waybar/brightness-up.sh 5", - "on-click-right": "~/.config/waybar/brightness-down.sh 5", - "format-icons": [ - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - "battery": { - "states": { - // "good": 95, - "warning": 30, - "critical": 15 - }, - "format": "{capacity}% {icon}", - "format-charging": "{capacity}% ", - "format-plugged": "{capacity}% ", - "format-alt": "{time} {icon}", - // "format-good": "", // An empty format will hide the module - // "format-full": "", - "format-icons": [ - "", - "", - "", - "", - "" - ] - }, - "battery#bat2": { - "bat": "BAT2" - }, - "network": { - // "interface": "wlp2*", // (Optional) To force the use of this interface - "format-wifi": "{essid} ({signalStrength}%) ", - "format-ethernet": "{ipaddr}/{cidr} ", - "tooltip-format": "{ifname} via {gwaddr} ", - "format-linked": "{ifname} (No IP) ", - "format-disconnected": "Disconnected ⚠", - "format-alt": "{ifname}: {ipaddr}/{cidr}", - "on-click-right": "wezterm start nmtui" - }, - "pulseaudio": { - "scroll-step": 5, // %, can be a float - "format": "{volume}% {icon} {format_source}", - "format-bluetooth": "{volume}% {icon} {format_source}", - "format-bluetooth-muted": " {icon} {format_source}", - "format-muted": " {format_source}", - "format-source": " {volume}% ", - "format-source-muted": "", - "format-icons": { - "headphone": "", - "hands-free": "", - "headset": "", - "phone": "", - "portable": "", - "car": "", - "default": [ - "", - "", - "" - ] - }, - "max-volume": 200, - "on-click": "pavucontrol-qt", - "on-click-right": "pactl set-source-mute @DEFAULT_SOURCE@ toggle" - }, - "custom/media": { - "format": "{icon} {}", - "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/wl-gammarelay-temperature": { - "format": "{} ", - "exec": "wl-gammarelay-rs watch {t}", - "on-scroll-up": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateTemperature n +100", - "on-scroll-down": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateTemperature n -100", - "on-click": "busctl --user set-property rs.wl-gammarelay / rs.wl.gammarelay Temperature q 6500", - "on-click-right": "busctl --user set-property rs.wl-gammarelay / rs.wl.gammarelay Temperature q 4500" - }, - "custom/wl-gammarelay-brightness": { - "format": "{}% ", - "exec": "wl-gammarelay-rs watch {bp}", - "on-scroll-up": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateBrightness d +0.02", - "on-scroll-down": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateBrightness d -0.02", - "on-click": "busctl --user set-property rs.wl-gammarelay / rs.wl.gammarelay Brightness d 1" - }, - "custom/wl-gammarelay-gamma": { - "format": "{}% γ", - "exec": "wl-gammarelay-rs watch {g}", - "on-scroll-up": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateGamma d +0.02", - "on-scroll-down": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateGamma d -0.02", - "on-click": "busctl --user set-property rs.wl-gammarelay / rs.wl.gammarelay Gamma d 1", - "on-click-right": "busctl --user call rs.wl-gammarelay / rs.wl.gammarelay ToggleInverted" - }, - "custom/events": { - "format": "{}", - "tooltip": true, - "interval": 300, - "format-icons": { - "default": "" - }, - "exec": "~/.config/waybar/waybar-khal.py", - "return-type": "json", - "on-click": "wezterm start khal interactive" - }, - "custom/wvkbd": { - "tooltip": false, - "format": "{icon}", - "format-icons": { - "default": "" - }, - //"interval": "once", - //"exec": "if pgrep wvkbd-mobintl >/dev/null; then echo \"󰌐\"; else echo \"󰌌\"; fi", - "on-click": "if pgrep wvkbd-mobintl >/dev/null; then pkill wvkbd-mobintl; else wvkbd-mobintl --fn 'DejaVuSansMono Nerd Font 14' -l 'simple,special,emoji,arabic' -L 240; fi" - }, - "custom/notification": { - "tooltip": false, - "format": "{} {icon}", - "format-icons": { - "notification": "", - "none": "", - "dnd-notification": "", - "dnd-none": "", - "inhibited-notification": "", - "inhibited-none": "", - "dnd-inhibited-notification": "", - "dnd-inhibited-none": "" - }, - "return-type": "json", - "exec-if": "which swaync-client", - "exec": "swaync-client -swb", - "on-click": "swaync-client -t -sw", - "on-click-right": "swaync-client -d -sw", - "escape": true - } -} diff --git a/dot_config/waybar/config-old b/dot_config/waybar/config-old deleted file mode 100644 index 1a7fdb8..0000000 --- a/dot_config/waybar/config-old +++ /dev/null @@ -1,110 +0,0 @@ -{ - "layer": "top", - "position": "top", - "height": 27, - "modules-left": [ - "sway/workspaces", - "sway/window" - ], - "modules-center": [], - "modules-right": [ - "network", - "temperature", - "backlight", - "pulseaudio", - "battery", - "clock", - "tray" - ], - "sway/workspaces": { - "disable-scroll": true, - "disable-markup": true, - "format": "{index}" - }, - "sway/window": { - "format": "{}", - "max-length": 150 - }, - "tray": { - "icon-size": 18, - "spacing": 15 - }, - "clock": { - "format": "{:%a %b %e %R}", - "interval": 30 - }, - "battery": { - "bat": "BAT0", - "states": { - "full": 99, - "good": 98, - "normal": 98, - "warning": 20, - "critical": 20 - }, - "format": "{icon} {capacity}%", - "format-good": "{icon} {capacity}%", - "format-full": " {capacity}%", - "format-icons": [ - "", - "", - "", - "", - "" - ], - "interval": 30 - }, - "network": { - // "interface": "wlan0", // (Optional) To force the use of this interface, - "format-wifi": " {essid}", - "format-ethernet": "{ifname}: {ipaddr}/{cidr} ", - "format-linked": "{ifname} (No IP) ", - "format-disconnected": "", - "format-alt": "{ifname}: {ipaddr}/{cidr}", - "family": "ipv4", - "tooltip-format-wifi": " {ifname} @ {essid}\nIP: {ipaddr}\nStrength: {signalStrength}%\nFreq: {frequency}MHz\n {bandwidthUpBits}  {bandwidthDownBits}", - "tooltip-format-ethernet": " {ifname}\nIP: {ipaddr}\n {bandwidthUpBits}  {bandwidthDownBits}", - "on-click-right": "wezterm start nmtui" - }, - "temperature": { - "thermal-zone": 0, - "format": "{icon} {temperatureC}°C", - "format-icons": [ - "" - ], - "interval": 30 - }, - "backlight": { - "device": "intel_backlight", - "format": "{icon} {percent}% ", - "format-icons": [ - "", - "", - "", - "" - ], - "interval": 60 - }, - "pulseaudio": { - "scroll-step": 3, // %, can be a float - "format": "{icon} {volume}% {format_source}", - "format-bluetooth": "{volume}% {icon} {format_source}", - "format-bluetooth-muted": " {icon} {format_source}", - "format-muted": " {format_source}", - //"format-source": "{volume}% ", - //"format-source-muted": "", - "format-source": "", - "format-source-muted": "", - "format-icons": { - "headphone": "", - "hands-free": "", - "headset": "", - "phone": "", - "portable": "", - "car": "", - "default": ["", "", ""] - }, - "on-click": "pavucontrol-qt", - "on-click-right": "pactl set-source-mute @DEFAULT_SOURCE@ toggle" - }, -} \ No newline at end of file diff --git a/dot_config/waybar/config-old2 b/dot_config/waybar/config-old2 deleted file mode 100644 index 8ae0b0c..0000000 --- a/dot_config/waybar/config-old2 +++ /dev/null @@ -1,176 +0,0 @@ -{ - "layer": "top", // Waybar at top layer - "position": "top", // Waybar position (top|bottom|left|right) - // "height": 36, // Waybar height (to be removed for auto height) - // Archived modules - // "custom/gpu", "bluetooth", "custom/weather", "temperature", "sway/window" - // Choose the order of the modules - "modules-left": [ "clock", "sway/language", "custom/scratchpad-indicator", "custom/pacman", "sway/mode", "idle_inhibitor", "custom/media"], - "modules-center": ["sway/workspaces"], - "modules-right": [ "custom/cpugovernor", "cpu", "temperature", "custom/gpu", "pulseaudio", "bluetooth", "network", "tray"], - // Modules configuration - "sway/workspaces": { - "disable-scroll": true, - "all-outputs": true, - "format": "{icon}", - "format-icons": { - "1": "", - "2": "", - "3": "", - "4": "", - "urgent": "", - "focused": "", - "default": "" - } - }, - "sway/mode": { - "format": "{}" - }, - "sway/window": { - "format": "{}", - "max-length": 50, - "tooltip": false - }, - "bluetooth": { - "interval": 30, - "format": "{icon}", - // "format-alt": "{status}", - "format-icons": { - "enabled": "", - "disabled": "" - }, - "on-click": "blueberry" - }, - "sway/language": { - "format": " {}", - "max-length": 5, - "min-length": 5, - }, - "idle_inhibitor": { - "format": "{icon}", - "format-icons": { - "activated": "", - "deactivated": "" - }, - "tooltip": "true" - }, - "tray": { - //"icon-size": 11, - "spacing": 5 - }, - "clock": { - "format": " {:%H:%M  %e %b}", - "tooltip-format": "{:%Y %B}\n{calendar}", - "today-format": "{}", - "on-click": "gnome-calendar" - }, - "cpu": { - "interval": "1", - "format": " {max_frequency}GHz | {usage}%", - "max-length": 13, - "min-length": 13, - "on-click": "kitty -e htop --sort-key PERCENT_CPU", - "tooltip": false - }, - "temperature": { - //"thermal-zone": 1, - "interval": "4", - "hwmon-path": "/sys/class/hwmon/hwmon3/temp1_input", - "critical-threshold": 74, - "format-critical": " {temperatureC}°C", - "format": "{icon} {temperatureC}°C", - "format-icons": ["", "", ""], - "max-length": 7, - "min-length": 7 - }, - "network": { - // "interface": "wlan0", // (Optional) To force the use of this interface, - "format-wifi": " {essid}", - "format-ethernet": "{ifname}: {ipaddr}/{cidr} ", - "format-linked": "{ifname} (No IP) ", - "format-disconnected": "", - "format-alt": "{ifname}: {ipaddr}/{cidr}", - "family": "ipv4", - "tooltip-format-wifi": " {ifname} @ {essid}\nIP: {ipaddr}\nStrength: {signalStrength}%\nFreq: {frequency}MHz\n {bandwidthUpBits}  {bandwidthDownBits}", - "tooltip-format-ethernet": " {ifname}\nIP: {ipaddr}\n {bandwidthUpBits}  {bandwidthDownBits}" - }, - "pulseaudio": { - "scroll-step": 3, // %, can be a float - "format": "{icon} {volume}% {format_source}", - "format-bluetooth": "{volume}% {icon} {format_source}", - "format-bluetooth-muted": " {icon} {format_source}", - "format-muted": " {format_source}", - //"format-source": "{volume}% ", - //"format-source-muted": "", - "format-source": "", - "format-source-muted": "", - "format-icons": { - "headphone": "", - "hands-free": "", - "headset": "", - "phone": "", - "portable": "", - "car": "", - "default": ["", "", ""] - }, - "on-click": "pavucontrol", - "on-click-right": "pactl set-source-mute @DEFAULT_SOURCE@ toggle" - }, - "custom/pacman": { - "format": "􏆲 {}", - "interval": 3600, // every hour - "exec": "checkupdates | wc -l", // # of updates - "exec-if": "exit 0", // always run; consider advanced run conditions - "on-click": "kitty -e 'yay'; pkill -SIGRTMIN+8 waybar", // update system - "signal": 8, - "max-length": 5, - "min-length": 3 - }, - "custom/weather": { - "exec": "curl 'https://wttr.in/?format=1'", - "interval": 3600 - }, - "custom/gpu": { - "exec": "$HOME/.config/waybar/custom_modules/custom-gpu.sh", - "return-type": "json", - "format": "  {}", - "interval": 2, - "tooltip": "{tooltip}", - "max-length": 19, - "min-length": 19, - "on-click": "powerupp" - - }, - "custom/cpugovernor": { - "format": "{icon}", - "interval": "30", - "return-type": "json", - "exec": "$HOME/.config/waybar/custom_modules/cpugovernor.sh", - "min-length": 2, - "max-length": 2, - "format-icons": { - "perf": "", - "sched": "" - }, - }, - "custom/media": { - "format": "{icon} {}", - "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/scratchpad-indicator": { - "interval": 3, - "return-type": "json", - "exec": "swaymsg -t get_tree | jq --unbuffered --compact-output '( select(.name == \"root\") | .nodes[] | select(.name == \"__i3\") | .nodes[] | select(.name == \"__i3_scratch\") | .focus) as $scratch_ids | [.. | (.nodes? + .floating_nodes?) // empty | .[] | select(.id |IN($scratch_ids[]))] as $scratch_nodes | { text: \"\\($scratch_nodes | length)\", tooltip: $scratch_nodes | map(\"\\(.app_id // .window_properties.class) (\\(.id)): \\(.name)\") | join(\"\\n\") }'", - "format": "{} 􏠜", - "on-click": "exec swaymsg 'scratchpad show'", - "on-click-right": "exec swaymsg 'move scratchpad'" - } -} diff --git a/dot_config/waybar/config.jsonc b/dot_config/waybar/config.jsonc new file mode 100644 index 0000000..e7a8924 --- /dev/null +++ b/dot_config/waybar/config.jsonc @@ -0,0 +1,210 @@ +// -*- 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": 4, // Gaps between modules (4px) + // Choose the order of the modules + "modules-left": [ + "sway/workspaces", + "sway/mode", + "sway/scratchpad" + ], + "modules-center": [ + "sway/window" + ], + "modules-right": [ + "idle_inhibitor", + "pulseaudio", + "network", + "power-profiles-daemon", + "cpu", + "memory", + "temperature", + "backlight", + "sway/language", + "battery", + "clock", + "tray" + ], + // Modules configuration + // "sway/workspaces": { + // "disable-scroll": true, + // "all-outputs": true, + // "warp-on-scroll": false, + // "format": "{name}: {icon}", + // "format-icons": { + // "1": "", + // "2": "", + // "3": "", + // "4": "", + // "5": "", + // "urgent": "", + // "focused": "", + // "default": "" + // } + // }, + "keyboard-state": { + "numlock": true, + "capslock": true, + "format": "{name} {icon}", + "format-icons": { + "locked": "", + "unlocked": "" + } + }, + "sway/mode": { + "format": "{}" + }, + "sway/scratchpad": { + "format": "{icon} {count}", + "show-empty": false, + "format-icons": ["", ""], + "tooltip": true, + "tooltip-format": "{app}: {title}" + }, + "mpd": { + "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ", + "format-disconnected": "Disconnected ", + "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ", + "unknown-tag": "N/A", + "interval": 5, + "consume-icons": { + "on": " " + }, + "random-icons": { + "off": " ", + "on": " " + }, + "repeat-icons": { + "on": " " + }, + "single-icons": { + "on": "1 " + }, + "state-icons": { + "paused": "", + "playing": "" + }, + "tooltip-format": "MPD (connected)", + "tooltip-format-disconnected": "MPD (disconnected)" + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, + "tray": { + // "icon-size": 21, + "spacing": 10 + }, + "clock": { + // "timezone": "America/New_York", + "tooltip-format": "{:%Y %B}\n{calendar}", + "format-alt": "{:%Y-%m-%d}" + }, + "cpu": { + "format": "{usage}% ", + "tooltip": false + }, + "memory": { + "format": "{}% " + }, + "temperature": { + // "thermal-zone": 2, + // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", + "critical-threshold": 80, + // "format-critical": "{temperatureC}°C {icon}", + "format": "{temperatureC}°C {icon}", + "format-icons": ["", "", ""] + }, + "backlight": { + // "device": "acpi_video1", + "format": "{percent}% {icon}", + "format-icons": ["🌑", "🌘", "🌗", "🌖", "🌕"] + }, + "battery": { + "states": { + // "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{capacity}% {icon}", + "format-full": "{capacity}% {icon}", + "format-charging": "{capacity}% ", + "format-plugged": "{capacity}% ", + "format-alt": "{time} {icon}", + // "format-good": "", // An empty format will hide the module + // "format-full": "", + "format-icons": ["", "", "", "", ""] + }, + "battery#bat2": { + "bat": "BAT2" + }, + "power-profiles-daemon": { + "format": "{icon}", + "tooltip-format": "Power profile: {profile}\nDriver: {driver}", + "tooltip": true, + "format-icons": { + "default": "", + "performance": "", + "balanced": "", + "power-saver": "" + } + }, + "network": { + // "interface": "wlp2*", // (Optional) To force the use of this interface + "format-wifi": "{essid} ({signalStrength}%) ", + "format-ethernet": "{ipaddr}/{cidr} ", + "tooltip-format": "{ifname} via {gwaddr} ", + "format-linked": "{ifname} (No IP) ", + "format-disconnected": "Disconnected ⚠", + "format-alt": "{ifname}: {ipaddr}/{cidr}" + }, + "pulseaudio": { + // "scroll-step": 1, // %, can be a float + "format": "{volume}% {icon} {format_source}", + "format-bluetooth": "{volume}% {icon} {format_source}", + "format-bluetooth-muted": " {icon} {format_source}", + "format-muted": " {format_source}", + "format-source": "{volume}% ", + "format-source-muted": "", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": ["", "", ""] + }, + "on-click": "pavucontrol" + }, + "custom/media": { + "format": "{icon} {}", + "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" + } + } +} diff --git a/dot_config/waybar/executable_brightness-down.sh b/dot_config/waybar/executable_brightness-down.sh deleted file mode 100644 index 611bd22..0000000 --- a/dot_config/waybar/executable_brightness-down.sh +++ /dev/null @@ -1,2 +0,0 @@ -WERT=$1 -brightnessctl set ${WERT}%- | sed -En 's/.*\(([0-9]+)%\).*/\1/p' > /tmp/wob diff --git a/dot_config/waybar/executable_brightness-up.sh b/dot_config/waybar/executable_brightness-up.sh deleted file mode 100644 index 82b9787..0000000 --- a/dot_config/waybar/executable_brightness-up.sh +++ /dev/null @@ -1,2 +0,0 @@ -WERT=$1 -brightnessctl set +${WERT}% | sed -En 's/.*\(([0-9]+)%\).*/\1/p' > /tmp/wob diff --git a/dot_config/waybar/executable_waybar-khal-old.py b/dot_config/waybar/executable_waybar-khal-old.py deleted file mode 100644 index 7f9ff5e..0000000 --- a/dot_config/waybar/executable_waybar-khal-old.py +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env python - -import subprocess -import datetime -import json -from html import escape - -data = {} - -today = datetime.date.today().strftime("%Y-%m-%d") - -next_week = (datetime.date.today() + - datetime.timedelta(days=10)).strftime("%Y-%m-%d") - -output = subprocess.check_output("khal list now "+next_week, shell=True) -output = output.decode("utf-8") - -lines = output.split("\n") -new_lines = [] -for line in lines: - if len(line) and line[0].isalpha(): - line = "\n"+line+"" - new_lines.append(line) -output = "\n".join(new_lines).strip() - -if today in output: - data['text'] = " " + output.split('\n')[1] -else: - data['text'] = "" - -data['tooltip'] = output - -print(json.dumps(data)) diff --git a/dot_config/waybar/executable_waybar-khal.py b/dot_config/waybar/executable_waybar-khal.py deleted file mode 100644 index 1536eb6..0000000 --- a/dot_config/waybar/executable_waybar-khal.py +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env python - -import datetime -import json -import subprocess -from html import escape - -data = {} - -today = datetime.date.today().strftime("%Y-%m-%d") - -next_week = (datetime.date.today() + - datetime.timedelta(days=10)).strftime("%Y-%m-%d") - -output = subprocess.check_output("khal list now " + next_week + " --format \"{start-end-time-style} {title}\"", shell=True).decode("utf-8") - -lines = output.split("\n") -new_lines = [] -for line in lines: - clean_line = escape(line).split(" ::")[0] - if len(clean_line) and clean_line[0].isalpha(): - clean_line = "\n"+clean_line+"" - new_lines.append(clean_line) -output = "\n".join(new_lines).strip() - -if today in output: - data['text'] = " " + output.split('\n')[1] -else: - data['text'] = "" - -data['tooltip'] = output - -print(json.dumps(data)) diff --git a/dot_config/waybar/style.css b/dot_config/waybar/style.css index 2b3236f..e031037 100644 --- a/dot_config/waybar/style.css +++ b/dot_config/waybar/style.css @@ -1,270 +1,326 @@ * { - border: none; - font-family: JetBrains Mono,Ubuntu Nerd Font,Weather Icons,sans-serif; - font-size: 14px; - font-weight: bold; - min-height: 0; - } - - window#waybar { - background-color: transparent; - - } - - window > box { - background: #181818; - border-radius: 12px; - min-width: 35px; - margin: 3px; - background-clip: border-box; + font-family: 'Noto Sans Mono', 'Font Awesome 6 Free', 'Font Awesome 6 Brands', monospace; + font-size: 13px; +} + +window#waybar { + background-color: rgba(43, 48, 59, 0.5); + border-bottom: 3px solid rgba(100, 114, 125, 0.5); + color: #ffffff; transition-property: background-color; transition-duration: .5s; - box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 1px 2px 1px rgba(0, 0, 0, 0.18), 0 2px 4px 2px rgba(0, 0, 0, 0.18); - } - - #disk, - #custom-memory, - #cpu, - #custom-gputmp - #custom-uptime, - #temperature, - #custom-weather, - #cpu, #custom-gputmp { - background-color: #1f1f1f; - padding: 0 7px; - margin: 5px 0px; - } - #disk, #custom-memory { - background-color: #1f1f1f; - padding: 0 7px; - margin: 5px 0px; - } - - #disk { - color: #5dbbc1; - border-top-left-radius: 8px; - border-bottom-left-radius: 8px; - } - - #custom-memory { - color: #9841bb; - border-top-right-radius: 8px; - border-bottom-right-radius: 8px; - } - - #cpu { - color: #f5c211; - border-top-left-radius: 8px; - border-bottom-left-radius: 8px; - } - - #custom-gputmp { - color: #8FBF7F; - border-top-right-radius: 8px; - border-bottom-right-radius: 8px; - } - - #custom-uptime, #temperature, #custom-weather { - background-color: #1f1f1f; - padding: 0px 7px; - margin: 5px 0px; - } - - #custom-uptime { - color: #2ec27e; - border-top-left-radius: 8px; - border-bottom-left-radius: 8px; - } - - #temperature { - color: #9841bb; - - } - - #pulseaudio { - color: #f5c211; - background-color: #1f1f1f; - padding: 0px 8px; - margin: 5px 5px 5px 4px; - border-radius: 8px; - } - - #pulseaudio.muted { - background-color: #e06c75; - } - - #custom-kernel { - color: #51a1ff; - background-color: #1f1f1f; - padding: 0px 7px; - margin: 5px 5px 5px 5px; - border-radius: 8px; - } - - #custom-weather { - color: #5dbbc1; - border-top-right-radius: 8px; - border-bottom-right-radius: 8px; - } - - #temperature { - color: #9841bb; - } - - #temperature.critical { - background-color: #e06c75; - color: #1f1f1f; - } - - @keyframes gradient { - 0% { - background-position: 0% 50%; - } - 50% { - background-position: 100% 50%; - } - 100% { - background-position: 0% 50%; - } - } - - #workspaces{ - background-color: #1f1f1f; - border-radius: 8px; - } - - #workspaces, - #custom-media, - #custom-fans, - #clock, - #network, - #custom-power, - #mpd, - #custom-gentoo, - #custom-network, - #window, - #memory, - #battery, - #backlight, - #temperature, - #custom-wl-gammarelay-temperature, - #custom-wl-gammarelay-brightness, - #custom-wl-gammarelay-gamma, - #custom-events, - #custom-wvkbd, - #custom-notification, - #tray { - background-color: #1f1f1f; - padding: 0 7px; - margin: 5px 5px 5px 5px; - border-radius: 8px; - background-clip: padding-box; - } - - #idle_inhibitor, - #idle_inhibitor.activated, - #workspaces button { - padding: 0 6px; - min-width: 10px; - color: #51a1ff; - } - - #custom-network { - color: #e06c75; - background-color: #1f1f1f; - - } - - #custom-dunst { - color: #9841bb; - } - - #custom-dot{ - color: #38384d; - font-size: 15px; +} + +window#waybar.hidden { + opacity: 0.2; +} + +/* +window#waybar.empty { background-color: transparent; - } - - #custom-dot2{ - color: #38384d; - font-size: 15px; +} +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; +} + +/* you can set a style on hover for any module like this */ +#pulseaudio:hover { + background-color: #a37800; +} + +#workspaces button { + padding: 0 5px; background-color: transparent; - } - - #custom-dot3{ - color: #38384d; - font-size: 15px; - background-color: transparent; - } - - #workspaces button:hover { - background-color: rgba(0, 0, 0, 0.2); - } - - #workspaces button.active { - color: #9841bb; - - } - - #workspaces button.focused { - color: #9841bb; - } - - #workspaces button.urgent { - color: #e06c75; - } - - #memory { - color: #9841bb; - } - - #custom-media { - background-color: #9841bb; - color: #1f1f1f; - } - - #custom-fans { - color: #e06c75; - } - - #clock { - color: #51a1ff; - } - - #mode { - color: #0fa4bf; - } - - #window { - color: #c0bfbc; - background-color: transparent; - } - - #custom-power { - color: #f65866; - background-color: #1f1f1f; - } - - #custom-gentoo { - font-size: 15px; - color: #9841bb; - background-color: transparent; - } - - @keyframes blink { - to { - background-color: #1f1f1f; - color: #e06c75; - } - } - - #network { - color: #9841bb - } - - #network.disconnected { - background-color: #e06c75; - color: #1f1f1f; - } - - \ No newline at end of file + color: #ffffff; +} + +#workspaces button:hover { + background: rgba(0, 0, 0, 0.2); +} + +#workspaces button.focused { + background-color: #64727D; + box-shadow: inset 0 -3px #ffffff; +} + +#workspaces 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: 0 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; +} + +#clock { + background-color: #64727D; +} + +#battery { + background-color: #ffffff; + color: #000000; +} + +#battery.charging, #battery.plugged { + color: #ffffff; + background-color: #26A65B; +} + +@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; +} + +#power-profiles-daemon { + padding-right: 15px; +} + +#power-profiles-daemon.performance { + background-color: #f53c3c; + color: #ffffff; +} + +#power-profiles-daemon.balanced { + background-color: #2980b9; + color: #ffffff; +} + +#power-profiles-daemon.power-saver { + background-color: #2ecc71; + color: #000000; +} + +label:focus { + background-color: #000000; +} + +#cpu { + background-color: #2ecc71; + color: #000000; +} + +#memory { + background-color: #9b59b6; +} + +#disk { + background-color: #964B00; +} + +#backlight { + background-color: #90b1b1; +} + +#network { + background-color: #2980b9; +} + +#network.disconnected { + background-color: #f53c3c; +} + +#pulseaudio { + background-color: #f1c40f; + color: #000000; +} + +#pulseaudio.muted { + background-color: #90b1b1; + color: #2a5c45; +} + +#wireplumber { + background-color: #fff0f5; + color: #000000; +} + +#wireplumber.muted { + background-color: #f53c3c; +} + +#custom-media { + background-color: #66cc99; + color: #2a5c45; + min-width: 100px; +} + +#custom-media.custom-spotify { + background-color: #66cc99; +} + +#custom-media.custom-vlc { + background-color: #ffa000; +} + +#temperature { + background-color: #f0932b; +} + +#temperature.critical { + background-color: #eb4d4b; +} + +#tray { + background-color: #2980b9; +} + +#tray > .passive { + -gtk-icon-effect: dim; +} + +#tray > .needs-attention { + -gtk-icon-effect: highlight; + background-color: #eb4d4b; +} + +#idle_inhibitor { + background-color: #2d3436; +} + +#idle_inhibitor.activated { + background-color: #ecf0f1; + color: #2d3436; +} + +#mpd { + background-color: #66cc99; + color: #2a5c45; +} + +#mpd.disconnected { + background-color: #f53c3c; +} + +#mpd.stopped { + background-color: #90b1b1; +} + +#mpd.paused { + background-color: #51a37a; +} + +#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; +} diff --git a/dot_config/waybar/style.css-old b/dot_config/waybar/style.css-old deleted file mode 100644 index dfb070d..0000000 --- a/dot_config/waybar/style.css-old +++ /dev/null @@ -1,102 +0,0 @@ -* { - font-family: "Hack Nerd Font"; - font-size: 16px; -} - - -window#waybar { - background-color: #225877; - color: #ffffff; -} - - -.modules-left { - background-color: #323232; - padding: 0px 0px 0px 0px; -} - - -.modules-right { - background-color: #323232; - padding: 0px 5px 0px 0px; -} - - -#custom-scratch { - background-color: #323232; - color: #b8b8b8; - padding: 0px 9px 0px 9px; -} - - -#workspaces {} - - -#workspaces button { - padding: 0px 11px 0px 11px; - min-width: 1px; - color: #888888; -} - - -#workspaces button.focused { - padding: 0px 11px 0px 11px; - background-color: #285577; - color: #ffffff; -} - - -#mode { - background-color: #900000; - color: #ffffff; - padding: 0px 5px 0px 5px; - border: 1px solid #2f343a; -} - - -#window { - color: #ffffff; - background-color: #285577; - padding: 0px 10px 0px 10px; -} - - -window#waybar.empty #window { - background-color: transparent; - color: transparent; -} - - -window#waybar.empty { - background-color: #323232; -} - - -#network, -#temperature, -#backlight, -#pulseudio, -#battery { - padding: 0px 15px 0px 15px; -} - - -#clock { - margin: 0px 15px 0px 15px; -} - - -#tray { - padding: 0px 8px 0px 5px; - margin: 0px 5px 0px 5px; -} - - -#battery.critical { - color: #ff5555; -} - - -#network.disconnected { - color: #ff5555; -} \ No newline at end of file diff --git a/dot_config/waybar/style.css-old2 b/dot_config/waybar/style.css-old2 deleted file mode 100644 index 6b943e5..0000000 --- a/dot_config/waybar/style.css-old2 +++ /dev/null @@ -1,296 +0,0 @@ - -@keyframes blink-warning { - 70% { - color: @light; - } - - to { - color: @light; - background-color: @warning; - } -} - -@keyframes blink-critical { - 70% { - color: @light; - } - - to { - color: @light; - background-color: @critical; - } -} - - -/* ----------------------------------------------------------------------------- - * Styles - * -------------------------------------------------------------------------- */ - -/* COLORS */ - -/* Nord */ -@define-color bg #2E3440; -/*@define-color bg #353C4A;*/ -@define-color light #D8DEE9; -/*@define-color dark @nord_dark_font;*/ -@define-color warning #ebcb8b; -@define-color critical #BF616A; -@define-color mode #434C5E; -/*@define-color workspaces @bg;*/ -/*@define-color workspaces @nord_dark_font;*/ -/*@define-color workspacesfocused #434C5E;*/ -@define-color workspacesfocused #4C566A; -@define-color tray @workspacesfocused; -@define-color sound #EBCB8B; -@define-color network #5D7096; -@define-color memory #546484; -@define-color cpu #596A8D; -@define-color temp #4D5C78; -@define-color layout #5e81ac; -@define-color battery #88c0d0; -@define-color date #434C5E; -@define-color time #434C5E; -@define-color backlight #434C5E; -@define-color nord_bg #434C5E; -@define-color nord_bg_blue #546484; -@define-color nord_light #D8DEE9; -@define-color nord_light_font #D8DEE9; -@define-color nord_dark_font #434C5E; - -/* Reset all styles */ -* { - border: none; - border-radius: 3px; - min-height: 0; - margin: 0.2em 0.3em 0.2em 0.3em; -} - -/* The whole bar */ -#waybar { - background: @bg; - color: @light; - font-family: "Cantarell", "Font Awesome 5 Pro"; - font-size: 12px; - font-weight: bold; -} - -/* Each module */ -#battery, -#clock, -#cpu, -#custom-layout, -#memory, -#mode, -#network, -#pulseaudio, -#temperature, -#custom-alsa, -#custom-pacman, -#custom-weather, -#custom-gpu, -#tray, -#backlight, -#language, -#custom-cpugovernor { - padding-left: 0.6em; - padding-right: 0.6em; -} - -/* Each module that should blink */ -#mode, -#memory, -#temperature, -#battery { - animation-timing-function: linear; - animation-iteration-count: infinite; - animation-direction: alternate; -} - -/* Each critical module */ -#memory.critical, -#cpu.critical, -#temperature.critical, -#battery.critical { - color: @critical; -} - -/* Each critical that should blink */ -#mode, -#memory.critical, -#temperature.critical, -#battery.critical.discharging { - animation-name: blink-critical; - animation-duration: 2s; -} - -/* Each warning */ -#network.disconnected, -#memory.warning, -#cpu.warning, -#temperature.warning, -#battery.warning { - background: @warning; - color: @nord_dark_font; -} - -/* Each warning that should blink */ -#battery.warning.discharging { - animation-name: blink-warning; - animation-duration: 3s; -} - -/* And now modules themselves in their respective order */ - -#mode { /* Shown current Sway mode (resize etc.) */ - color: @light; - background: @mode; -} - -/* Workspaces stuff */ - -#workspaces { - /* color: #D8DEE9; - margin-right: 10px;*/ -} - -#workspaces button { - font-weight: bold; /* Somewhy the bar-wide setting is ignored*/ - padding: 0; - /*color: #999;*/ - opacity: 0.3; - background: none; - font-size: 1em; -} - -#workspaces button.focused { - background: @workspacesfocused; - color: #D8DEE9; - opacity: 1; - padding: 0 0.4em; -} - -#workspaces button.urgent { - border-color: #c9545d; - color: #c9545d; - opacity: 1; -} - -#window { - margin-right: 40px; - margin-left: 40px; - font-weight: normal; -} -#bluetooth { - background: @nord_bg_blue; - font-size: 1.2em; - font-weight: bold; - padding: 0 0.6em; -} -#custom-gpu { - background: @nord_bg; - font-weight: bold; - padding: 0 0.6em; -} -#custom-weather { - background: @mode; - font-weight: bold; - padding: 0 0.6em; -} -#custom-pacman { - background: @nord_light; - color: @nord_dark_font; - font-weight: bold; - padding: 0 0.6em; -} -#custom-scratchpad-indicator { - background: @nord_light; - color: @nord_dark_font; - font-weight: bold; - padding: 0 0.6em; -} -#idle_inhibitor { - background: @mode; - /*font-size: 1.6em;*/ - font-weight: bold; - padding: 0 0.6em; -} -#custom-alsa { - background: @sound; -} - -#network { - background: @nord_bg_blue; -} - -#memory { - background: @memory; -} - -#cpu { - background: @nord_bg; - color: #D8DEE9; -} -#cpu.critical { - color: @nord_dark_font; -} -#language { - background: @nord_bg_blue; - color: #D8DEE9; - padding: 0 0.4em; -} -#custom-cpugovernor { - background-color: @nord_light; - color: @nord_dark_font; -} -#custom-cpugovernor.perf { - -} -#temperature { - background-color: @nord_bg; - color: #D8DEE9; -} -#temperature.critical { - background: @critical; -} -#custom-layout { - background: @layout; -} - -#battery { - background: @battery; -} - -#backlight { - background: @backlight; -} - -#clock { - background: @nord_bg_blue; - color: #D8DEE9; -} -#clock.date { - background: @date; -} - -#clock.time { - background: @mode; -} - -#pulseaudio { /* Unsused but kept for those who needs it */ - background: @nord_bg_blue; - color: #D8DEE9; -} - -#pulseaudio.muted { - background: #BF616A; - color: #BF616A; - /* No styles */ -} -#pulseaudio.source-muted { - background: #D08770; - color: #D8DEE9; - /* No styles */ -} -#tray { - background: #434C5E; -} diff --git a/dot_config/waybar/style.css-old3 b/dot_config/waybar/style.css-old3 deleted file mode 100644 index 8320ebd..0000000 --- a/dot_config/waybar/style.css-old3 +++ /dev/null @@ -1,298 +0,0 @@ -* { - /* `otf-font-awesome` is required to be installed for icons */ - font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif; - font-size: 13px; -} - -window#waybar { - background-color: rgba(43, 48, 59, 0.5); - border-bottom: 3px solid rgba(100, 114, 125, 0.5); - color: #ffffff; - transition-property: background-color; - transition-duration: .5s; -} - -window#waybar.hidden { - opacity: 0.2; -} - -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; -} - -#workspaces button { - padding: 0 5px; - background-color: transparent; - color: #ffffff; -} - -#workspaces button:hover { - background: rgba(0, 0, 0, 0.2); -} - -#workspaces button.focused { - background-color: #64727D; - box-shadow: inset 0 -3px #ffffff; -} - -#workspaces button.urgent { - background-color: #eb4d4b; -} - -#mode { - background-color: #64727D; - border-bottom: 3px solid #ffffff; -} - -#clock, -#battery, -#cpu, -#memory, -#disk, -#temperature, -#backlight, -#network, -#pulseaudio, -#wireplumber, -#custom-media, -#tray, -#mode, -#idle_inhibitor, -#scratchpad, -#custom-wl-gammarelay-temperature, -#custom-wl-gammarelay-brightness, -#custom-wl-gammarelay-gamma, -#custom-events, -#custom-wvkbd, -#custom-notification, -#mpd { - padding: 0 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; -} - -#clock { - background-color: #64727D; -} - -#battery { - background-color: #ffffff; - color: #000000; -} - -#battery.charging, #battery.plugged { - color: #ffffff; - background-color: #26A65B; -} - -@keyframes blink { - to { - background-color: #ffffff; - color: #000000; - } -} - -#battery.critical:not(.charging) { - background-color: #f53c3c; - color: #ffffff; - animation-name: blink; - animation-duration: 0.5s; - animation-timing-function: linear; - animation-iteration-count: infinite; - animation-direction: alternate; -} - -label:focus { - background-color: #000000; -} - -#cpu { - background-color: #2ecc71; - color: #000000; -} - -#memory { - background-color: #9b59b6; -} - -#disk { - background-color: #964B00; -} - -#custom-wl-gammarelay-temperature, -#custom-wl-gammarelay-brightness, -#custom-wl-gammarelay-gamma, -#backlight { - background-color: #90b1b1; -} - -#custom-wvkbd, -#custom-notification { - background-color: #2980b9; -} - -#network { - background-color: #2980b9; -} - -#network.disconnected { - background-color: #f53c3c; -} - -#custom-events, -#pulseaudio { - background-color: #f1c40f; - color: #000000; -} - -#pulseaudio.muted { - background-color: #90b1b1; - color: #2a5c45; -} - -#wireplumber { - background-color: #fff0f5; - color: #000000; -} - -#wireplumber.muted { - background-color: #f53c3c; -} - -#custom-media { - background-color: #66cc99; - color: #2a5c45; - min-width: 100px; -} - -#custom-media.custom-spotify { - background-color: #66cc99; -} - -#custom-media.custom-vlc { - background-color: #ffa000; -} - -#temperature { - background-color: #f0932b; -} - -#temperature.critical { - background-color: #eb4d4b; -} - -#tray { - background-color: #2980b9; -} - -#tray > .passive { - -gtk-icon-effect: dim; -} - -#tray > .needs-attention { - -gtk-icon-effect: highlight; - background-color: #eb4d4b; -} - -#idle_inhibitor { - background-color: #2d3436; -} - -#idle_inhibitor.activated { - background-color: #ecf0f1; - color: #2d3436; -} - -#mpd { - background-color: #66cc99; - color: #2a5c45; -} - -#mpd.disconnected { - background-color: #f53c3c; -} - -#mpd.stopped { - background-color: #90b1b1; -} - -#mpd.paused { - background-color: #51a37a; -} - -#language { - background: #00b093; - color: #740864; - padding: 0 5px; - margin: 0 0px; - min-width: 16px; -} - -#keyboard-state { - background: #97e1ad; - color: #000000; - padding: 0 0px; - margin: 0 0px; - 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; -}