Rename scripts
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
df6b44e541
commit
410d0b33c6
46 changed files with 566 additions and 249 deletions
|
@ -28,7 +28,7 @@ monitor = HDMI-1
|
|||
width = 100%
|
||||
height = ${settings.bar-height}
|
||||
offset-x = 0
|
||||
offset-y = 0
|
||||
offset-y = 0
|
||||
|
||||
font-0 = Noto Sans:pixelsize=12;3
|
||||
font-1 = Noto Sans CJK JP:pixelsize=12;3
|
||||
|
@ -42,8 +42,8 @@ padding-right = 2
|
|||
module-margin = 2
|
||||
|
||||
modules-left = i3
|
||||
modules-center = xwindow
|
||||
modules-right = battery volume backlight wlan date power
|
||||
modules-center =
|
||||
modules-right = update gmail todo battery volume backlight wlan date power
|
||||
tray-position = none
|
||||
separator = |
|
||||
|
||||
|
@ -106,20 +106,53 @@ label-urgent-background = ${settings.background-color}
|
|||
label-urgent-padding = ${settings.padding}
|
||||
|
||||
|
||||
#######################################
|
||||
# Active window title
|
||||
#######################################
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
###############################################################################
|
||||
# Update count #
|
||||
###############################################################################
|
||||
[module/update]
|
||||
type = custom/script
|
||||
exec = ${XDG_CONFIG_HOME}/polybar/scripts/update-count
|
||||
|
||||
format = <label>
|
||||
label = %title%
|
||||
label-maxlen = 50
|
||||
label = %output%
|
||||
|
||||
interval = 60
|
||||
|
||||
click-left = xdg-open "https://www.archlinux.org/"
|
||||
|
||||
###############################################################################
|
||||
# G-Mail #
|
||||
###############################################################################
|
||||
[module/gmail]
|
||||
type = custom/script
|
||||
exec = ${XDG_CONFIG_HOME}/polybar/scripts/gmail/count.py
|
||||
|
||||
format = <label>
|
||||
label = %output%
|
||||
|
||||
interval = 60
|
||||
|
||||
click-left = xdg-open https://mail.google.com
|
||||
|
||||
|
||||
#######################################
|
||||
# Battery indicator
|
||||
#######################################
|
||||
###############################################################################
|
||||
# Todo #
|
||||
###############################################################################
|
||||
[module/todo]
|
||||
type = custom/script
|
||||
exec = echo "$(${XDG_BIN_HOME}/todo | wc -l) / 3" | bc
|
||||
|
||||
format = <label>
|
||||
label = %output%
|
||||
|
||||
interval = 60
|
||||
|
||||
click-left = xdg-open "https://todoist.com/"
|
||||
|
||||
|
||||
###############################################################################
|
||||
# Battery indicator #
|
||||
###############################################################################
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
full-at = 99
|
||||
|
@ -153,9 +186,9 @@ interval = 5
|
|||
poll-interval = 5
|
||||
|
||||
|
||||
#######################################
|
||||
# Volume indicator
|
||||
#######################################
|
||||
##############################################################################
|
||||
# Volume indicator #
|
||||
##############################################################################
|
||||
[module/volume]
|
||||
type = internal/pulseaudio
|
||||
use-ui-max = true
|
||||
|
@ -173,9 +206,9 @@ ramp-volume-2 =
|
|||
interval = 5
|
||||
|
||||
|
||||
#######################################
|
||||
# Brightness indicator
|
||||
#######################################
|
||||
##############################################################################
|
||||
# Brightness indicator #
|
||||
##############################################################################
|
||||
[module/backlight]
|
||||
type = custom/script
|
||||
exec = light -G | cut -d. -f1
|
||||
|
@ -189,9 +222,9 @@ scroll-up = light -A 5
|
|||
scroll-down = light -U 5
|
||||
|
||||
|
||||
#######################################
|
||||
# WiFi indicator
|
||||
#######################################
|
||||
##############################################################################
|
||||
# WiFi indicator #
|
||||
##############################################################################
|
||||
[module/wlan]
|
||||
type = internal/network
|
||||
interface = wlp3s0
|
||||
|
@ -212,9 +245,9 @@ ramp-signal-foreground = ${settings.foreground-color}
|
|||
interval = 1
|
||||
|
||||
|
||||
#######################################
|
||||
# Time and date
|
||||
#######################################
|
||||
##############################################################################
|
||||
# Time and date #
|
||||
##############################################################################
|
||||
[module/date]
|
||||
type = custom/script
|
||||
exec = date +"%F %H:%M:%S"
|
||||
|
@ -227,19 +260,14 @@ interval = 1
|
|||
click-left = xdg-open "https://calendar.google.com"
|
||||
|
||||
|
||||
#######################################
|
||||
# Power menu
|
||||
#######################################
|
||||
##############################################################################
|
||||
# Power menu #
|
||||
##############################################################################
|
||||
[module/power]
|
||||
type = custom/script
|
||||
exec = echo -e "\uf011"
|
||||
type = custom/text
|
||||
content =
|
||||
|
||||
format = <label>
|
||||
label = %output%
|
||||
|
||||
interval = 5
|
||||
|
||||
click-left = $XDG_BIN_HOME/power.sh
|
||||
click-left = $XDG_BIN_HOME/power
|
||||
|
||||
|
||||
#######################################
|
||||
|
@ -247,7 +275,7 @@ click-left = $XDG_BIN_HOME/power.sh
|
|||
#######################################
|
||||
[module/music]
|
||||
type = custom/script
|
||||
exec = ${XDG_BIN_HOME}/music.sh
|
||||
exec = ${XDG_BIN_HOME}/music
|
||||
|
||||
format = <label>
|
||||
label = %output%
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue