mirror of
https://github.com/avinal/dotfiles.git
synced 2026-07-03 23:20:07 +05:30
move waybar to the left
- make waybar text only - rearrange all the modules - add sticky float to the picture in picture - remove name from zellij editor pane - add dnd mode Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
[window]
|
||||
padding = { x = 7, y = 7 }
|
||||
padding = { x = 3, y = 3 }
|
||||
dynamic_padding = true
|
||||
decorations = "None"
|
||||
|
||||
[font]
|
||||
normal = { family = "Monaspace Argon", style = "Regular" }
|
||||
|
||||
+4
-3
@@ -31,11 +31,11 @@ set $menu $rofi_cmd -show combi -combi-modes drun#run -modes combi
|
||||
#
|
||||
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
||||
# Requires: desktop-backgrounds-compat, swaybg
|
||||
output * bg /usr/share/backgrounds/default.png fill
|
||||
output * bg /usr/share/backgrounds/zenitsu.jpg fill
|
||||
|
||||
for_window [window_type="dialog"] floating enable
|
||||
for_window [window_role="dialog"] floating enable
|
||||
for_window [app_id="firefox" title="Picture-in-Picture$"] floating enable
|
||||
for_window [app_id="firefox" title="Picture-in-Picture$"] floating enable sticky enable
|
||||
for_window [app_id="com.github.hluk.copyq"] floating enable
|
||||
#
|
||||
# Example configuration:
|
||||
@@ -54,8 +54,8 @@ for_window [app_id="com.github.hluk.copyq"] floating enable
|
||||
font pango:'Monaspace Argon' Regular 11
|
||||
# titlebar_padding 1
|
||||
# titlebar_border_thickness 0
|
||||
# gaps outer 4
|
||||
# gaps inner 4
|
||||
# gaps outer 7
|
||||
### Idle configuration
|
||||
#
|
||||
# Example configuration:
|
||||
@@ -181,6 +181,7 @@ input type:keyboard {
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
bindsym $mod+Shift+s sticky toggle
|
||||
|
||||
# Make the current focus fullscreen
|
||||
bindsym $mod+f fullscreen
|
||||
|
||||
@@ -1,168 +0,0 @@
|
||||
{
|
||||
// "layer": "top", // Waybar at top layer
|
||||
"position": "bottom", // Waybar position (top|bottom|left|right)
|
||||
"height": 35, // Waybar height (to be removed for auto height)
|
||||
// "width": 1280, // Waybar width
|
||||
"border": "5px solid transparent",
|
||||
"spacing": 4, // Gaps between modules (4px)
|
||||
// Choose the order of the modules
|
||||
"modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad", "custom/media"],
|
||||
"modules-center": ["sway/window"],
|
||||
"modules-right": ["mpd", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "battery", "battery#bat2", "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": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
"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": "<span color=\"#f53c3c\"></span> ",
|
||||
"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": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"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-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}"
|
||||
},
|
||||
"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
|
||||
}
|
||||
}
|
||||
|
||||
+168
-168
@@ -1,35 +1,63 @@
|
||||
{
|
||||
// "layer": "top", // Waybar at top layer
|
||||
"position": "bottom", // Waybar position (top|bottom|left|right)
|
||||
"height": 40, // Waybar height (to be removed for auto height)
|
||||
// "width": 1280, // Waybar width
|
||||
"layer": "top", // Waybar at top layer
|
||||
"position": "left", // Waybar position (top|bottom|left|right)
|
||||
// "height": 40, // Waybar height (to be removed for auto height)
|
||||
"width": 20, // Waybar width
|
||||
"spacing": 4, // Gaps between modules (4px)
|
||||
"mode": "dock",
|
||||
"fixed-center": false,
|
||||
// Choose the order of the modules
|
||||
"modules-left": [
|
||||
"cpu",
|
||||
"memory",
|
||||
"temperature",
|
||||
"custom/wakatime",
|
||||
"network",
|
||||
"sway/workspaces",
|
||||
"sway/mode",
|
||||
"sway/scratchpad",
|
||||
"custom/media"
|
||||
],
|
||||
"modules-center": [
|
||||
"sway/workspaces",
|
||||
"clock",
|
||||
"custom/weather"
|
||||
"sway/window",
|
||||
"privacy"
|
||||
],
|
||||
"modules-right": [
|
||||
"mpd",
|
||||
"pulseaudio",
|
||||
"backlight",
|
||||
// "keyboard-state",
|
||||
"battery",
|
||||
"idle_inhibitor",
|
||||
// "custom/dunst",
|
||||
"tray"
|
||||
"custom/spacer",
|
||||
"custom/wakatime",
|
||||
"custom/spacer",
|
||||
"pulseaudio",
|
||||
"custom/spacer",
|
||||
"group/system",
|
||||
"custom/spacer",
|
||||
"network",
|
||||
"custom/spacer",
|
||||
"clock",
|
||||
"custom/spacer",
|
||||
"custom/dunst",
|
||||
"custom/spacer",
|
||||
"group/tray"
|
||||
],
|
||||
"group/system": {
|
||||
"orientation": "inherit",
|
||||
"modules": [
|
||||
"temperature",
|
||||
"cpu",
|
||||
"custom/spacer",
|
||||
"memory",
|
||||
"custom/spacer"
|
||||
],
|
||||
"drawer": {
|
||||
"transition-left-to-right": false
|
||||
}
|
||||
},
|
||||
"group/tray": {
|
||||
"orientation": "inherit",
|
||||
"modules": [
|
||||
"idle_inhibitor",
|
||||
"tray"
|
||||
],
|
||||
"drawer": {
|
||||
"transition-left-to-right": false
|
||||
// "tranasition-duration": 100
|
||||
}
|
||||
},
|
||||
// Modules configuration
|
||||
"sway/workspaces": {
|
||||
// "disable-scroll": true,
|
||||
@@ -37,36 +65,21 @@
|
||||
"warp-on-scroll": false,
|
||||
"format": "{name}",
|
||||
"disable-scroll-wraparound": true
|
||||
// "format-icons": {
|
||||
// "1": "",
|
||||
// "2": "",
|
||||
// "3": "",
|
||||
// "4": "",
|
||||
// "5": "",
|
||||
// "urgent": "",
|
||||
// "focused": "",
|
||||
// "default": ""
|
||||
// }
|
||||
},
|
||||
// "keyboard-state": {
|
||||
// "capslock": true,
|
||||
// "format": "{icon}",
|
||||
// "format-icons": {
|
||||
// "locked": "\udb82\ude9b",
|
||||
// "unlocked": ""
|
||||
// }
|
||||
// },
|
||||
"sway/window": {
|
||||
"icon": true,
|
||||
"icon-size": 20,
|
||||
"icon": false,
|
||||
// "icon-size": 20,
|
||||
"rotate": 270,
|
||||
// "format": ""
|
||||
"rewrite": {
|
||||
"Zellij \\((.*)\\) - .*": "Zellij [$1]",
|
||||
".* - ([A-Za-z0-9 ]+)": "$1",
|
||||
".* — ([A-Za-z0-9 ]+)": "$1"
|
||||
}
|
||||
},
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
"format": "<span style=\"italic\">{}</span>",
|
||||
"rotate": 270
|
||||
},
|
||||
"sway/scratchpad": {
|
||||
"format": "{icon} {count}",
|
||||
@@ -76,170 +89,149 @@
|
||||
""
|
||||
],
|
||||
"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": "<span color=\"#f53c3c\"></span> ",
|
||||
"on": " "
|
||||
},
|
||||
"repeat-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"single-icons": {
|
||||
"on": "1 "
|
||||
},
|
||||
"state-icons": {
|
||||
"paused": "",
|
||||
"playing": ""
|
||||
},
|
||||
"tooltip-format": "MPD (connected)",
|
||||
"tooltip-format-disconnected": "MPD (disconnected)"
|
||||
"tooltip-format": "{app}: {title}",
|
||||
"rotate": 270
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "<span size='large'>{icon}</span>",
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "\uf109",
|
||||
"deactivated": "\udb81\udee7"
|
||||
"activated": "Keep On",
|
||||
"deactivated": "OFF"
|
||||
},
|
||||
"tooltip-format-activated": "The screen won't turn off on idle.",
|
||||
"tooltip-format-deactivated": "The screen will turn off on idle."
|
||||
"rotate": 270,
|
||||
"tooltip": false
|
||||
// "tooltip-format-activated": "The screen won't turn off on idle.",
|
||||
// "tooltip-format-deactivated": "The screen will turn off on idle."
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 20,
|
||||
"spacing": 10
|
||||
},
|
||||
"privacy": {
|
||||
"icon-spacing": 4,
|
||||
"icon-size": 18,
|
||||
"transition-duration": 250,
|
||||
"modules": [
|
||||
{
|
||||
"type": "screenshare",
|
||||
"tooltip": true,
|
||||
"tooltip-icon-size": 24
|
||||
},
|
||||
{
|
||||
"type": "audio-out",
|
||||
"tooltip": true,
|
||||
"tooltip-icon-size": 24
|
||||
},
|
||||
{
|
||||
"type": "audio-in",
|
||||
"tooltip": true,
|
||||
"tooltip-icon-size": 24
|
||||
}
|
||||
],
|
||||
"rotate": 270
|
||||
},
|
||||
"clock": {
|
||||
// "timezone": "America/New_York",
|
||||
"rotate": 270,
|
||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||
"format-alt": "<span size='large'>\udb83\ude17</span> {:%Y-%m-%d}",
|
||||
"format": "<span size='large'>\uf43a</span> {:%H:%M}"
|
||||
"format": "{:%a %b %d %R}",
|
||||
"calendar": {
|
||||
"mode": "month",
|
||||
"mode-mon-col": 3,
|
||||
"weeks-pos": "right",
|
||||
"on-scroll": 1,
|
||||
"format": {
|
||||
"months": "<span color='#ffead3'><b>{}</b></span>",
|
||||
"days": "<span color='#ecc6d9'><b>{}</b></span>",
|
||||
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
|
||||
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
|
||||
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
|
||||
}
|
||||
},
|
||||
"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": "<span size='large'>\uf4bc</span> {usage}%",
|
||||
"format": "CPU {usage}%",
|
||||
"tooltip": true,
|
||||
"interval": 5
|
||||
"interval": 5,
|
||||
"rotate": 270
|
||||
},
|
||||
"memory": {
|
||||
"format": "<span size='large'>\uf463</span> {}%",
|
||||
"tooltip-format": "RAM: {used}/{avail} | Swap: {swapUsed}/{swapTotal}"
|
||||
"format": "RAM {}%",
|
||||
"tooltip-format": "RAM: {used}/{avail} | Swap: {swapUsed}/{swapTotal}",
|
||||
"rotate": 270
|
||||
},
|
||||
"temperature": {
|
||||
// "thermal-zone": 2,
|
||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
// "format-critical": "{temperatureC}°C {icon}",
|
||||
"format": "<span size='large'>{icon}</span> {temperatureC}°C",
|
||||
"format": "{icon} {temperatureC}°C",
|
||||
"format-icons": [
|
||||
"\uf2cb",
|
||||
"\uf2ca",
|
||||
"\uf2c9",
|
||||
"\uf2c7"
|
||||
]
|
||||
},
|
||||
"backlight": {
|
||||
// "device": "acpi_video1",
|
||||
"format": "<span size='large'>{icon}</span> {percent}%",
|
||||
"format-icons": [
|
||||
"\udb86\ude4e",
|
||||
"\udb86\ude4f",
|
||||
"\udb86\ude50",
|
||||
"\udb86\ude51",
|
||||
"\udb86\ude52",
|
||||
"\udb86\ude53",
|
||||
"\udb86\ude54",
|
||||
"\udb86\ude55",
|
||||
"\udb86\ude56",
|
||||
"\udb81\udee8"
|
||||
]
|
||||
"CHILL",
|
||||
"WARM",
|
||||
"HOT",
|
||||
"BURN"
|
||||
],
|
||||
"rotate": 270
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
// "good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
"best": 99,
|
||||
"good": 70,
|
||||
"warning": 40,
|
||||
"critical": 20
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-charging": "{capacity}% \udb80\udc84",
|
||||
"format-plugged": "{capacity}% \uf492",
|
||||
"format-alt": "{time} {icon}",
|
||||
"format": "{capacity}%",
|
||||
"format-charging": "Charging {capacity}%",
|
||||
"format-plugged": "Plugged {capacity}%",
|
||||
"format-alt": "{icon} {time}",
|
||||
"rotate": 270,
|
||||
// "format-good": "", // An empty format will hide the module
|
||||
// "format-full": "",
|
||||
"format-icons": [
|
||||
"\udb80\udc8e",
|
||||
"\udb80\udc7a",
|
||||
"\udb80\udc7c",
|
||||
"\udb80\udc7e",
|
||||
"\udb80\udc80",
|
||||
"\udb80\udc82",
|
||||
"\udb80\udc79"
|
||||
]
|
||||
"format-icons": {
|
||||
"best": "Feeling good",
|
||||
"good": "Will last",
|
||||
"warning": "Charge soon",
|
||||
"critical": "Gonna die in"
|
||||
}
|
||||
},
|
||||
"network": {
|
||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||
"interval": 5,
|
||||
"tooltip-format-wifi": "{icon} {essid}: ({signalStrength}%)",
|
||||
"tooltip-format-ethernet": "\udb80\ude00 {ipaddr}/{cidr}",
|
||||
"tooltip-format-disconnected": "\uead0 Please connect to a network.",
|
||||
"format": "<span size='large' color='green'>\udb82\uddc7</span> {bandwidthUpBits:4} <span size='large' color='red'>\udb82\uddbf</span> {bandwidthDownBits:4}",
|
||||
"format-disconnected": "<span size='large'>\uead0</span> Disconnected",
|
||||
"format-icons": [
|
||||
"\udb82\udd2f",
|
||||
"\udb82\udd1f",
|
||||
"\udb82\udd22",
|
||||
"\udb82\udd25",
|
||||
"\udb82\udd28"
|
||||
]
|
||||
"interval": 10,
|
||||
"format-wifi": "{essid} {frequency} ({signalStrength}%)",
|
||||
"format-ethernet": "Ethernet: {ipaddr}/{cidr}",
|
||||
"format-linked": "Linked: No Internet!",
|
||||
"tooltip-format-disconnected": "Please connect to a network.",
|
||||
"tooltip-format": "Up: {bandwidthUpBits:4} Down: {bandwidthDownBits:4}",
|
||||
"format-disconnected": "No Network",
|
||||
"rotate": 270
|
||||
},
|
||||
"pulseaudio": {
|
||||
// "scroll-step": 1, // %, can be a float
|
||||
"format": "<span size='large'>{icon}</span> {volume}% {format_source}",
|
||||
"format-bluetooth": "<span size='large'>\udb80\udcb0 {icon}</span> {volume}% {format_source}",
|
||||
"format-bluetooth-muted": "<span size='large'>\uf466 {icon}</span> {format_source}",
|
||||
"format-muted": "<span size='large'>\udb81\udd81</span> {format_source}",
|
||||
"format-source": "<span size='large'>\udb80\udf6e</span> {volume}%",
|
||||
"format-source-muted": "<span size='large'>\udb80\udf6d</span>",
|
||||
"format": "{icon} {volume}% {format_source}",
|
||||
"format-bluetooth": "Bluetooth {volume}% {format_source}",
|
||||
"format-bluetooth-muted": "<span color='red'><s>Bluetooth</> {format_source}",
|
||||
"format-muted": "<span color='red'><s>{icon}</s></span> {format_source}",
|
||||
"format-source": "Mic {volume}%",
|
||||
"format-source-muted": "<span color='red'><s>Mic</s></span>",
|
||||
"format-icons": {
|
||||
"headphone": "\udb80\udecb",
|
||||
"hands-free": "\udb81\udcc3",
|
||||
"headset": "\udb80\udece",
|
||||
"phone": "\uf2a0",
|
||||
"portable": "\udb86\udc52",
|
||||
"car": "\udb80\udd0d",
|
||||
"default": [
|
||||
"\udb81\udd7f",
|
||||
"\udb81\udd80",
|
||||
"\udb81\udd7e"
|
||||
]
|
||||
"headphone": "Headphone",
|
||||
"headset": "Headphone",
|
||||
"phone": "Phone",
|
||||
"hdmi": "Monitor",
|
||||
"default": "Speaker"
|
||||
},
|
||||
"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
|
||||
"on-click": "pavucontrol",
|
||||
"rotate": 270
|
||||
},
|
||||
"custom/wakatime": {
|
||||
"format": "<span size='large'>\uf121</span> {}",
|
||||
"format": "{}",
|
||||
"exec": "~/.config/waybar/scripts/wakatime.sh",
|
||||
"tooltip": true,
|
||||
"return-type": "json",
|
||||
"interval": 900
|
||||
"interval": 900,
|
||||
"rotate": 270
|
||||
},
|
||||
"custom/weather": {
|
||||
"exec": "$HOME/.config/waybar/scripts/get-weather.sh Bengaluru",
|
||||
@@ -251,6 +243,14 @@
|
||||
"custom/dunst": {
|
||||
"exec": "~/.config/waybar/scripts/dunst.sh",
|
||||
"on-click": "dunstctl set-paused toggle",
|
||||
"restart-interval": 1
|
||||
"format": "{}",
|
||||
"return-type": "json",
|
||||
"restart-interval": 1,
|
||||
"rotate": 270
|
||||
},
|
||||
"custom/spacer": {
|
||||
"format": "|",
|
||||
"rotate": 270,
|
||||
"tooltip": false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
COUNT=$(dunstctl count waiting)
|
||||
ENABLED=
|
||||
DISABLED=
|
||||
if [ $COUNT != 0 ]; then DISABLED=" $COUNT"; fi
|
||||
if dunstctl is-paused | grep -q "false" ; then echo $ENABLED; else echo $DISABLED; fi
|
||||
status=""
|
||||
class=""
|
||||
tooltip="Notifications are "
|
||||
if dunstctl is-paused | grep -q "false" ; then
|
||||
status="NOT"
|
||||
tooltip+="active"
|
||||
else
|
||||
status="DND"
|
||||
class="dnd"
|
||||
tooltip+="paused"
|
||||
fi
|
||||
|
||||
if [ $COUNT != 0 ]; then text+=":$COUNT"; fi
|
||||
printf '{"text":"%s","tooltip":"%s","class":"%s"}' "$status" "$tooltip" "$class" | jq --unbuffered --compact-output
|
||||
|
||||
+45
-103
@@ -1,8 +1,15 @@
|
||||
* {
|
||||
/* `otf-font-awesome` is required to be installed for icons */
|
||||
font-family: 'JetBrainsMono Nerd Font';
|
||||
font-size: 16px;
|
||||
padding: 3px;
|
||||
font-family: 'Monaspace Argon';
|
||||
font-size: 15px;
|
||||
padding: 2px 0;
|
||||
margin: 2px 0;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
#window {
|
||||
padding: 1px 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
@@ -12,29 +19,10 @@ window#waybar {
|
||||
color: #ffffff;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
/* border-right: 1px solid cyan; */
|
||||
padding: 0 0;
|
||||
}
|
||||
|
||||
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 */
|
||||
@@ -51,8 +39,9 @@ button:hover {
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 5px;
|
||||
padding: 0 0px;
|
||||
background-color: transparent;
|
||||
/* border-left: 2px solid #3ddbd9; */
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
@@ -62,9 +51,9 @@ button:hover {
|
||||
|
||||
#workspaces button.focused {
|
||||
/* background-color: #64727D;*/
|
||||
box-shadow: inset -2px -2px #ffffff, inset 2px 2px #ffffff;
|
||||
/* border: 1px solid white; */
|
||||
color: palevioletred
|
||||
/* box-shadow: inset -2px -2px #ffffff, inset 2px 2px #ffffff; */
|
||||
color: palevioletred;
|
||||
/* outline-offset: 4px; */
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
@@ -73,42 +62,48 @@ button:hover {
|
||||
|
||||
#mode {
|
||||
/* background-color: #64727D; */
|
||||
border: 2px solid green;
|
||||
animation-name: blink;
|
||||
/* animation-duration: 0.5s; */
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
border-left: 2px solid darksalmon;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#battery,
|
||||
#cpu,
|
||||
#memory,
|
||||
#disk,
|
||||
#temperature,
|
||||
#backlight,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#wireplumber,
|
||||
#custom-media,
|
||||
#custom-dunst,
|
||||
#custom-spacer,
|
||||
#tray,
|
||||
#mode,
|
||||
#idle_inhibitor,
|
||||
#scratchpad,
|
||||
#mpd {
|
||||
padding: 0 10px;
|
||||
#scratchpad {
|
||||
padding: 0 2px;
|
||||
/* border-right: 1px solid cyan; */
|
||||
background-color: #262626;
|
||||
/* margin: 0 3px; */
|
||||
}
|
||||
|
||||
#window,
|
||||
#workspaces {
|
||||
margin: 0 4px;
|
||||
/* padding: 1px 0; */
|
||||
margin: 0 10px;
|
||||
}
|
||||
|
||||
/* If workspaces is the leftmost module, omit left margin */
|
||||
.modules-left>widget:first-child>#workspaces {
|
||||
margin-left: 0;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
/* If workspaces is the rightmost module, omit right margin */
|
||||
.modules-right>widget:last-child>#workspaces {
|
||||
margin-right: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#clock {
|
||||
@@ -165,7 +160,7 @@ label:focus {
|
||||
}
|
||||
|
||||
#network {
|
||||
color: #2980b9;
|
||||
color: lightseagreen;
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
@@ -180,27 +175,6 @@ label:focus {
|
||||
color: #90b1b1;
|
||||
}
|
||||
|
||||
#wireplumber {
|
||||
color: #fff0f5;
|
||||
}
|
||||
|
||||
#wireplumber.muted {
|
||||
color: #f53c3c;
|
||||
}
|
||||
|
||||
#custom-media {
|
||||
color: #66cc99;
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
#custom-media.custom-spotify {
|
||||
color: #66cc99;
|
||||
}
|
||||
|
||||
#custom-media.custom-vlc {
|
||||
color: #ffa000;
|
||||
}
|
||||
|
||||
#temperature {
|
||||
color: #f0932b;
|
||||
}
|
||||
@@ -227,48 +201,7 @@ label:focus {
|
||||
}
|
||||
|
||||
#idle_inhibitor.activated {
|
||||
color: green;
|
||||
}
|
||||
|
||||
#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);
|
||||
color: lightgreen;
|
||||
}
|
||||
|
||||
#scratchpad {
|
||||
@@ -281,4 +214,13 @@ label:focus {
|
||||
|
||||
#custom-wakatime {
|
||||
color: turquoise
|
||||
}
|
||||
}
|
||||
|
||||
#custom-dunst {
|
||||
color: aquamarine
|
||||
}
|
||||
|
||||
#custom-dunst.dnd {
|
||||
color: red;
|
||||
/* text-decoration: strikethrough */
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@ layout {
|
||||
pane {
|
||||
edit "."
|
||||
focus true
|
||||
name "Editor"
|
||||
size "75%"
|
||||
borderless true
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@ layout {
|
||||
pane {
|
||||
edit "."
|
||||
focus true
|
||||
name "Editor"
|
||||
size "60%"
|
||||
borderless true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user