diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-11-26 12:51:13 +0100 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-11-26 12:51:13 +0100 | 
| commit | c637bf905bdaa5b3310f1eb293f40d785164fc3c (patch) | |
| tree | cff60edd99e096bef2989cb3c21865ca8d02f354 | |
| parent | 78d0fc01dfea453d1c23649f6353bd4ee5a8f2a1 (diff) | |
changed waybar theme to dwm
| -rw-r--r-- | config/wayland/waybar/config.jsonc | 82 | ||||
| -rwxr-xr-x | config/wayland/waybar/status.sh | 2 | ||||
| -rw-r--r-- | config/wayland/waybar/style.css | 138 | 
3 files changed, 20 insertions, 202 deletions
| diff --git a/config/wayland/waybar/config.jsonc b/config/wayland/waybar/config.jsonc index 9d60915..aa93297 100644 --- a/config/wayland/waybar/config.jsonc +++ b/config/wayland/waybar/config.jsonc @@ -1,78 +1,16 @@  { -	"layer": "top", -	"modules-left": ["battery", "hyprland/workspaces", "mpd", "hyprland/window"], -	"modules-center": ["clock"], -	"modules-right": ["custom/wireguard", "network", "pulseaudio", "temperature", "cpu", "custom/memory", "custom/bluetooth", "tray"], -	"mpd": { -		"format": "{artist} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S})", -		"artist-len": 24, -		"format-disconnected": "s", -		"format-stopped": "", -		"state-icons": { -			"playing": "", -			"paused": "", -		}, -		"tooltip-format": "{songPosition}/{queueLength} ({volume}%)", -		"on-click": "mpc toggle", -		"on-scroll-up": "mpc volume +5", -		"on-scroll-down": "mpc volume -5", -	}, -	"battery": { -		"format-charging": " {capacity}%", -		"on-click": "mpower", -		"interval": 10, -	}, +	"modules-left": ["hyprland/workspaces", "custom/layout", "hyprland/window"], +	"modules-right": ["custom/status"],  	"hyprland/window": { -		"format": " {}", -		"separate-outputs": true, -	}, -	"pulseaudio": { -		"scroll-step": 1, -		"format": "{icon} {volume:3}%", -		"format-icons": { -			"default": ["", "", ""] -		}, -		"on-click": "pavucontrol", -	}, -	"temperature": { -		"interval": 3, -		"format": "{icon} {temperatureC}°C", -		"format-icons": { -			"default":["", "", "", "", ""] -		}, -	}, -	"custom/wireguard": { -		"exec": "ip addr show dev wg0", -		"format": "wg0", -		"restart-interval": 3, -	}, -	"network": { -		"format-wifi": " ", -		"tooltip-format-wifi": "{ifname} {essid}", -		"format-ethernet": "", -		"tooltip-format-ethernet": "{ifname} {ipaddr}", -		"format-disconnected": "", -	}, -	"cpu": { -		"format": " {usage:2}%", -		"interval": 3, -	}, -	"custom/memory": { -		"exec": "free -h | awk '(NR==2){ print $3 }'", -		"format": "{}", -		"restart-interval": 3, -	}, -	"clock": { -		"format": "{:%R}", -		"format-alt": "{:(%T) %A %d %B}", -		"interval": 1, +		"format": " {} "  	}, -	"custom/bluetooth": { -		"exec": "bluetoothctl info", -		"format": "", -		"interval": 3, +	"custom/layout": {  +		"format": " []= ", +		"interval": "once",  	}, -	"tray": { -		"spacing": 5, +	"custom/status": {  +		"exec": "~/.config/waybar/status.sh", +		"format": " {} ", +		"interval": 1  	}  } diff --git a/config/wayland/waybar/status.sh b/config/wayland/waybar/status.sh new file mode 100755 index 0000000..6d5bd66 --- /dev/null +++ b/config/wayland/waybar/status.sh @@ -0,0 +1,2 @@ +#!/bin/sh +printf '%s' "$(date '+%-d %b %R')" diff --git a/config/wayland/waybar/style.css b/config/wayland/waybar/style.css index 3b7b7f6..31eacf0 100644 --- a/config/wayland/waybar/style.css +++ b/config/wayland/waybar/style.css @@ -1,142 +1,20 @@ -/* - ******************************************** - *░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░* - *░░█▀█░█░░░█░█░█▀▀░░░█░█░█░░░▀█▀░█▀▄░█▀█░░* - *░░█▀▀░█░░░█░█░▀▀█░░░█░█░█░░░░█░░█▀▄░█▀█░░* - *░░▀░░░▀▀▀░▀▀▀░▀▀▀░░░▀▀▀░▀▀▀░░▀░░▀░▀░▀░▀░░* - *░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░* - ******************************************** - */ -/* https://github.com/jakehamilton/dotfiles */ -/* Amazing I love it :))) */ -  * {  	border: none;  	border-radius: 0; -	font-family: JetBrains Mono; -	font-weight: bold; +	font-family: monospace;  	font-size: 14px; -	min-height: 24px; -} - -window#waybar { -	background: transparent; -} - -window#waybar.hidden { -	opacity: 0.2; -} - -window#waybar.termite #window, -window#waybar.Firefox #window, -window#waybar.Navigator #window, -window#waybar.PCSX2 #window { -    color: #2e3440; -	background: #e6e6e6; -} - -#mpd, #battery, -#network, #pulseaudio, #temperature, #cpu, #custom-memory { -	margin-left: 8px; -	padding-left: 16px; -	padding-right: 16px; -} - -#workspaces, #mpd, #battery, -#network, #pulseaudio, #temperature, #cpu, #custom-memory, #workspaces, #clock, #tray { -	margin-top: 4px; -	margin-bottom: 2px; -	transition: none; -	border-radius: 6px; +	min-height: 16px;  } -#battery { -	color: #b48ead; -	background: #4c566a; +window#waybar, #workspaces button.active  { +	background-color: #4c566a;  } -#workspaces { -	margin-left: 12px; -	background: #2e3440; +#workspaces button, #custom-layout, #custom-status { +	background-color: #2e3440;  }  #workspaces button { -	transition: none; -	color: #d8dee9; -	background: transparent; -	font-size: 16px; -} - -#workspaces button.active { -	color: #a3be8c; -    text-shadow: 0px 0px 1px #a3be8c; -} - -#workspaces button:hover { -	transition: none; -	color: #d08770; -} - -#mpd { -	color: #2e3440; -	background: #88c0d0; -} - -#mpd.disconnected, -#mpd.stopped { -	color: #d8dee9; -	background: #2e3440; -} - -#window { -	color: #88c0d0; -} - -#network { -	color: #2e3440; -	background: #5e81ac; -} - -#pulseaudio { -	color: #2e3440; -	background: #b48ead; -} - -#temperature { -	color: #2e3440; -	background: #d08770; -} - -#cpu { -	color: #2e3440; -	background: #ebcb8b; -} - -#custom-memory { -	color: #2e3440; -	background: #a3be8c; -} - -#clock { -	margin-left: 8px; -	margin-right: 12px; -	padding-left: 16px; -	padding-right: 16px; -	color: #d8dee9; -	background: #2e3440; -} - -#tray { -	margin-right: 12px; -	color: #d8dee9; -	background: transparent; -} - -#tray > .needs-attention { -    -gtk-icon-effect: highlight; -    background-color: #bf616a; -} - -#tray > .passive { -    -gtk-icon-effect: dim; +	padding: 0 2px; +	margin: 0;  } | 
