File tree Expand file tree Collapse file tree 9 files changed +17
-17
lines changed Expand file tree Collapse file tree 9 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ shell scripts for polybar
7
7
8
8
| file | comment | image |
9
9
| :--------------------- | :---------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------- |
10
+ | _ polybar_helper.sh | used in the other scripts for output, net check, etc. | |
10
11
| polybar.sh | start, restart, kill and cycle polybars | |
11
12
| polybar_freshrss.sh | shows the number of rss feeds (unreaded/starred) from freshrss | ![ rss polybar] ( images/rss_polybar.png ) |
12
- | polybar_helper.sh | used in the other scripts for output, net check, etc. | |
13
13
| polybar_inoreader.sh | shows the number of rss feeds (unreaded/starred) from inoreader | ![ rss polybar] ( images/rss_polybar.png ) |
14
14
| polybar_music.sh | cmus statusbar and notification | ![ cmus polybar] ( images/cmus_polybar.png ) ![ cmus notify] ( images/cmus_notify.png ) |
15
15
| polybar_openweather.sh | shows current/forecast weather and sunrise/sunset time from openweather | ![ openweather polybar] ( images/openweather_polybar.png ) ![ openweather notify] ( images/openweather_notify.png ) |
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- # path: /home/klassiker/.local/share/repos/polybar/polybar_helper .sh
3
+ # path: /home/klassiker/.local/share/repos/polybar/_polybar_helper .sh
4
4
# author: klassiker [mrdotx]
5
5
# github: https://github.com/mrdotx/polybar
6
- # date: 2024-02-27T13:01:10 +0100
6
+ # date: 2024-12-18T07:53:02 +0100
7
7
8
8
polybar_add_spacer () {
9
9
polybar_add_spacer_output=" $1 "
Original file line number Diff line number Diff line change 3
3
# path: /home/klassiker/.local/share/repos/polybar/polybar_freshrss.sh
4
4
# author: klassiker [mrdotx]
5
5
# github: https://github.com/mrdotx/polybar
6
- # date: 2023-11-30T14:03:52 +0100
6
+ # date: 2024-12-18T07:53:08 +0100
7
7
8
8
# speed up script by using standard c
9
9
LC_ALL=C
@@ -17,7 +17,7 @@ url_request="http://m625q/freshrss/api/greader.php/reader/api/0"
17
17
url_parameter=" ?output=json"
18
18
19
19
# source polybar helper
20
- . polybar_helper .sh
20
+ . _polybar_helper .sh
21
21
22
22
request () {
23
23
get_pass () {
Original file line number Diff line number Diff line change 3
3
# path: /home/klassiker/.local/share/repos/polybar/polybar_inoreader.sh
4
4
# author: klassiker [mrdotx]
5
5
# github: https://github.com/mrdotx/polybar
6
- # date: 2023-11-30T14:04:07 +0100
6
+ # date: 2024-12-18T07:53:12 +0100
7
7
8
8
# speed up script by using standard c
9
9
LC_ALL=C
@@ -19,7 +19,7 @@ url_request="https://www.inoreader.com/reader/api/0"
19
19
url_parameter=" ?AppId=$app_id &AppKey=$app_key "
20
20
21
21
# source polybar helper
22
- . polybar_helper .sh
22
+ . _polybar_helper .sh
23
23
24
24
request () {
25
25
get_pass () {
Original file line number Diff line number Diff line change 3
3
# path: /home/klassiker/.local/share/repos/polybar/polybar_music.sh
4
4
# author: klassiker [mrdotx]
5
5
# github: https://github.com/mrdotx/polybar
6
- # date: 2024-06-24T15:59:04+0200
6
+ # date: 2024-12-18T07:53:17+0100
7
7
8
8
# source polybar helper
9
- . polybar_helper .sh
9
+ . _polybar_helper .sh
10
10
11
11
trim_string () {
12
12
if [ " $( printf " %s" " $2 " | wc -m) " -ge " $1 " ]; then
Original file line number Diff line number Diff line change 3
3
# path: /home/klassiker/.local/share/repos/polybar/polybar_openweather.sh
4
4
# author: klassiker [mrdotx]
5
5
# github: https://github.com/mrdotx/polybar
6
- # date: 2024-12-02T07:30:54 +0100
6
+ # date: 2024-12-18T07:53:22 +0100
7
7
8
8
# speed up script by using standard c
9
9
LC_ALL=C
@@ -17,7 +17,7 @@ gpg_file="$HOME/.local/share/repos/password-store/www/development/openweathermap
17
17
location_file=" /tmp/weather_location"
18
18
19
19
# source polybar helper
20
- . polybar_helper .sh
20
+ . _polybar_helper .sh
21
21
22
22
request () {
23
23
api_key=" $( \
Original file line number Diff line number Diff line change 3
3
# path: /home/klassiker/.local/share/repos/polybar/polybar_pacman.sh
4
4
# author: klassiker [mrdotx]
5
5
# github: https://github.com/mrdotx/polybar
6
- # date: 2024-03-24T09:48:30 +0100
6
+ # date: 2024-12-18T07:53:26 +0100
7
7
8
8
# use standard c to identify paru ignored updates
9
9
LC_ALL=C
10
10
LANG=C
11
11
12
12
# source polybar helper
13
- . polybar_helper .sh
13
+ . _polybar_helper .sh
14
14
15
15
get_pacman_mirror () {
16
16
grep ' ^Server' /etc/pacman.d/mirrorlist \
Original file line number Diff line number Diff line change 3
3
# path: /home/klassiker/.local/share/repos/polybar/polybar_services.sh
4
4
# author: klassiker [mrdotx]
5
5
# github: https://github.com/mrdotx/polybar
6
- # date: 2024-11-03T06:58:57 +0100
6
+ # date: 2024-12-18T07:53:32 +0100
7
7
8
8
# speed up script by using standard c
9
9
LC_ALL=C
10
10
LANG=C
11
11
12
12
# source polybar helper
13
- . polybar_helper .sh
13
+ . _polybar_helper .sh
14
14
15
15
set_output () {
16
16
if [ -z " $services " ]; then
Original file line number Diff line number Diff line change 3
3
# path: /home/klassiker/.local/share/repos/polybar/polybar_trash-cli.sh
4
4
# author: klassiker [mrdotx]
5
5
# github: https://github.com/mrdotx/polybar
6
- # date: 2023 -12-01T19:41:39 +0100
6
+ # date: 2024 -12-18T07:53:37 +0100
7
7
8
8
# speed up script by using standard c
9
9
LC_ALL=C
10
10
LANG=C
11
11
12
12
# source polybar helper
13
- . polybar_helper .sh
13
+ . _polybar_helper .sh
14
14
15
15
# auth can be something like sudo -A, doas -- or nothing,
16
16
# depending on configuration requirements
You can’t perform that action at this time.
0 commit comments