aboutsummaryrefslogtreecommitdiff
path: root/linux/waybar
diff options
context:
space:
mode:
authorjakobst1n <jakob.stendahl@outlook.com>2024-02-02 17:17:56 +0100
committerjakobst1n <jakob.stendahl@outlook.com>2024-02-02 17:17:56 +0100
commite1b6d486dbde35f4377a077babfac9236c8a446f (patch)
tree0ab5bb6439322bcfa4d87c73ede67cc125c1479b /linux/waybar
parent23bd6ccdd2c7e32be30cfd172c0c769755b53884 (diff)
downloaddotfiles-e1b6d486dbde35f4377a077babfac9236c8a446f.tar.gz
dotfiles-e1b6d486dbde35f4377a077babfac9236c8a446f.zip
neovim and waybar things
Diffstat (limited to 'linux/waybar')
-rw-r--r--linux/waybar/config82
-rw-r--r--linux/waybar/style.segmented.css18
2 files changed, 66 insertions, 34 deletions
diff --git a/linux/waybar/config b/linux/waybar/config
index 1f720dd..8a53674 100644
--- a/linux/waybar/config
+++ b/linux/waybar/config
@@ -1,14 +1,37 @@
{
// "layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
- //"height": 0, // Waybar height (to be removed for auto height)
+ // "height": 0, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
"spacing": 0, // Gaps between modules (4px)
- // Choose the order of the modules
- "modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad", "custom/media"],
- "modules-center": ["clock"],
- "modules-right": ["temperature", "mpd", "cpu", "memory", "idle_inhibitor", "sway/language", "pulseaudio", "battery", "battery#bat2", "tray"],
- // Modules configuration
+
+ "modules-left": [
+ "sway/workspaces",
+ "sway/mode",
+ "sway/scratchpad"
+ ],
+
+ "modules-center": [
+ "clock",
+ "privacy",
+ ],
+
+ //"modules-right": ["temperature", "mpd", "cpu", "memory", "idle_inhibitor", "", "sway/language", "pulseaudio", "battery", "battery#bat2", "tray"],
+ "modules-right": [
+ "temperature",
+ "mpd",
+ "cpu",
+ "memory",
+ "idle_inhibitor",
+ "custom/notification",
+ "pulseaudio",
+ "battery",
+ "battery#bat2",
+ "tray"
+ ],
+
+
+
"sway/workspaces": {
//"disable-scroll": true,
//"all-outputs": true,
@@ -33,6 +56,24 @@
"unlocked": ""
}
},
+ "privacy": {
+ "icon-spacing": 4,
+ "transition-duration": 250,
+ "modules": [
+ {
+ "type": "screenshare",
+ "tooltip": true,
+ },
+ {
+ "type": "audio-out",
+ "tooltip": true,
+ },
+ {
+ "type": "audio-in",
+ "tooltip": true,
+ },
+ ]
+ },
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
@@ -83,7 +124,8 @@
"clock": {
// "timezone": "America/New_York",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
- "format-alt": "{:%Y-%m-%d}"
+ "format-alt": "{:%H:%M}",
+ "format": "{:%H:%M (%d/%m/%Y)}",
},
"cpu": {
"format-critical": " {usage}%",
@@ -161,17 +203,25 @@
},
"on-click": "pavucontrol"
},
- "custom/media": {
- "format": "{icon} {}",
- "return-type": "json",
- "max-length": 40,
+ "custom/notification": {
+ "tooltip": false,
+ "format": "{icon}",
"format-icons": {
- "spotify": "",
- "default": "🎜"
+ "notification": "<span foreground='red'><sup></sup></span>",
+ "none": "",
+ "dnd-notification": "<span foreground='red'><sup></sup></span>",
+ "dnd-none": "",
+ "inhibited-notification": "<span foreground='red'><sup></sup></span>",
+ "inhibited-none": "",
+ "dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
+ "dnd-inhibited-none": ""
},
- "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
+ "return-type": "json",
+ "exec-if": "which swaync-client",
+ "exec": "swaync-client -swb",
+ "on-click": "sleep 0.1 && swaync-client -t -sw",
+ "on-click-right": "sleep 0.1 && swaync-client -d -sw",
+ "escape": true
}
}
diff --git a/linux/waybar/style.segmented.css b/linux/waybar/style.segmented.css
index 9d994ca..0d0af78 100644
--- a/linux/waybar/style.segmented.css
+++ b/linux/waybar/style.segmented.css
@@ -20,24 +20,6 @@ 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;
-}
-
#workspaces button {
padding: 0 5px;
padding-top: 4px;