mirror of
https://github.com/Keyitdev/dotfiles.git
synced 2026-09-24 01:52:09 +00:00
Major Update: created v5 (switching from x11 to wayland). Changed polybar to waybar in this commit.
This commit is contained in:
@@ -1,35 +0,0 @@
|
|||||||
[color]
|
|
||||||
|
|
||||||
background = #1b1b25
|
|
||||||
foreground = #dedede
|
|
||||||
transparent = #0000003f
|
|
||||||
sep = #F8F8F2
|
|
||||||
|
|
||||||
white = #eeffff
|
|
||||||
black = #15121c
|
|
||||||
red = #cb5760
|
|
||||||
green = #999f63
|
|
||||||
yellow = #d4a067
|
|
||||||
blue = #6c90a8
|
|
||||||
purple = #776690
|
|
||||||
cyan = #528a9b
|
|
||||||
pink = #ffa8c5
|
|
||||||
orange = #c87c3e
|
|
||||||
|
|
||||||
; [color]
|
|
||||||
|
|
||||||
; background = ${xrdb:background}
|
|
||||||
; foreground = ${xrdb:foreground}
|
|
||||||
; transparent = ${xrdb:transparent}
|
|
||||||
; sep = ${xrdb:sep}
|
|
||||||
|
|
||||||
; white = ${xrdb:white}
|
|
||||||
; black = ${xrdb:black}
|
|
||||||
; red = ${xrdb:red}
|
|
||||||
; green = ${xrdb:green}
|
|
||||||
; yellow = ${xrdb:yellow}
|
|
||||||
; blue = ${xrdb:blue}
|
|
||||||
; purple = ${xrdb:purple}
|
|
||||||
; cyan = ${xrdb:cyan}
|
|
||||||
; pink = ${xrdb:pink}
|
|
||||||
; orange = ${xrdb:orange}
|
|
||||||
@@ -1,647 +0,0 @@
|
|||||||
include-file = $HOME/.config/polybar/colors.ini
|
|
||||||
|
|
||||||
[settings]
|
|
||||||
screenchange-reload = true
|
|
||||||
|
|
||||||
compositing-background = source
|
|
||||||
compositing-foreground = over
|
|
||||||
compositing-overline = over
|
|
||||||
compositing-underline = over
|
|
||||||
compositing-border = over
|
|
||||||
|
|
||||||
; format-foreground =
|
|
||||||
; format-background =
|
|
||||||
; format-underline =
|
|
||||||
; format-overline =
|
|
||||||
; format-spacing =
|
|
||||||
; format-padding =
|
|
||||||
; format-margin =
|
|
||||||
; format-offset =
|
|
||||||
|
|
||||||
pseudo-transparency = true
|
|
||||||
|
|
||||||
[bar/main]
|
|
||||||
; $ polybar -M | cut -d ':' -f 1
|
|
||||||
; $ xrandr -q | grep " connected" | cut -d ' ' -f1
|
|
||||||
monitor =
|
|
||||||
monitor-fallback =
|
|
||||||
monitor-strict = false
|
|
||||||
monitor-exact = true
|
|
||||||
override-redirect = false
|
|
||||||
; override-redirect = true
|
|
||||||
|
|
||||||
bottom = false
|
|
||||||
fixed-center = true
|
|
||||||
|
|
||||||
width = 100%
|
|
||||||
height = 31
|
|
||||||
|
|
||||||
offset-x = 0
|
|
||||||
offset-y = 0
|
|
||||||
|
|
||||||
background = ${color.transparent}
|
|
||||||
foreground = ${color.foreground}
|
|
||||||
; background-0 =
|
|
||||||
|
|
||||||
radius = 0.0
|
|
||||||
|
|
||||||
|
|
||||||
line-size = 2
|
|
||||||
line-color = ${color.transparent}
|
|
||||||
|
|
||||||
border-top-size = 8
|
|
||||||
border-top-color = ${color.transparent}
|
|
||||||
border-left-size = 8
|
|
||||||
border-left-color = ${color.transparent}
|
|
||||||
border-right-size = 8
|
|
||||||
border-right-color = ${color.transparent}
|
|
||||||
|
|
||||||
padding = 0
|
|
||||||
|
|
||||||
font-0 = "Iosevka Nerd Font:size=12;4"
|
|
||||||
font-1 = "Iosevka Nerd Font:style=Medium:size=18;4"
|
|
||||||
font-2 = "feather:size=13;5"
|
|
||||||
|
|
||||||
; modules-left = l menu r s l i3 r s l wireless-network r
|
|
||||||
; modules-center = l date r
|
|
||||||
; modules-right = l temperature s2 s2 cpu s2 s2 ram r s l backlight r s l pulseaudio r s l battery r s l tray r
|
|
||||||
|
|
||||||
modules-left = l menu r s l i3 r
|
|
||||||
modules-center = l date r
|
|
||||||
modules-right = l wireless-network r s l temperature s2 s2 ram r s l backlight s2 s2 pulseaudio r s l battery r s tray_transparent
|
|
||||||
|
|
||||||
;l r s s2
|
|
||||||
; module-margin =
|
|
||||||
; separator =
|
|
||||||
|
|
||||||
dim-value = 1.0
|
|
||||||
wm-name = i3
|
|
||||||
locale =
|
|
||||||
; enable-struts = i3
|
|
||||||
|
|
||||||
dpi-x = 96
|
|
||||||
dpi-y = 96
|
|
||||||
|
|
||||||
enable-ipc = true
|
|
||||||
|
|
||||||
; click-left =
|
|
||||||
; click-middle =
|
|
||||||
; click-right =
|
|
||||||
; scroll-up =
|
|
||||||
; scroll-down =
|
|
||||||
; double-click-left =
|
|
||||||
; double-click-middle =
|
|
||||||
; double-click-right =
|
|
||||||
|
|
||||||
double-click-interval = 400
|
|
||||||
|
|
||||||
cursor-click = pointer
|
|
||||||
cursor-scroll = ns-resize
|
|
||||||
|
|
||||||
|
|
||||||
[module/l]
|
|
||||||
type = custom/text
|
|
||||||
format-background = ${color.transparent}
|
|
||||||
format-foreground = ${color.background}
|
|
||||||
format =
|
|
||||||
format-font = 2
|
|
||||||
|
|
||||||
[module/r]
|
|
||||||
type = custom/text
|
|
||||||
format-background = ${color.transparent}
|
|
||||||
format-foreground = ${color.background}
|
|
||||||
format =
|
|
||||||
format-font = 2
|
|
||||||
|
|
||||||
[module/s]
|
|
||||||
type = custom/text
|
|
||||||
format = " "
|
|
||||||
|
|
||||||
[module/s2]
|
|
||||||
type = custom/text
|
|
||||||
format = " "
|
|
||||||
|
|
||||||
format-foreground = ${color.background}
|
|
||||||
format-background = ${color.background}
|
|
||||||
|
|
||||||
[module/tray]
|
|
||||||
type = internal/tray
|
|
||||||
|
|
||||||
format-background = ${color.background}
|
|
||||||
|
|
||||||
tray-foreground = ${color.foreground}
|
|
||||||
tray-background = ${color.background}
|
|
||||||
|
|
||||||
tray-padding = 5px
|
|
||||||
tray-spacing = 0
|
|
||||||
tray-size = 66%
|
|
||||||
|
|
||||||
[module/tray_transparent]
|
|
||||||
type = internal/tray
|
|
||||||
|
|
||||||
format-background = ${color.transparent}
|
|
||||||
|
|
||||||
tray-foreground = ${color.transparent}
|
|
||||||
tray-background = ${color.transparent}
|
|
||||||
|
|
||||||
tray-padding = 5px
|
|
||||||
tray-spacing = 0
|
|
||||||
tray-size = 66%
|
|
||||||
|
|
||||||
[module/alsa]
|
|
||||||
type = internal/alsa
|
|
||||||
interval = 5
|
|
||||||
|
|
||||||
master-soundcard = default
|
|
||||||
speaker-soundcard = default
|
|
||||||
headphone-soundcard = default
|
|
||||||
master-mixer = Master
|
|
||||||
|
|
||||||
format-volume = <ramp-volume> <label-volume>
|
|
||||||
format-volume-background = ${color.background}
|
|
||||||
format-muted = <label-muted>
|
|
||||||
format-muted-background = ${color.background}
|
|
||||||
|
|
||||||
label-volume = %percentage%%
|
|
||||||
label-muted =
|
|
||||||
label-muted-foreground =${color.red}
|
|
||||||
|
|
||||||
ramp-volume-0 =
|
|
||||||
ramp-volume-1 =
|
|
||||||
ramp-volume-2 =
|
|
||||||
ramp-headphones-0 =
|
|
||||||
ramp-volume-foreground = ${color.blue}
|
|
||||||
|
|
||||||
[module/pulseaudio]
|
|
||||||
type = internal/pulseaudio
|
|
||||||
interval = 5
|
|
||||||
|
|
||||||
; use-ui-max ? 153 : 100
|
|
||||||
use-ui-max = false
|
|
||||||
|
|
||||||
format-volume = <ramp-volume> <label-volume>
|
|
||||||
format-volume-background = ${color.background}
|
|
||||||
format-muted = <label-muted>
|
|
||||||
format-muted-background = ${color.background}
|
|
||||||
|
|
||||||
label-volume = %percentage%%
|
|
||||||
label-muted =
|
|
||||||
label-muted-foreground =${color.red}
|
|
||||||
|
|
||||||
ramp-volume-0 =
|
|
||||||
ramp-volume-1 =
|
|
||||||
ramp-volume-2 =
|
|
||||||
ramp-headphones-0 =
|
|
||||||
ramp-volume-foreground = ${color.blue}
|
|
||||||
|
|
||||||
[module/backlight]
|
|
||||||
type = internal/backlight
|
|
||||||
|
|
||||||
; Change it for yourself
|
|
||||||
; ls -1 /sys/class/backlight/
|
|
||||||
card =
|
|
||||||
use-actual-brightness = ture
|
|
||||||
poll-interval = 1
|
|
||||||
enable-scroll = true
|
|
||||||
|
|
||||||
scroll-interval = 5
|
|
||||||
|
|
||||||
format = <ramp><label>
|
|
||||||
format-background = ${color.background}
|
|
||||||
|
|
||||||
label =%percentage%%
|
|
||||||
|
|
||||||
ramp-0 = " "
|
|
||||||
ramp-1 = " "
|
|
||||||
ramp-foreground = ${color.yellow}
|
|
||||||
|
|
||||||
[module/battery]
|
|
||||||
type = internal/battery
|
|
||||||
|
|
||||||
full-at = 98
|
|
||||||
low-at = 10
|
|
||||||
|
|
||||||
; Change it for yourself
|
|
||||||
; ls /sys/class/power_supply/
|
|
||||||
battery = BAT1
|
|
||||||
adapter = ADP0
|
|
||||||
|
|
||||||
poll-interval = 5
|
|
||||||
|
|
||||||
time-format = %H:%M
|
|
||||||
|
|
||||||
format-charging = <label-charging>
|
|
||||||
format-charging-prefix = ""
|
|
||||||
format-charging-prefix-foreground = ${color.green}
|
|
||||||
format-charging-prefix-background = ${color.background}
|
|
||||||
label-charging = " %percentage%%"
|
|
||||||
label-charging-background = ${color.background}
|
|
||||||
|
|
||||||
format-discharging = <label-discharging>
|
|
||||||
format-discharging-prefix = " "
|
|
||||||
format-discharging-prefix-foreground = ${color.orange}
|
|
||||||
format-discharging-prefix-background = ${color.background}
|
|
||||||
; label-discharging = "%percentage%%"
|
|
||||||
; label-discharging = "%percentage%% %consumption%W (%time%)"
|
|
||||||
label-discharging = "%percentage%% (%time%)"
|
|
||||||
label-discharging-background = ${color.background}
|
|
||||||
|
|
||||||
format-full = <label-full>
|
|
||||||
format-full-prefix = " "
|
|
||||||
format-full-prefix-foreground = ${color.red}
|
|
||||||
format-full-prefix-background = ${color.background}
|
|
||||||
label-full = "Full"
|
|
||||||
label-full-background = ${color.background}
|
|
||||||
|
|
||||||
format-low = <label-low><animation-low>
|
|
||||||
format-low-prefix = " "
|
|
||||||
format-low-prefix-foreground = ${color.orange}
|
|
||||||
format-low-prefix-background = ${color.background}
|
|
||||||
label-low = "%percentage%"
|
|
||||||
label-low-background = ${color.background}
|
|
||||||
|
|
||||||
animation-low-0 = "%"
|
|
||||||
animation-low-1 = "!"
|
|
||||||
animation-low-0-background = ${color.background}
|
|
||||||
animation-low-1-background = ${color.red}
|
|
||||||
animation-low-1-foreground = ${color.black}
|
|
||||||
animation-low-framerate = 1000
|
|
||||||
|
|
||||||
[module/wattage]
|
|
||||||
type = internal/battery
|
|
||||||
|
|
||||||
; Change it for yourself
|
|
||||||
; ls /sys/class/power_supply/
|
|
||||||
battery = BAT1
|
|
||||||
adapter = ADP0
|
|
||||||
|
|
||||||
full-at = 98
|
|
||||||
low-at = 10
|
|
||||||
|
|
||||||
poll-interval = 5
|
|
||||||
|
|
||||||
time-format = %H:%M
|
|
||||||
|
|
||||||
format-charging = <label-charging>
|
|
||||||
format-charging-prefix = ""
|
|
||||||
format-charging-prefix-foreground = ${color.orange}
|
|
||||||
format-charging-prefix-background = ${color.background}
|
|
||||||
label-charging = "%consumption%W (%time%)"
|
|
||||||
label-charging-background = ${color.background}
|
|
||||||
|
|
||||||
format-discharging = <label-discharging>
|
|
||||||
format-discharging-prefix = " "
|
|
||||||
format-discharging-prefix-foreground = ${color.orange}
|
|
||||||
format-discharging-prefix-background = ${color.background}
|
|
||||||
label-discharging = "%consumption%W (%time%)"
|
|
||||||
label-discharging-background = ${color.background}
|
|
||||||
|
|
||||||
format-full = <label-full>
|
|
||||||
format-full-prefix = " "
|
|
||||||
format-full-prefix-foreground = ${color.orange}
|
|
||||||
format-full-prefix-background = ${color.background}
|
|
||||||
label-full = "Full"
|
|
||||||
label-full-background = ${color.background}
|
|
||||||
|
|
||||||
[module/cpu]
|
|
||||||
type = internal/cpu
|
|
||||||
interval = 1
|
|
||||||
|
|
||||||
warn-percentage = 90
|
|
||||||
|
|
||||||
format = <label>
|
|
||||||
format-prefix = " "
|
|
||||||
format-prefix-foreground = ${color.green}
|
|
||||||
format-background = ${color.background}
|
|
||||||
label = "%percentage%%"
|
|
||||||
|
|
||||||
; format-warn = <label-warn>
|
|
||||||
; format-warn-prefix = " "
|
|
||||||
; format-warn-prefix-foreground = ${color.red}
|
|
||||||
; format-warn-background = ${color.background}
|
|
||||||
; format-warn-foreground = ${color.red}
|
|
||||||
; label-warn = "%percentage%%"
|
|
||||||
|
|
||||||
[module/date]
|
|
||||||
type = internal/date
|
|
||||||
interval = 1
|
|
||||||
|
|
||||||
; Change it for yourself
|
|
||||||
; https://en.cppreference.com/w/cpp/io/manip/put_time
|
|
||||||
|
|
||||||
date = %a %d %b
|
|
||||||
time = %H:%M
|
|
||||||
date-alt = %A %d %B %Y
|
|
||||||
time-alt = %H:%M:%S
|
|
||||||
|
|
||||||
format = <label>
|
|
||||||
format-prefix = " "
|
|
||||||
format-prefix-foreground = ${color.red}
|
|
||||||
format-background = ${color.background}
|
|
||||||
|
|
||||||
label = %date% %time%
|
|
||||||
|
|
||||||
[module/filesystem]
|
|
||||||
type = internal/fs
|
|
||||||
interval = 10
|
|
||||||
|
|
||||||
mount-0 = /
|
|
||||||
fixed-values = false
|
|
||||||
spacing = 0
|
|
||||||
warn-percentage = 95
|
|
||||||
|
|
||||||
format-mounted = <label-mounted>
|
|
||||||
format-mounted-prefix = " "
|
|
||||||
format-mounted-prefix-foreground = ${color.orange}
|
|
||||||
format-mounted-background = ${color.background}
|
|
||||||
label-mounted = "%percentage_used%%"
|
|
||||||
|
|
||||||
format-unmounted = <label-unmounted>
|
|
||||||
format-unmounted-prefix = " "
|
|
||||||
format-unmounted-prefix-foreground = ${color.red}
|
|
||||||
format-unmounted-background = ${color.background}
|
|
||||||
label-unmounted = "Not mounted"
|
|
||||||
|
|
||||||
; format-warn = <label-warn>
|
|
||||||
; format-warn-prefix = " "
|
|
||||||
; format-warn-prefix-foreground = ${color.red}
|
|
||||||
; format-warn-background = ${color.background}
|
|
||||||
; format-warn-foreground = ${color.red}
|
|
||||||
; label-warn = "%percentage_used%%"
|
|
||||||
|
|
||||||
[module/i3]
|
|
||||||
type = internal/i3
|
|
||||||
|
|
||||||
pin-workspaces = true
|
|
||||||
show-urgent = true
|
|
||||||
strip-wsnumbers = true
|
|
||||||
index-sort = true
|
|
||||||
enable-click = true
|
|
||||||
enable-scroll = true
|
|
||||||
wrapping-scroll = true
|
|
||||||
reverse-scroll = false
|
|
||||||
fuzzy-match = false
|
|
||||||
|
|
||||||
ws-icon-0 = 1;
|
|
||||||
ws-icon-1 = 2;
|
|
||||||
ws-icon-2 = 3;
|
|
||||||
ws-icon-3 = 4;
|
|
||||||
ws-icon-4 = 5;
|
|
||||||
ws-icon-5 = 6;
|
|
||||||
ws-icon-6 = 7;
|
|
||||||
ws-icon-7 = 8;
|
|
||||||
ws-icon-8 = 9;
|
|
||||||
ws-icon-9 = 10;
|
|
||||||
ws-icon-default =
|
|
||||||
|
|
||||||
|
|
||||||
format = <label-state><label-mode>
|
|
||||||
|
|
||||||
label-mode = %mode%
|
|
||||||
label-mode-padding = 1
|
|
||||||
label-mode-background = ${color.background}
|
|
||||||
label-mode-foreground = ${color.foreground}
|
|
||||||
|
|
||||||
label-focused = %icon%
|
|
||||||
label-focused-foreground = ${color.green}
|
|
||||||
label-focused-background = ${color.background}
|
|
||||||
label-focused-underline = ${color.green}
|
|
||||||
label-focused-padding = 1
|
|
||||||
|
|
||||||
label-unfocused = %icon%
|
|
||||||
label-unfocused-padding = 1
|
|
||||||
label-unfocused-background = ${color.background}
|
|
||||||
|
|
||||||
label-visible = %icon%
|
|
||||||
label-visible-underline = ${color.purple}
|
|
||||||
label-visible-padding = 1
|
|
||||||
label-visible-foreground = ${color.purple}
|
|
||||||
label-visible-background = ${color.background}
|
|
||||||
|
|
||||||
label-urgent = %icon%
|
|
||||||
label-urgent-foreground = ${color.red}
|
|
||||||
label-urgent-background = ${color.background}
|
|
||||||
label-urgent-padding = 1
|
|
||||||
|
|
||||||
[module/mpd]
|
|
||||||
type = internal/mpd
|
|
||||||
interval = 1
|
|
||||||
host = 127.0.0.1
|
|
||||||
port = 6600
|
|
||||||
|
|
||||||
format-online = <label-song> <icon-prev> <toggle> <icon-next>
|
|
||||||
format-online-prefix = " "
|
|
||||||
format-online-prefix-foreground = ${color.green}
|
|
||||||
format-online-background = ${color.background}
|
|
||||||
|
|
||||||
format-playing = ${self.format-online}
|
|
||||||
format-paused = ${self.format-online}
|
|
||||||
format-stopped = ${self.format-online}
|
|
||||||
|
|
||||||
format-offline = <label-offline>
|
|
||||||
format-offline-prefix = " "
|
|
||||||
format-offline-prefix-foreground = ${color.red}
|
|
||||||
format-offline-background = ${color.background}
|
|
||||||
|
|
||||||
label-song = "%title%"
|
|
||||||
label-song-maxlen = 25
|
|
||||||
label-song-ellipsis = true
|
|
||||||
|
|
||||||
label-time = %elapsed% / %total%
|
|
||||||
label-time-background = ${color.background}
|
|
||||||
label-time-padding = 1
|
|
||||||
|
|
||||||
label-offline = "Off"
|
|
||||||
|
|
||||||
icon-play =
|
|
||||||
icon-play-foreground = ${color.cyan}
|
|
||||||
icon-pause =
|
|
||||||
icon-pause-foreground = ${color.cyan}
|
|
||||||
icon-stop =
|
|
||||||
icon-stop-foreground = ${color.red}
|
|
||||||
icon-next =
|
|
||||||
icon-next-foreground = ${color.cyan}
|
|
||||||
icon-prev =
|
|
||||||
icon-prev-foreground = ${color.cyan}
|
|
||||||
icon-seekf =
|
|
||||||
icon-seekb =
|
|
||||||
icon-random =
|
|
||||||
icon-repeat =
|
|
||||||
icon-repeatone =
|
|
||||||
icon-single =
|
|
||||||
icon-consume =
|
|
||||||
|
|
||||||
toggle-on-foreground = ${color.primary}
|
|
||||||
toggle-off-foreground = ${color.red}
|
|
||||||
|
|
||||||
[module/wireless-network]
|
|
||||||
type = internal/network
|
|
||||||
interface = wlan0
|
|
||||||
|
|
||||||
interval = 1.0
|
|
||||||
|
|
||||||
accumulate-stats = true
|
|
||||||
unknown-as-up = true
|
|
||||||
|
|
||||||
format-connected = <label-connected>
|
|
||||||
format-connected-prefix =
|
|
||||||
format-connected-prefix-foreground = ${color.orange}
|
|
||||||
format-connected-background = ${color.background}
|
|
||||||
format-connected-padding = 0
|
|
||||||
|
|
||||||
format-disconnected = <label-disconnected>
|
|
||||||
format-disconnected-prefix =
|
|
||||||
format-disconnected-prefix-foreground = ${color.red}
|
|
||||||
format-disconnected-background = ${color.background}
|
|
||||||
format-disconnected-padding = 0
|
|
||||||
|
|
||||||
label-connected = "%{A1:networkmanager_dmenu &:} %essid% %downspeed%%{A}"
|
|
||||||
|
|
||||||
label-disconnected = "%{A1:networkmanager_dmenu &:} Offline%{A}"
|
|
||||||
|
|
||||||
[module/ram]
|
|
||||||
type = internal/memory
|
|
||||||
interval = 1
|
|
||||||
|
|
||||||
format = <label>
|
|
||||||
format-prefix = " "
|
|
||||||
format-prefix-foreground = ${color.purple}
|
|
||||||
format-background = ${color.background}
|
|
||||||
|
|
||||||
label = "%gb_used%"
|
|
||||||
|
|
||||||
; warn
|
|
||||||
|
|
||||||
[module/swap]
|
|
||||||
type = internal/memory
|
|
||||||
interval = 1
|
|
||||||
|
|
||||||
format = <label>
|
|
||||||
format-prefix = " "
|
|
||||||
format-prefix-foreground = ${color.cyan}
|
|
||||||
format-background = ${color.background}
|
|
||||||
|
|
||||||
label = "%gb_swap_used%"
|
|
||||||
|
|
||||||
; warn
|
|
||||||
|
|
||||||
[module/temperature]
|
|
||||||
type = internal/temperature
|
|
||||||
interval = 0.5
|
|
||||||
|
|
||||||
thermal-zone = 0
|
|
||||||
; zone-type = x86_pkg_temp
|
|
||||||
; hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
|
|
||||||
base-temperature = 30
|
|
||||||
warn-temperature = 90
|
|
||||||
units = true
|
|
||||||
|
|
||||||
format = <ramp> <label>
|
|
||||||
format-background = ${color.background}
|
|
||||||
|
|
||||||
format-warn = <ramp> <label-warn>
|
|
||||||
format-warn-background = ${color.background}
|
|
||||||
|
|
||||||
label = %temperature-c%
|
|
||||||
|
|
||||||
label-warn = "%temperature-c%"
|
|
||||||
label-warn-foreground = ${color.red}
|
|
||||||
|
|
||||||
ramp-0 =
|
|
||||||
ramp-1 =
|
|
||||||
ramp-2 =
|
|
||||||
ramp-3 =
|
|
||||||
ramp-4 =
|
|
||||||
ramp-foreground = ${color.cyan}
|
|
||||||
ramp-0-foreground = ${color.cyan}
|
|
||||||
ramp-1-foreground = ${color.green}
|
|
||||||
ramp-2-foreground = ${color.yellow}
|
|
||||||
ramp-3-foreground = ${color.orange}
|
|
||||||
ramp-4-foreground = ${color.red}
|
|
||||||
|
|
||||||
[module/title]
|
|
||||||
type = internal/xwindow
|
|
||||||
; Available tags:
|
|
||||||
; <label> (default)
|
|
||||||
format = <label>
|
|
||||||
format-prefix = "! "
|
|
||||||
format-prefix-foreground = ${color.yellow}
|
|
||||||
format-prefix-background = ${color.background}
|
|
||||||
format-background = ${color.background}
|
|
||||||
format-foreground = ${color.foreground}
|
|
||||||
|
|
||||||
; Available tokens:
|
|
||||||
; %title%
|
|
||||||
; %instance% (first part of the WM_CLASS atom, new in version 3.7.0)
|
|
||||||
; %class% (second part of the WM_CLASS atom, new in version 3.7.0)
|
|
||||||
; Default: %title%
|
|
||||||
label = %title%
|
|
||||||
label-maxlen = 50
|
|
||||||
|
|
||||||
; Used instead of label when there is no window title
|
|
||||||
; Available tokens:
|
|
||||||
; None
|
|
||||||
label-empty = Empty
|
|
||||||
label-empty-foreground = #707880
|
|
||||||
|
|
||||||
|
|
||||||
[module/ewmh]
|
|
||||||
type = internal/xworkspaces
|
|
||||||
|
|
||||||
pin-workspaces = true
|
|
||||||
show-urgent = true
|
|
||||||
strip-wsnumbers = true
|
|
||||||
index-sort = true
|
|
||||||
enable-click = true
|
|
||||||
enable-scroll = true
|
|
||||||
wrapping-scroll = true
|
|
||||||
reverse-scroll = false
|
|
||||||
fuzzy-match = false
|
|
||||||
|
|
||||||
icon-0 = 1;
|
|
||||||
icon-1 = 2;
|
|
||||||
icon-2 = 3;
|
|
||||||
icon-3 = 4;
|
|
||||||
icon-4 = 5;
|
|
||||||
icon-5 = 6;
|
|
||||||
icon-6 = 7;
|
|
||||||
icon-7 = 8;
|
|
||||||
icon-8 = 9;
|
|
||||||
icon-9 = 10;
|
|
||||||
icon-default =
|
|
||||||
|
|
||||||
format = <label-state>
|
|
||||||
|
|
||||||
label-active = %icon%
|
|
||||||
label-active-foreground = ${color.green}
|
|
||||||
label-active-background = ${color.background}
|
|
||||||
label-active-underline = ${color.green}
|
|
||||||
label-active-padding = 1
|
|
||||||
|
|
||||||
label-occupied = %icon%
|
|
||||||
label-occupied-padding = 1
|
|
||||||
label-occupied-background = ${color.background}
|
|
||||||
|
|
||||||
label-urgent = %icon%
|
|
||||||
label-urgent-foreground = ${color.red}
|
|
||||||
label-urgent-background = ${color.background}
|
|
||||||
label-urgent-padding = 1
|
|
||||||
|
|
||||||
|
|
||||||
[module/menu]
|
|
||||||
type = custom/text
|
|
||||||
|
|
||||||
format = <label>
|
|
||||||
label = ""
|
|
||||||
|
|
||||||
format-background = ${color.background}
|
|
||||||
format-foreground = ${color.yellow}
|
|
||||||
|
|
||||||
|
|
||||||
click-left = rofi -show drun -no-default-config -config ~/.config/rofi/dmenu.rasi
|
|
||||||
; create a new workspace (with the smallest possible number)
|
|
||||||
click-middle = i3-msg workspace $(comm -23 <(seq 1 100) <(i3-msg -t get_workspaces | jq '.[].num' | sort -n) | head -n 1)
|
|
||||||
click-right = rofi-powermenu
|
|
||||||
|
|
||||||
; scroll-up = notify-send scroll up
|
|
||||||
; scroll-down = notify-send scroll down
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Terminate already running bar instances
|
|
||||||
killall -q polybar
|
|
||||||
|
|
||||||
# Wait until the processes have been shut down
|
|
||||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
|
||||||
|
|
||||||
# Launch Polybar, using default config location ~/.config/polybar/config
|
|
||||||
polybar main --config=~/.config/polybar/config.ini &
|
|
||||||
# polybar main --config=~/.config/polybar/config_new.ini &
|
|
||||||
|
|
||||||
echo "Polybar launched..."
|
|
||||||
@@ -0,0 +1,245 @@
|
|||||||
|
{
|
||||||
|
"layer": "top",
|
||||||
|
"position": "top",
|
||||||
|
"exclusive": true,
|
||||||
|
"height": 36,
|
||||||
|
"spacing": 1,
|
||||||
|
"margin-top": 5,
|
||||||
|
"margin-left":10,
|
||||||
|
"margin-right": 10,
|
||||||
|
|
||||||
|
// big screens/pc
|
||||||
|
"modules-left": ["custom/menu", "sway/workspaces", "sway/mode", "network", "custom/screen_time", "custom/weather", "custom/playerctl" ],
|
||||||
|
"modules-center": ["clock"],
|
||||||
|
"modules-right": ["custom/advanced_cpu", "custom/nvidia", "memory", "disk", "custom/brightness", "pulseaudio", "battery", "custom/microphone", "idle_inhibitor", "tray"],
|
||||||
|
|
||||||
|
// small screens/laptops
|
||||||
|
//"modules-left": ["custom/menu", "sway/workspaces", "sway/mode", "network", "custom/screen_time", "custom/weather", "custom/playerctl" ],
|
||||||
|
//"modules-center": ["clock"],
|
||||||
|
//"modules-right": ["memory", "disk", "backlight", "pulseaudio", "battery", "idle_inhibitor", "tray"],
|
||||||
|
|
||||||
|
"custom/advanced_cpu": {
|
||||||
|
"format": " CPU <span color='#dedede'>{}</span>",
|
||||||
|
"interval": 1,
|
||||||
|
"return-type": "json",
|
||||||
|
"exec": "s-tui -j | jq -c '{text: \"\\((.Util.Avg|tonumber|floor))% \\((.Temp[\"Tctl,0\"]|tonumber|floor))°C \\((.Frequency.Avg|tonumber/1000)|tostring|tonumber|(. * 10 | floor / 10)) GHz\"}'"
|
||||||
|
},
|
||||||
|
|
||||||
|
"custom/brightness": {
|
||||||
|
"format": " <span color='#dedede'>{}%</span>",
|
||||||
|
"exec": "ddcutil --disable-dynamic-sleep --noverify --skip-ddc-checks --sleep-multiplier 0.1 --bus 12 getvcp 10 | awk -F'= *|,' '/current value/ {print $2}'",
|
||||||
|
"interval": 1,
|
||||||
|
"on-scroll-up": "ddcutil --disable-dynamic-sleep --noverify --skip-ddc-checks --sleep-multiplier 0.1 --bus 12 setvcp 10 + 10",
|
||||||
|
"on-scroll-down": "ddcutil --disable-dynamic-sleep --noverify --skip-ddc-checks --sleep-multiplier 0.1 --bus 12 setvcp 10 - 10",
|
||||||
|
"on-click": "ddcutil --disable-dynamic-sleep --noverify --skip-ddc-checks --sleep-multiplier 0.1 --bus 12 setvcp 10 0",
|
||||||
|
"on-click-middle": "ddcutil --disable-dynamic-sleep --noverify --skip-ddc-checks --sleep-multiplier 0.1 --bus 12 setvcp 10 40",
|
||||||
|
"on-click-right": "ddcutil --disable-dynamic-sleep --noverify --skip-ddc-checks --sleep-multiplier 0.1 --bus 12 setvcp 10 100"
|
||||||
|
},
|
||||||
|
|
||||||
|
"custom/menu": {
|
||||||
|
"format": "",
|
||||||
|
"tooltip": false,
|
||||||
|
"on-click": "rofi -show drun -no-default-config -config ~/.config/rofi/main.rasi",
|
||||||
|
"on-click-middle": "swaymsg workspace $(comm -23 <(seq 1 100) <(swaymsg -t get_workspaces | jq '.[].num' | sort -n) | head -n 1)",
|
||||||
|
"on-click-right": "rofi-powermenu"
|
||||||
|
},
|
||||||
|
|
||||||
|
"custom/microphone": {
|
||||||
|
"format": "{text}",
|
||||||
|
"tooltip": false,
|
||||||
|
"interval": 1,
|
||||||
|
"on-click": "~/.config/waybar/microphone.sh toggle",
|
||||||
|
"return-type": "json",
|
||||||
|
"exec": "~/.config/waybar/microphone.sh"
|
||||||
|
},
|
||||||
|
|
||||||
|
"custom/nvidia": {
|
||||||
|
"format": " GPU <span color='#dedede'>{}</span>",
|
||||||
|
"interval": 2,
|
||||||
|
"exec": "nvidia-smi --query-gpu=utilization.gpu,temperature.gpu,memory.used --format=csv,noheader,nounits | awk -F', ' '{print $1\"% \"$2\"°C \"$3\" MiB\"}'"
|
||||||
|
},
|
||||||
|
|
||||||
|
"custom/playerctl": {
|
||||||
|
"format": "{icon}<span color='#dedede'>{text}</span>",
|
||||||
|
"format-icons": {
|
||||||
|
"Playing": " ",
|
||||||
|
"Paused": " "
|
||||||
|
},
|
||||||
|
"max-length": 40,
|
||||||
|
"on-click": "playerctl play-pause",
|
||||||
|
"on-scroll-up": "playerctl next",
|
||||||
|
"on-scroll-down": "playerctl previous",
|
||||||
|
"return-type": "json",
|
||||||
|
"exec": "playerctl -a metadata --format '{\"text\": \"{{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{artist}} - {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F"
|
||||||
|
},
|
||||||
|
|
||||||
|
"custom/screen_time": {
|
||||||
|
"format": " <span color='#dedede'>{}</span>",
|
||||||
|
"interval": 1,
|
||||||
|
"exec": "~/.config/waybar/screen_time.sh"
|
||||||
|
},
|
||||||
|
|
||||||
|
"custom/weather": {
|
||||||
|
"format": "{}",
|
||||||
|
"tooltip": true,
|
||||||
|
"interval": 300,
|
||||||
|
"exec": "~/.config/waybar/weather.sh"
|
||||||
|
},
|
||||||
|
|
||||||
|
"backlight": {
|
||||||
|
"format": "{icon} <span color='#dedede'>{percent}%</span>",
|
||||||
|
"format-icons": ["", ""],
|
||||||
|
"tooltip-format": "{icon} {percent}%",
|
||||||
|
"on-scroll-up": "brightness_control -s +2",
|
||||||
|
"on-scroll-down": "brightness_control -s -2",
|
||||||
|
"smooth-scrolling-threshold": 1.0
|
||||||
|
},
|
||||||
|
|
||||||
|
"battery": {
|
||||||
|
"format": "{icon} <span color='#dedede'>{capacity}% {power:.1f}W</span>",
|
||||||
|
"format-charging": " <span color='#dedede'>{capacity}%</span>",
|
||||||
|
"format-plugged": " <span color='#dedede'>{capacity}%</span>",
|
||||||
|
"format-alt": "{icon} <span color='#dedede'>{time}</span>",
|
||||||
|
"format-icons": [""],
|
||||||
|
"states": {
|
||||||
|
"good": 95,
|
||||||
|
"warning": 40,
|
||||||
|
"critical": 20
|
||||||
|
},
|
||||||
|
"interval": 2
|
||||||
|
},
|
||||||
|
|
||||||
|
"bluetooth": {
|
||||||
|
"format": " <span color='#dedede'>{status}</span>",
|
||||||
|
"format-disabled": "",
|
||||||
|
"format-connected": " <span color='#dedede'>{num_connections} connected</span>",
|
||||||
|
"tooltip-format": "{controller_alias}\t{controller_address}",
|
||||||
|
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}",
|
||||||
|
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}"
|
||||||
|
},
|
||||||
|
|
||||||
|
"clock": {
|
||||||
|
"format": " <span color='#dedede'>{:%a %d %b %H:%M}</span>",
|
||||||
|
"format-alt": " <span color='#dedede'>{:%A %d %B %Y %H:%M:%S}</span>",
|
||||||
|
"tooltip-format": "<span size='20000'><tt>{calendar}</tt></span>",
|
||||||
|
"interval": 1,
|
||||||
|
"calendar": {
|
||||||
|
"mode": "month",
|
||||||
|
"mode-mon-col": 3,
|
||||||
|
"weeks-pos": "",
|
||||||
|
"on-scroll": 1,
|
||||||
|
"on-click-right": "mode",
|
||||||
|
"iso8601": true,
|
||||||
|
"format": {
|
||||||
|
"months": "<span color='#6c90a8'><b>{}</b></span>",
|
||||||
|
"days": "<span color='#dedede'>{}</span>",
|
||||||
|
"weeks": "<span color='#d4a067'><b>W{}</b></span>",
|
||||||
|
"weekdays": "<span color='#999f63'><b>{}</b></span>",
|
||||||
|
"today": "<span color='#cb5760'><b>{}</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": " CPU <span color='#dedede'>{usage}% {avg_frequency} Ghz</span>",
|
||||||
|
"format-alt": " <span color='#dedede'>{avg_frequency} Ghz</span>",
|
||||||
|
"tooltip": true,
|
||||||
|
"interval": 1
|
||||||
|
},
|
||||||
|
|
||||||
|
"disk": {
|
||||||
|
"format": " ROM <span color='#dedede'>{percentage_used}%</span>",
|
||||||
|
"format-alt": " ROM <span color='#dedede'>{used}/{total}</span>",
|
||||||
|
"path": "/",
|
||||||
|
"interval": 30
|
||||||
|
},
|
||||||
|
|
||||||
|
"idle_inhibitor": {
|
||||||
|
"format": "{icon}",
|
||||||
|
"format-icons": {
|
||||||
|
"activated": "",
|
||||||
|
"deactivated": ""
|
||||||
|
},
|
||||||
|
"tooltip": true
|
||||||
|
},
|
||||||
|
|
||||||
|
"memory": {
|
||||||
|
"format": " RAM <span color='#dedede'>{used:.1f} GiB</span>",
|
||||||
|
"format-alt": " RAM <span color='#dedede'>{percentage}%</span>",
|
||||||
|
"interval": 1
|
||||||
|
},
|
||||||
|
|
||||||
|
"network": {
|
||||||
|
"format-wifi": " <span color='#dedede'>{essid}</span>",
|
||||||
|
"format-ethernet": " <span color='#dedede'>{ifname}</span>",
|
||||||
|
"format-linked": " {ifname} <span color='#dedede'>(No IP)</span>",
|
||||||
|
"format-disconnected": " <span color='#dedede'>Offline</span>",
|
||||||
|
"format-alt": " <span color='#dedede'>{ifname}</span> <span color='#dedede'>{bandwidthDownBits}</span> <span color='#dedede'>{bandwidthUpBits}</span>",
|
||||||
|
"tooltip-format": "{ifname}: {ipaddr}/{cidr}",
|
||||||
|
"interval": 1
|
||||||
|
},
|
||||||
|
|
||||||
|
"pulseaudio": {
|
||||||
|
"format": "{icon} <span color='#dedede'>{volume}%</span>",
|
||||||
|
"format-bluetooth": " <span color='#dedede'>{volume}%</span>",
|
||||||
|
"format-bluetooth-muted": " <span color='#dedede'>{icon}</span>",
|
||||||
|
"format-muted": "",
|
||||||
|
"format-icons": {
|
||||||
|
"headphone": "",
|
||||||
|
"hands-free": "",
|
||||||
|
"headset": "",
|
||||||
|
"phone": "",
|
||||||
|
"portable": "",
|
||||||
|
"car": "",
|
||||||
|
"default": ["", "", ""]
|
||||||
|
},
|
||||||
|
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
|
||||||
|
"on-click-right": "pactl set-sink-mute @DEFAULT_SINK@ toggle ",
|
||||||
|
"on-scroll-up": "volume_control -s +5 -m 125",
|
||||||
|
"on-scroll-down": "volume_control -s -5 -m 125",
|
||||||
|
"smooth-scrolling-threshold": 1.0
|
||||||
|
},
|
||||||
|
|
||||||
|
"sway/mode": {
|
||||||
|
"format": " <span color='#dedede'>{}</span>"
|
||||||
|
},
|
||||||
|
|
||||||
|
"sway/workspaces": {
|
||||||
|
"disable-scroll": false,
|
||||||
|
"all-outputs": true,
|
||||||
|
"format": "{icon}",
|
||||||
|
"format-icons": {
|
||||||
|
"1": "",
|
||||||
|
"2": "",
|
||||||
|
"3": "",
|
||||||
|
"4": "",
|
||||||
|
"5": "",
|
||||||
|
"6": "",
|
||||||
|
"7": "",
|
||||||
|
"8": "",
|
||||||
|
"9": "",
|
||||||
|
"10": ""
|
||||||
|
},
|
||||||
|
"smooth-scrolling-threshold": 1.0,
|
||||||
|
},
|
||||||
|
|
||||||
|
"temperature": {
|
||||||
|
"format": "{icon} <span color='#dedede'>{temperatureC}°C</span>",
|
||||||
|
"format-icons": [""],
|
||||||
|
"interval": 1,
|
||||||
|
"warning-threshold": 70,
|
||||||
|
"critical-threshold": 90
|
||||||
|
},
|
||||||
|
|
||||||
|
"tray": {
|
||||||
|
"icon-size": 18,
|
||||||
|
"spacing": 5
|
||||||
|
}
|
||||||
|
}
|
||||||
Executable
+15
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
mic=$(pactl get-source-mute @DEFAULT_SOURCE@ | awk '{print $2}')
|
||||||
|
|
||||||
|
if [ "$1" == "toggle" ]; then
|
||||||
|
pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||||
|
fi
|
||||||
|
|
||||||
|
mic=$(pactl get-source-mute @DEFAULT_SOURCE@ | awk '{print $2}')
|
||||||
|
|
||||||
|
if [ "$mic" == "yes" ]; then
|
||||||
|
echo '{"text":"","class":"mic-muted"}'
|
||||||
|
else
|
||||||
|
echo '{"text":"","class":"mic-unmuted"}'
|
||||||
|
fi
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo "{\"alt\": \"$(cat /sys/firmware/acpi/platform_profile)\"}"
|
||||||
Executable
+27
@@ -0,0 +1,27 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
LOG_FILE="$HOME/.system_stats.json"
|
||||||
|
today=$(date +%Y-%m-%d)
|
||||||
|
|
||||||
|
if [ ! -f "$LOG_FILE" ]; then
|
||||||
|
echo "0s"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
total_seconds=$(jq -r ".\"$today\".screen.turned_on_s // 0" "$LOG_FILE")
|
||||||
|
|
||||||
|
if [ "$total_seconds" -eq 0 ]; then
|
||||||
|
echo "0s"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
h=$(( total_seconds / 3600 ))
|
||||||
|
m=$(( (total_seconds % 3600) / 60 ))
|
||||||
|
s=$(( total_seconds % 60 ))
|
||||||
|
|
||||||
|
output=""
|
||||||
|
[ "$h" -gt 0 ] && output="${h}h "
|
||||||
|
[ "$m" -ge 0 ] && output="${output}${m}m "
|
||||||
|
# [ "$s" -gt 0 ] || [ -z "$output" ] && output="${output}${s}s"
|
||||||
|
|
||||||
|
echo "$output" | sed 's/ $//'
|
||||||
@@ -0,0 +1,367 @@
|
|||||||
|
/* Everforest Dark Colors */
|
||||||
|
@define-color background #2b3339;
|
||||||
|
@define-color background-light #323c41;
|
||||||
|
@define-color foreground #d3c6aa;
|
||||||
|
@define-color black #3c474d;
|
||||||
|
@define-color red #e67e80;
|
||||||
|
@define-color green #a7c080;
|
||||||
|
@define-color yellow #dbbc7f;
|
||||||
|
@define-color blue #7fbbb3;
|
||||||
|
@define-color magenta #d699b6;
|
||||||
|
@define-color cyan #83c092;
|
||||||
|
@define-color white #d3c6aa;
|
||||||
|
@define-color orange #e69875;
|
||||||
|
|
||||||
|
/* Pastel TTY Colors */
|
||||||
|
@define-color background #212121;
|
||||||
|
@define-color background-light #3a3a3a;
|
||||||
|
@define-color foreground #e0e0e0;
|
||||||
|
@define-color black #5a5a5a;
|
||||||
|
@define-color red #ff9a9e;
|
||||||
|
@define-color green #b5e8a9;
|
||||||
|
@define-color yellow #ffe6a7;
|
||||||
|
@define-color blue #63a4ff;
|
||||||
|
@define-color magenta #dda0dd;
|
||||||
|
@define-color cyan #a3e8e8;
|
||||||
|
@define-color white #ffffff;
|
||||||
|
@define-color orange #ff8952;
|
||||||
|
|
||||||
|
/* Gruvbox Dark Colors */
|
||||||
|
@define-color background #282828;
|
||||||
|
@define-color background-light #3c3836;
|
||||||
|
@define-color foreground #ebdbb2;
|
||||||
|
@define-color black #32302f;
|
||||||
|
@define-color red #cc241d;
|
||||||
|
@define-color green #98971a;
|
||||||
|
@define-color yellow #d79921;
|
||||||
|
@define-color blue #458588;
|
||||||
|
@define-color magenta #b16286;
|
||||||
|
@define-color cyan #689d6a;
|
||||||
|
@define-color white #ebdbb2;
|
||||||
|
@define-color orange #d65d0e;
|
||||||
|
|
||||||
|
/* Tokyo Night */
|
||||||
|
@define-color background #1a1b26;
|
||||||
|
@define-color background-light #24283b;
|
||||||
|
@define-color foreground #c0caf5;
|
||||||
|
@define-color black #15161e;
|
||||||
|
@define-color red #f7768e;
|
||||||
|
@define-color green #9ece6a;
|
||||||
|
@define-color yellow #e0af68;
|
||||||
|
@define-color blue #7aa2f7;
|
||||||
|
@define-color magenta #bb9af7;
|
||||||
|
@define-color cyan #7dcfff;
|
||||||
|
@define-color white #a9b1d6;
|
||||||
|
@define-color orange #ff9e64;
|
||||||
|
|
||||||
|
/* Keyitdev's onedark */
|
||||||
|
@define-color background #1b1b25;
|
||||||
|
@define-color background-light #282A36;
|
||||||
|
@define-color foreground #dedede;
|
||||||
|
@define-color black #15161e;
|
||||||
|
@define-color red #cb5760;
|
||||||
|
@define-color green #999f63;
|
||||||
|
@define-color yellow #d4a067;
|
||||||
|
@define-color blue #6c90a8;
|
||||||
|
@define-color magenta #776690;
|
||||||
|
@define-color cyan #528a9b;
|
||||||
|
@define-color white #dedede;
|
||||||
|
@define-color orange #c87c3e;
|
||||||
|
|
||||||
|
/* Module-specific colors */
|
||||||
|
@define-color workspaces-color @foreground;
|
||||||
|
@define-color workspaces-focused-bg @green;
|
||||||
|
@define-color workspaces-focused-fg @green;
|
||||||
|
@define-color workspaces-urgent-bg @background;
|
||||||
|
@define-color workspaces-urgent-fg @red;
|
||||||
|
|
||||||
|
/* Text and border colors for modules */
|
||||||
|
@define-color backlight-color @yellow;
|
||||||
|
@define-color battery-charging-color @orange;
|
||||||
|
@define-color battery-color @orange;
|
||||||
|
@define-color battery-critical-color @red;
|
||||||
|
@define-color battery-warning-color @yellow;
|
||||||
|
@define-color bluetooth-color @yellow;
|
||||||
|
@define-color clock-color @red;
|
||||||
|
@define-color cpu-color @cyan;
|
||||||
|
@define-color disk-color @orange;
|
||||||
|
@define-color idle-inhibitor-active-color @red;
|
||||||
|
@define-color idle-inhibitor-color @green;
|
||||||
|
@define-color memory-color @red;
|
||||||
|
@define-color menu-color @yellow;
|
||||||
|
@define-color mode-color @orange;
|
||||||
|
@define-color network-color @blue;
|
||||||
|
@define-color network-ethernet-color @magenta;
|
||||||
|
@define-color network-disconnected-color @red;
|
||||||
|
@define-color nvidia-color @green;
|
||||||
|
@define-color playerctl-color @green;
|
||||||
|
@define-color playerctl-paused-color @orange;
|
||||||
|
@define-color pulseaudio-color @blue;
|
||||||
|
@define-color pulseaudio-muted-color @red;
|
||||||
|
@define-color screen_time-color @orange;
|
||||||
|
@define-color temperature-color @cyan;
|
||||||
|
@define-color temperature-critical-color @red;
|
||||||
|
@define-color temperature-warning-color @yellow;
|
||||||
|
@define-color tray-color @magenta;
|
||||||
|
@define-color weather-color @cyan;
|
||||||
|
|
||||||
|
/* Base styling for all modules */
|
||||||
|
*{
|
||||||
|
border: none;
|
||||||
|
border-radius: 0;
|
||||||
|
font-family: "Iosevka Nerd Font";
|
||||||
|
font-size: 18px;
|
||||||
|
min-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
window#waybar {
|
||||||
|
background-color: transparent;
|
||||||
|
color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Common module styling with border-bottom */
|
||||||
|
#backlight,
|
||||||
|
#battery,
|
||||||
|
#bluetooth,
|
||||||
|
#clock,
|
||||||
|
#cpu,
|
||||||
|
#custom-advanced_cpu,
|
||||||
|
#custom-brightness,
|
||||||
|
#custom-nvidia,
|
||||||
|
#custom-menu,
|
||||||
|
#custom-microphone,
|
||||||
|
#custom-playerctl,
|
||||||
|
#custom-screen_time,
|
||||||
|
#custom-weather,
|
||||||
|
#disk,
|
||||||
|
#idle_inhibitor,
|
||||||
|
#memory,
|
||||||
|
#mode,
|
||||||
|
#network,
|
||||||
|
#pulseaudio,
|
||||||
|
#temperature,
|
||||||
|
#tray
|
||||||
|
{
|
||||||
|
padding: 6px 12px 4px 12px;
|
||||||
|
margin: 0 2px;
|
||||||
|
color: @foreground;
|
||||||
|
border-bottom: 2px solid;
|
||||||
|
background-color: @background;
|
||||||
|
border-radius: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Workspaces styling */
|
||||||
|
#workspaces{
|
||||||
|
/* padding: 2px 12px 0px 12px; */
|
||||||
|
padding: 2px 8px 0px 8px;
|
||||||
|
margin: 0 2px;
|
||||||
|
background-color: @background;
|
||||||
|
border-radius: 20px;
|
||||||
|
border-bottom: 2px solid @green;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button {
|
||||||
|
/* padding: 0 8px; */
|
||||||
|
padding: 0px;
|
||||||
|
background-color: transparent;
|
||||||
|
color: @workspaces-color;
|
||||||
|
/* margin: 0; */
|
||||||
|
margin: 0 -4px;
|
||||||
|
border-radius: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button:hover {
|
||||||
|
background: @background-light;
|
||||||
|
box-shadow: inherit;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.focused {
|
||||||
|
/* box-shadow: inset 0 -2px @workspaces-focused-fg; */
|
||||||
|
/* border-bottom: 2px solid @workspaces-focused-fg; */
|
||||||
|
color: @workspaces-focused-fg;
|
||||||
|
/* font-weight: 900; */
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.urgent {
|
||||||
|
background-color: @workspaces-urgent-bg;
|
||||||
|
color: @workspaces-urgent-fg;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Module-specific styling */
|
||||||
|
#backlight, #custom-brightness{
|
||||||
|
color: @backlight-color;
|
||||||
|
border-bottom-color: @backlight-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery {
|
||||||
|
color: @battery-color;
|
||||||
|
border-bottom-color: @battery-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery.charging, #battery.plugged {
|
||||||
|
color: @battery-charging-color;
|
||||||
|
border-bottom-color: @battery-charging-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery.critical:not(.charging) {
|
||||||
|
color: @battery-critical-color;
|
||||||
|
border-bottom-color: @battery-critical-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery.warning:not(.charging) {
|
||||||
|
color: @battery-warning-color;
|
||||||
|
border-bottom-color: @battery-warning-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#bluetooth{
|
||||||
|
color: @bluetooth-color;
|
||||||
|
border-bottom-color: @bluetooth-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock {
|
||||||
|
color: @clock-color;
|
||||||
|
border-bottom-color: @clock-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#cpu, #custom-advanced_cpu {
|
||||||
|
color: @cpu-color;
|
||||||
|
border-bottom-color: @cpu-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-menu{
|
||||||
|
color: @menu-color;
|
||||||
|
border-bottom-color: @menu-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-microphone.mic-muted{
|
||||||
|
color: @red;
|
||||||
|
border-bottom-color: @red;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-microphone.mic-unmuted{
|
||||||
|
color: @green;
|
||||||
|
border-bottom-color: @green;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-nvidia {
|
||||||
|
color: @nvidia-color;
|
||||||
|
border-bottom-color: @nvidia-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-playerctl {
|
||||||
|
color: @playerctl-color;
|
||||||
|
border-bottom-color: @playerctl-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-playerctl.Paused {
|
||||||
|
color: @playerctl-paused-color;
|
||||||
|
border-bottom-color: @playerctl-paused-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-playerctl.Playing {
|
||||||
|
color: @playerctl-color;
|
||||||
|
border-bottom-color: @playerctl-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-screen_time{
|
||||||
|
color: @screen_time-color;
|
||||||
|
border-bottom-color: @screen_time-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-weather {
|
||||||
|
color: @weather-color;
|
||||||
|
border-bottom-color: @weather-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#disk {
|
||||||
|
color: @disk-color;
|
||||||
|
border-bottom-color: @disk-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#idle_inhibitor {
|
||||||
|
color: @idle-inhibitor-color;
|
||||||
|
border-bottom-color: @idle-inhibitor-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#idle_inhibitor.activated {
|
||||||
|
color: @idle-inhibitor-active-color;
|
||||||
|
border-bottom-color: @idle-inhibitor-active-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#memory {
|
||||||
|
color: @memory-color;
|
||||||
|
border-bottom-color: @memory-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mode {
|
||||||
|
color: @mode-color;
|
||||||
|
border-bottom-color: @mode-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mpd {
|
||||||
|
color: @mpd-color;
|
||||||
|
border-bottom-color: @mpd-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#network {
|
||||||
|
color: @network-color;
|
||||||
|
border-bottom-color: @network-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#network.wifi {
|
||||||
|
color: @network-color;
|
||||||
|
border-bottom-color: @network-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#network.ethernet{
|
||||||
|
color: @network-ethernet-color;
|
||||||
|
border-bottom-color: @network-ethernet-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#network.disconnected {
|
||||||
|
color: @network-disconnected-color;
|
||||||
|
border-bottom-color: @network-disconnected-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pulseaudio {
|
||||||
|
color: @pulseaudio-color;
|
||||||
|
border-bottom-color: @pulseaudio-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pulseaudio.muted {
|
||||||
|
color: @pulseaudio-muted-color;
|
||||||
|
border-bottom-color: @pulseaudio-muted-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#temperature {
|
||||||
|
color: @temperature-color;
|
||||||
|
border-bottom-color: @temperature-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#temperature.warning {
|
||||||
|
color: @temperature-warning-color;
|
||||||
|
border-bottom-color: @temperature-warning-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#temperature.critical {
|
||||||
|
color: @temperature-critical-color;
|
||||||
|
border-bottom-color: @temperature-critical-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray {
|
||||||
|
background-color: @background;
|
||||||
|
border-bottom-color: @tray-color;
|
||||||
|
padding: 0 10px;
|
||||||
|
margin: 0 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray > .needs-attention {
|
||||||
|
-gtk-icon-effect: highlight;
|
||||||
|
color: @red;
|
||||||
|
border-bottom-color: @red;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray > .passive {
|
||||||
|
-gtk-icon-effect: dim;
|
||||||
|
}
|
||||||
Executable
+33
@@ -0,0 +1,33 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
weather=$(curl -s "https://wttr.in/?format=%C")
|
||||||
|
temp=$(curl -s "https://wttr.in/?format=%t")
|
||||||
|
feels_like_time=$(curl -s "https://wttr.in/?format=%f")
|
||||||
|
|
||||||
|
if [[ $weather == *"Sunny"* ]]; then icon=""
|
||||||
|
elif [[ $weather == *"Clear"* ]]; then icon=""
|
||||||
|
|
||||||
|
elif [[ $weather == *"Partly cloudy"* ]]; then icon=""
|
||||||
|
elif [[ $weather == *"Cloudy"* ]]; then icon=""
|
||||||
|
|
||||||
|
elif [[ $weather == *"Very cloudy"* ]]; then icon=""
|
||||||
|
elif [[ $weather == *"Overcast"* ]]; then icon=""
|
||||||
|
elif [[ $weather == *"Fog"* ]]; then icon=""
|
||||||
|
elif [[ $weather == *"Mist"* ]]; then icon=""
|
||||||
|
|
||||||
|
elif [[ $weather == *"Light rain"* ]]; then icon=""
|
||||||
|
elif [[ $weather == *"Patchy rain"* ]]; then icon=""
|
||||||
|
elif [[ $weather == *"Light drizzle"* ]]; then icon=""
|
||||||
|
elif [[ $weather == *"Showers"* ]]; then icon=""
|
||||||
|
elif [[ $weather == *"Rain"* ]]; then icon=""
|
||||||
|
|
||||||
|
elif [[ $weather == *"Light snow"* ]]; then icon=""
|
||||||
|
elif [[ $weather == *"Patchy snow"* ]]; then icon=""
|
||||||
|
elif [[ $weather == *"Snow"* ]]; then icon=""
|
||||||
|
|
||||||
|
elif [[ $weather == *"Thunder"* ]]; then icon=""
|
||||||
|
|
||||||
|
else icon=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "$icon <span color='#dedede'>$temp ($feels_like_time)</span>"
|
||||||
Reference in New Issue
Block a user