[script] Add simple due script for bibtex file
Scrapes a bibtex file for 'due' field, and outputs all found entries with their priority and sorted for date.
This commit is contained in:
parent
1f25f86290
commit
f96f9f2211
24 changed files with 455 additions and 27 deletions
|
|
@ -17,10 +17,8 @@
|
|||
;==========================================================
|
||||
|
||||
[colors]
|
||||
;background = ${xrdb:color0:#222}
|
||||
background = ${xrdb:background}
|
||||
background-alt = ${xrdb:color8}
|
||||
;foreground = ${xrdb:color7:#222}
|
||||
foreground = ${xrdb:foreground}
|
||||
foreground-alt = ${xrdb:color3}
|
||||
primary = ${xrdb:color1}
|
||||
|
|
@ -46,6 +44,10 @@ margin-top = 0
|
|||
margin-bottom = 0
|
||||
|
||||
[bar/simple-top]
|
||||
; enable inter process communication, so that we can send messages
|
||||
; to polybar via polybar-msg command
|
||||
enable-ipc = true
|
||||
|
||||
; Put the bar at the bottom of the screen
|
||||
bottom=false
|
||||
|
||||
|
|
@ -56,7 +58,7 @@ padding-right = 0
|
|||
module-margin-left = 2
|
||||
|
||||
modules-left = workspaces
|
||||
modules-center = mprisdisplay date
|
||||
modules-center = music date papersdue
|
||||
modules-right = networkspeed archupdates cpu temp backlight volume battery
|
||||
; do not use offsets for the bar, would only work with override-redirect
|
||||
; and will mess up tray https://github.com/polybar/polybar/issues/1355
|
||||
|
|
@ -85,7 +87,7 @@ fixed-center = true
|
|||
; See the Fonts wiki page for more details
|
||||
font-0 = Comic Neue
|
||||
font-1 = NotoSans
|
||||
font-2 = Iosevka:size=18
|
||||
font-2 = Iosevka:size=18;1
|
||||
|
||||
cursor-click = pointer
|
||||
|
||||
|
|
@ -177,12 +179,12 @@ interval = 1.0
|
|||
; To list all the zone types, run
|
||||
; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done
|
||||
; Default: 0
|
||||
thermal-zone = 0
|
||||
thermal-zone = 2
|
||||
; Use `sensors` to find preferred temperature source, then run
|
||||
; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done
|
||||
; hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp1_input
|
||||
; Base temperature for where to start the ramp (in degrees celsius)
|
||||
base-temperature = 40
|
||||
base-temperature = 50
|
||||
; Threshold temperature to display warning label (in degrees celsius)
|
||||
warn-temperature = 70
|
||||
units = true
|
||||
|
|
@ -209,26 +211,44 @@ date-alt = %A, %d %B %Y (W %V)
|
|||
time-alt = %H:%M
|
||||
label = %date% %{T2} %{T-}%time%
|
||||
|
||||
; display information on currently playing track, allows simple track manipulation
|
||||
[module/music]
|
||||
type = custom/script
|
||||
exec = $XDG_CONFIG_HOME/polybar/scripts/poly-mprisdisplay
|
||||
exec-if = type $XDG_CONFIG_HOME/polybar/scripts/poly-mprisdisplay
|
||||
tail = true
|
||||
click-left = kill -USR1 %pid%
|
||||
click-right = kill -USR2 %pid%
|
||||
; TODO: add album art display (on click?) - retrieved by playerctl metadata mpris:artUrl
|
||||
|
||||
; display information on remaining papers to read for the upcoming week
|
||||
[module/papersdue]
|
||||
type = custom/script
|
||||
exec = $XDG_CONFIG_HOME/polybar/scripts/poly-papersdue
|
||||
exec-if = type bib-due
|
||||
tail = true
|
||||
click-left = exist rofi-bib-due normal "opening due papers" && rofi-bib-due -p1 -u $(date --date='fri this week' +%Y-%m-%d)
|
||||
; format-foreground = ${colors.primary}
|
||||
format-prefix = " "
|
||||
interval = 120
|
||||
|
||||
; display unified available packages for update on arch from repos/aur
|
||||
; uses pacman-contrib/checkupdates if available to avoid partial arch upgrades
|
||||
[module/archupdates]
|
||||
type = custom/script
|
||||
exec = $XDG_CONFIG_HOME/polybar/scripts/poly-archupdates
|
||||
exec-if = type $XDG_CONFIG_HOME/polybar/scripts/poly-archupdates
|
||||
interval = 600
|
||||
format = <label>
|
||||
format-foreground = ${colors.primary}
|
||||
label = %output%
|
||||
format-padding = 2
|
||||
format-prefix = " "
|
||||
; format-foreground = ${colors.primary}
|
||||
|
||||
[module/networkspeed]
|
||||
type = custom/script
|
||||
exec = $XDG_CONFIG_HOME/polybar/scripts/poly-networkspeed
|
||||
tail = true
|
||||
|
||||
[module/mprisdisplay]
|
||||
type = custom/script
|
||||
exec = $XDG_CONFIG_HOME/polybar/scripts/poly-mprisdisplay
|
||||
interval = 3
|
||||
click-left = playerctl play-pause &
|
||||
; TODO: add album art display (on click?) - retrieved by playerctl metadata mpris:artUrl
|
||||
|
||||
[module/volume]
|
||||
type = internal/pulseaudio
|
||||
; Available tags:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue