remove waybar from sway and from dotfiles

This commit is contained in:
Bartal Laearsson
2026-08-04 09:07:17 +01:00
parent 3dff0a83af
commit d66c2ed51a
8 changed files with 0 additions and 180 deletions
-1
View File
@@ -121,4 +121,3 @@ exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSO
exec /usr/libexec/lxqt-policykit-agent
exec nm-applet --indicator
exec mako
exec ~/.config/waybar/launch.sh
-44
View File
@@ -1,44 +0,0 @@
{
"layer": "top",
"position": "top",
"height": 34,
"margin-top": 8,
"margin-left": 0,
"margin-right": 0,
"modules-left": ["sway/workspaces", "sway/window"],
"modules-center": ["clock"],
"modules-right": ["pulseaudio", "network", "battery", "tray"],
"sway/workspaces": {
"all-outputs": true,
"disable-scroll": true,
"format": "{name}"
},
"sway/window": {
"max-length": 40
},
"clock": {
"format": "{:%a %b %d %I:%M %p}"
},
"battery": {
"format": "{capacity}%"
},
"network": {
"format-wifi": "wifi {essid}",
"format-ethernet": "wired",
"format-disconnected": "offline",
"on-click": "nm-connection-editor"
},
"pulseaudio": {
"format": "vol {volume}%",
"format-muted": "muted",
"on-click": "pavucontrol"
}
}
-46
View File
@@ -1,46 +0,0 @@
{
"layer": "top",
"position": "top",
"height": 34,
"margin-top": 8,
"margin-left": 240,
"margin-right": 240,
"modules-left": [
"sway/workspaces",
"sway/window"
],
"modules-center": [
"clock"
],
"modules-right": [
"pulseaudio",
"network",
"battery",
"tray"
],
"sway/workspaces": {
"all-outputs": true,
"disable-scroll": true,
"format": "{name}"
},
"sway/window": {
"max-length": 40
},
"clock": {
"format": "{:%a %b %d %I:%M %p}"
},
"battery": {
"format": "{capacity}%"
},
"network": {
"format-wifi": "wifi {essid}",
"format-ethernet": "wired",
"format-disconnected": "offline",
"on-click": "nm-connection-editor"
},
"pulseaudio": {
"format": "vol {volume}%",
"format-muted": "muted",
"on-click": "pavucontrol"
}
}
-21
View File
@@ -1,21 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
config_dir="${XDG_CONFIG_HOME:-$HOME/.config}/waybar"
base_config="$config_dir/config"
runtime_config="$config_dir/config.runtime"
width=$(swaymsg -r -t get_outputs | jq -r '[.[] | select(.focused)][0] // .[0] // {rect: {width: 1440}} | .rect.width // 1440')
if ! [[ "$width" =~ ^[0-9]+$ ]] || (( width == 0 )); then
width=1440
fi
margin=$((width * 125 / 1000))
jq --argjson margin "$margin" '
.["margin-left"] = $margin
| .["margin-right"] = $margin
' "$base_config" > "$runtime_config"
exec waybar -c "$runtime_config"
-49
View File
@@ -1,49 +0,0 @@
@import "themes/current.css";
* {
font-family: "DejaVu Sans Mono", monospace;
font-size: 13px;
border: none;
border-radius: 10px;
}
window#waybar {
background: @bar-bg;
color: @text;
border-radius: 18px;
border: 1px solid @border;
}
window#waybar > box {
padding: 0 4px;
}
#workspaces label {
padding: 0 10px;
margin: 5px 3px;
color: @text;
background: transparent;
}
#workspaces .active {
background: @accent;
color: @accent-fg;
}
#window {
padding: 0 12px;
margin: 5px 4px;
background: @accent;
color: @accent-fg;
font-weight: bold;
}
#clock,
#battery,
#network,
#pulseaudio,
#tray {
padding: 0 12px;
margin: 5px 4px;
background: @module-bg;
}
-7
View File
@@ -1,7 +0,0 @@
@define-color bar-bg rgba(17, 17, 27, 0.82);
@define-color module-bg rgba(49, 50, 68, 0.85);
@define-color border rgba(203, 166, 247, 0.35);
@define-color text #cdd6f4;
@define-color accent #cba6f7;
@define-color accent-fg #11111b;
-6
View File
@@ -1,6 +0,0 @@
@define-color bar-bg rgba(17, 17, 27, 0.82);
@define-color module-bg rgba(49, 50, 68, 0.85);
@define-color border rgba(203, 166, 247, 0.35);
@define-color text #cdd6f4;
@define-color accent #cba6f7;
@define-color accent-fg #11111b;
-6
View File
@@ -1,6 +0,0 @@
@define-color bar-bg rgba(249, 245, 215, 0.88);
@define-color module-bg rgba(235, 219, 178, 0.86);
@define-color border rgba(181, 118, 20, 0.35);
@define-color text #3c3836;
@define-color accent #b57614;
@define-color accent-fg #f9f5d7;