diff options
Diffstat (limited to '.config/polybar/modules.ini')
| -rw-r--r-- | .config/polybar/modules.ini | 230 |
1 files changed, 230 insertions, 0 deletions
diff --git a/.config/polybar/modules.ini b/.config/polybar/modules.ini new file mode 100644 index 0000000..57b35cf --- /dev/null +++ b/.config/polybar/modules.ini @@ -0,0 +1,230 @@ +[module/date] +type = internal/date +interval = 5 + +time = " %I:%M %p " +time-alt = " %d %B %Y (%A) %H:%M:%S " + +format-foreground = ${colors.time-fg} +format-background = ${colors.time-bg} + +label = %time% + +[module/xwindow] +type = internal/xwindow +label = " %title:0:60:...%" +label-foreground = ${colors.xwindow-fg} +label-background = ${colors.xwindow-bg} + +[module/storage-root] +type = internal/fs +interval = 25 + +mount-0 = / + +label-mounted = " / %percentage_used%% " +label-mounted-background = ${colors.fs-root-bg} +label-mounted-foreground = ${colors.fs-root-fg} + +[module/storage-home] +type = internal/fs +interval = 25 + +mount-0 = /home/vidhukant + +label-mounted = " /home %percentage_used%% " +label-mounted-background = ${colors.fs-home-bg} +label-mounted-foreground = ${colors.fs-home-fg} + +[module/cpu] +type = internal/cpu +interval = 2 +label = " %{T3} %{T-}%percentage:2%% " +label-background = ${colors.cpu-bg} +label-foreground = ${colors.cpu-fg} + +[module/memory] +type = internal/memory +interval = 2 + +label-background = ${colors.mem-bg} +label-foreground = ${colors.mem-fg} +label = " %{T3} %{T-} %percentage_used%% " + +[module/wlan] +type = internal/network +interface = wlo1 +interval = 3.0 + +format-connected = <ramp-signal> <label-connected> +format-connected-background = ${colors.wifi-bg} +format-connected-foreground = ${colors.wifi-fg} +label-connected = "%essid% (%local_ip%)" +;label-connected = "%local_ip%" + +label-disconnected = "" +label-disconnected-foreground = ${colors.foreground} +label-disconnected-background = ${colors.wifi-bg} + +ramp-signal-0 = " %{T3} %{T-}" +ramp-signal-1 = " %{T3} %{T-}" +ramp-signal-2 = " %{T3} %{T-}" +ramp-signal-3 = " %{T3} %{T-}" +ramp-signal-4 = " %{T3} %{T-}" +ramp-signal-foreground = ${colors.foreground} + +[module/eth] +type = internal/network +interface = eno1 +interval = 3.0 + +label-connected-background = ${colors.ethernet-bg} +label-connected-foreground = ${colors.ethernet-fg} + +format-connected-prefix = "" +format-connected-prefix-foreground = ${colors.foreground} +label-connected = " %{T3} %{T-} %local_ip% " + +format-disconnected = +;format-disconnected = <label-disconnected> +;label-disconnected = %ifname% disconnected +;label-disconnected-foreground = ${colors.foreground-alt} + +[module/uptime] +type = custom/script +click-left = module_toggle +interval = 100 +exec = "uptime | awk -F, '{sub(".*up ",x,$1);sub(" min","",$1);sub(":","H ",$1);print $1"M"}'" +label = "/ UP: %output% " + +hidden = true +format-foreground = ${colors.uptime-fg} +format-background = ${colors.uptime-bg} + +[module/pulseaudio] +type = internal/pulseaudio +format-volume = <label-volume> +label-volume = " %{T3} %{T-}%percentage%% " +label-volume-background = ${colors.vol-bg} +label-volume-foreground = ${colors.vol-fg} + +use-ui-max = false +label-muted = " %{T3} %{T-}%percentage%% " +label-muted-foreground = ${colors.vol-fg-alt} +label-muted-background = ${colors.vol-bg-alt} + +[module/temperature] +type = internal/temperature +thermal-zone = 0 +warn-temperature = 65 + +label = " %{T3} %{T-} %temperature-c% " +label-warn = " %{T3} %{T-} %temperature-c% " + +label-background = ${colors.temp-bg} +label-foreground = ${colors.temp-fg} +label-warn-foreground = ${colors.temp-warn-fg} +label-warn-background = ${colors.temp-warn-bg} + +[module/battery] +type = internal/battery + +low-at = 30 +full-at = 100 +battery = BAT0 +adapter = ADP1 +poll-interval = 5 + +label-charging = " %{T3} %{T-}%percentage%% " +label-discharging = " %{T3} %{T-}%percentage%% " +label-low = " %{T3} %{T-}%percentage%% " +label-full = + +# for some reason it won't work properly without this +format-low = <label-low> + +label-charging-background = ${colors.batt-charging-bg} +label-charging-foreground = ${colors.batt-charging-fg} + +label-discharging-background = ${colors.batt-discharging-bg} +label-discharging-foreground = ${colors.batt-discharging-fg} + +label-low-background = ${colors.batt-low-bg} +label-low-foreground = ${colors.batt-low-fg} + +label-full-background = ${colors.batt-full-bg} +label-full-foreground = ${colors.batt-full-fg} + +[module/ewmh] +type = internal/xworkspaces + +pin-workspaces = false +enable-click = true +enable-scroll = false +format = <label-state> + +label-monitor = %name% + +label-active = %name% +label-active-foreground = ${colors.ws-active-fg} +label-active-background = ${colors.ws-active-bg} +label-active-padding = 3 + +label-occupied = "%{T5}%name%%{T-}" +label-occupied-foreground = ${colors.ws-occupied-fg} +label-occupied-background = ${colors.ws-occupied-bg} +label-occupied-padding = 3 + +label-empty = %name% +label-empty-foreground = ${colors.ws-empty-fg} +label-empty-background = ${colors.ws-empty-bg} +label-empty-padding = 3 + +label-background = #FFFFFF + +label-urgent = %name% +label-urgent-foreground = ${colors.ws-urgent-fg} +label-urgent-background = ${colors.ws-urgent-bg} +label-urgent-padding = 3 + +[module/backlight] +type = internal/backlight + +#card = amdgpu_bl2 +use-actual-brightness = true +poll-interval = 0 + +label = " %{T3} %{T-}%percentage%% " +format-foreground = ${colors.backlight-fg} +format-background = ${colors.backlight-bg} + +; Enable changing the backlight with the scroll wheel +; NOTE: This may require additional configuration on some systems. Polybar will +; write to `/sys/class/backlight/${self.card}/brightness` which requires polybar +; to have write access to that file. +; DO NOT RUN POLYBAR AS ROOT. +; The recommended way is to add the user to the +; `video` group and give that group write-privileges for the `brightness` file. +; See the ArchWiki for more information: +; https://wiki.archlinux.org/index.php/Backlight#ACPI +; Default: false +enable-scroll = true +scroll-interval = 1 + +[module/systray] +type = "internal/tray" + +tray-background = ${colors.systray-bg} +tray-foreground = ${colors.systray-fg} + +tray-spacing = 8px + +[module/polydoro] +type = custom/script +exec = FORMAT_WORK_IDLE=" Task {counter}" FORMAT_BREAK_IDLE="%{F#89b4fa} Break {counter}%{F-}" FORMAT_LONG_BREAK_IDLE="%{F#a6e3a1} Long Break%{F-}" FORMAT_WORK="%{F#94e2d5} {time}%{F-}" FORMAT_BREAK="%{F#89b4fa} {time}%{F-}" FORMAT_LONG_BREAK="%{F#a6e3a1} {time}%{F-}" FORMAT_WORK_PAUSED="%{F#94e2d5} {counter} - {time}%{F-}" FORMAT_BREAK_PAUSED="%{F#89b4fa} {counter} - {time}%{F-}" FORMAT_LONG_BREAK_PAUSED="%{F#a6e3a1} {time}%{F-}" polydoro -l +tail = true + +format-padding = 2 +click-left = polydoro toggle +click-middle = polydoro skip +click-right = polydoro reset |