clean up scripts
3
.bashrc
@ -29,6 +29,9 @@ alias pf='pfetch'
|
||||
# env #
|
||||
# --- #
|
||||
|
||||
export HISTFILE=~/.history
|
||||
export HISTSIZE=5000
|
||||
|
||||
export VISUAL=nvim
|
||||
export EDITOR="$VISUAL"
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
; mode = normal
|
||||
|
||||
# Accepts only non-negative values.
|
||||
; framerate = 30
|
||||
framerate = 40
|
||||
|
||||
# 'autosens' will attempt to decrease sensitivity if the bars peak. 1 = on, 0 = off
|
||||
# new as of 0.6.0 autosens of low values (dynamic range)
|
||||
@ -22,7 +22,7 @@
|
||||
|
||||
# The number of bars (0-512). 0 sets it to auto (fill up console).
|
||||
# Bars' width and space between bars in number of characters.
|
||||
; bars = 0
|
||||
; bars = 24
|
||||
; bar_width = 2
|
||||
; bar_spacing = 1
|
||||
# bar_height is only used for output in "noritake" format
|
||||
|
@ -24,7 +24,7 @@
|
||||
# dynamic width from 0 to 300
|
||||
# width = (0, 300)
|
||||
# constant width of 300
|
||||
width = (200, 600)
|
||||
width = 500
|
||||
|
||||
# The maximum height of a single notification, excluding the frame.
|
||||
height = 300
|
||||
@ -33,7 +33,7 @@
|
||||
origin = top-right
|
||||
|
||||
# Offset from the origin
|
||||
offset = 10x36
|
||||
offset = 18x50
|
||||
|
||||
# Scale factor. It is auto-detected if value is 0.
|
||||
scale = 1
|
||||
|
@ -124,6 +124,7 @@ label-focused-foreground = ${colors.background}
|
||||
label-focused-background = ${colors.primary}
|
||||
|
||||
label-occupied = " %name% "
|
||||
label-occupied-background = ${colors.background-alt}
|
||||
label-empty = " %name% "
|
||||
label-urgent = " %name% "
|
||||
|
||||
@ -159,11 +160,11 @@ label = %title:0:60:...%
|
||||
|
||||
[module/music]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/scripts/player-mpris-tail/player-mpris-tail.py -f '%{F#A7C080}{icon}%{F-} {artist} - {title}' --icon-playing --icon-paused --icon-none --icon-stopped
|
||||
exec = ~/.config/polybar/scripts/player-mpris-tail.py -f '%{F#A7C080}{icon}%{F-} {artist} - %{F#8ABEB7}{title}' --icon-playing --icon-paused --icon-none --icon-stopped
|
||||
tail = true
|
||||
click-middle = ~/.config/polybar/scripts/player-mpris-tail/player-mpris-tail.py previous &
|
||||
click-right = ~/.config/polybar/scripts/player-mpris-tail/player-mpris-tail.py next &
|
||||
click-left = ~/.config/polybar/scripts/player-mpris-tail/player-mpris-tail.py play-pause &
|
||||
click-middle = ~/.config/polybar/scripts/player-mpris-tail.py previous &
|
||||
click-right = ~/.config/polybar/scripts/player-mpris-tail.py next &
|
||||
click-left = ~/.config/polybar/scripts/player-mpris-tail.py play-pause &
|
||||
icon-playing =
|
||||
|
||||
[module/filesystem]
|
||||
@ -180,10 +181,10 @@ label-unmounted-foreground = ${colors.disabled}
|
||||
[module/redshift]
|
||||
type = custom/script
|
||||
format-prefix = " "
|
||||
exec = source ~/.config/polybar/scripts/polybar-redshift/env.sh && ~/.config/polybar/scripts/polybar-redshift/redshift.sh temperature
|
||||
click-left = source ~/.config/polybar/scripts/polybar-redshift/env.sh && ~/.config/polybar/polybar-redshift/scripts/redshift.sh toggle
|
||||
scroll-up = source ~/.config/polybar/scripts/polybar-redshift/env.sh && ~/.config/polybar/scripts/polybar-redshift/redshift.sh increase
|
||||
scroll-down = source ~/.config/polybar/scripts/polybar-redshift/env.sh && ~/.config/polybar/scripts/polybar-redshift/redshift.sh decrease
|
||||
exec = source ~/.config/polybar/scripts/env.sh && ~/.config/polybar/scripts/redshift.sh temperature
|
||||
click-left = source ~/.config/polybar/scripts/env.sh && ~/.config/polybar/scripts/redshift.sh toggle
|
||||
scroll-up = source ~/.config/polybar/scripts/env.sh && ~/.config/polybar/scripts/redshift.sh increase
|
||||
scroll-down = source ~/.config/polybar/scripts/env.sh && ~/.config/polybar/scripts/redshift.sh decrease
|
||||
interval=0.5
|
||||
|
||||
[module/pulseaudio]
|
||||
|
@ -1,15 +0,0 @@
|
||||
# Script: battery-combined-shell
|
||||
|
||||
A shell script that shows the battery status.
|
||||
|
||||
It supports two rechargeable batteries and changing icons. It works even if only one battery is used.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/battery-combined-shell]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/battery-combined-shell.sh
|
||||
interval = 10
|
||||
```
|
@ -1,31 +0,0 @@
|
||||
# Script: battery-combined-tlp
|
||||
|
||||
A shell script that shows the battery status.
|
||||
|
||||
It uses TLP and requires root privileges. Note that the icon doesn't change.
|
||||
|
||||

|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `tlp`
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
You have to add the `tlp-stat` command to the `/etc/sudoers` NOPASSWD of your user:
|
||||
|
||||
```ini
|
||||
user ALL=(ALL) NOPASSWD: /usr/bin/tlp-stat
|
||||
```
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/battery-combined-tlp]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/battery-combined-tlp.sh
|
||||
interval = 10
|
||||
```
|
Before Width: | Height: | Size: 841 B |
@ -1,4 +0,0 @@
|
||||
SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="0", \
|
||||
RUN+="/home/user/.config/polybar/battery-combined-udev.sh --update"
|
||||
SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="1", \
|
||||
RUN+="/home/user/.config/polybar/battery-combined-udev.sh --update"
|
@ -1,22 +0,0 @@
|
||||
# Script: battery-combined-udev
|
||||
|
||||
A shell script that shows the battery status. This is an extended version of [battery-combined-shell](../battery-combined-shell).
|
||||
|
||||
It supports two rechargeable batteries and changing icons. It works even if only one battery is used.
|
||||
|
||||
This script is able to display power supply changes in real time. For this udev is being used.
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
Copy `95-battery.rules` to `/etc/udev/rules.d/95-battery.rules`. Make sure that the paths in the file have been modified properly.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/battery-combined-udev]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/battery-combined-udev.sh
|
||||
tail = true
|
||||
```
|
@ -1,29 +0,0 @@
|
||||
# Script: battery-cyberpower
|
||||
|
||||
A shell script that shows the battery status for CyberPower UPS devices.
|
||||
|
||||
This script is able to display power supply changes in real time.
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `pwrstat` from CyberPower's website
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
You have to add the `pwrstat` command to the `/etc/sudoers` NOPASSWD of your user:
|
||||
|
||||
```ini
|
||||
user ALL=(ALL) NOPASSWD: /usr/bin/pwrstat
|
||||
```
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/battery-cyberpower]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/battery-cyberpower.sh
|
||||
tail = true
|
||||
```
|
@ -1,16 +0,0 @@
|
||||
# Script: dunst-snooze
|
||||
|
||||
A script to disable/enable Dunst notifications. When disabled, notifications will still be created and saved by dunst until you enable it again.
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
## Module
|
||||
```ini
|
||||
[module/dunst-snooze]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/dunst-snooze.sh
|
||||
interval = 10
|
||||
click-left = ~/polybar-scripts/dunst-snooze.sh --toggle &
|
||||
```
|
Before Width: | Height: | Size: 756 B |
Before Width: | Height: | Size: 955 B |
@ -1,44 +0,0 @@
|
||||
# Script: easteregg-pornhub
|
||||
|
||||
A script that shows a button and opens a random video at a large porn website.
|
||||
|
||||

|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
Set your browser at the `click-left` option in your module.
|
||||
|
||||
You should also enable the overline and underline option in your polybar.
|
||||
|
||||
```ini
|
||||
[bar/barname]
|
||||
|
||||
overline-size = 5
|
||||
underline-size = 4
|
||||
```
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/easteregg-pornhub]
|
||||
type = custom/script
|
||||
exec = echo " hub "
|
||||
interval = 3600
|
||||
click-left = "firefox --private-window https://pornhub.com/random" &
|
||||
|
||||
format = <label>
|
||||
format-prefix = " Porn "
|
||||
format-prefix-foreground = #ffffff
|
||||
format-prefix-background = #000000
|
||||
|
||||
format-overline = #000000
|
||||
format-underline = #000000
|
||||
format-foreground = #000000
|
||||
format-background = #ffa500
|
||||
|
||||
format-suffix = " "
|
||||
format-suffix-background = #000000
|
||||
format-suffix-foreground = #000000
|
||||
```
|
Before Width: | Height: | Size: 1.4 KiB |
@ -1,29 +0,0 @@
|
||||
# Script: inbox-imap-pythongpg
|
||||
|
||||
A script that shows if there are unread mails in your IMAPs inbox. Passwords are encrypted with gpg.
|
||||
|
||||

|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
You must have a gpg key to secure your password in configuration files. Encrypt your password using your gpg key like this.
|
||||
|
||||
```ini
|
||||
echo 'your password' > /tmp/imappass
|
||||
gpg -er 'your gpg keyid' /tmp/imappass
|
||||
mv /tmp/imappass.gpg ~/.imappass.gpg
|
||||
shred /tmp/imappass && rm /tmp/imappass
|
||||
```
|
||||
|
||||
For Gmail, you must allow [less secure apps](https://myaccount.google.com/security#connectedapps).
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/inbox-imap-pythongpg]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/inbox-imap-pythongpg.py
|
||||
interval = 60
|
||||
```
|
Before Width: | Height: | Size: 542 B |
@ -1,3 +0,0 @@
|
||||
machine mail.server.tld
|
||||
login username
|
||||
password supersecretpw
|
@ -1,27 +0,0 @@
|
||||
# Script: inbox-imap-shellnetrc
|
||||
|
||||
A script that shows if there are unread mails in your IMAP inbox.
|
||||
|
||||
This script actually use IMAPs. `curl` can also handle unencrypted IMAP. You only need to change the protocol in the command.
|
||||
|
||||
The login data is stored in a `.netrc`. This is more secure because the password is not visible in the process list.
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `curl`
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
For Gmail, you must allow [less secure apps](https://myaccount.google.com/security#connectedapps).
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/inbox-imap-shellnetrc]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/inbox-imap-shellnetrc.sh
|
||||
interval = 60
|
||||
```
|
@ -1,22 +0,0 @@
|
||||
# Script: inbox-imap-shellpass
|
||||
|
||||
A script that shows if there are unread mails in your IMAP inbox.
|
||||
|
||||
This script actually use IMAPs. `curl` can also handle unencrypted IMAP. You only need to change the protocol in the command.
|
||||
|
||||
The login data can be stored in your `pass` password manager.
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `curl`
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/inbox-imap-shellpass]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/inbox-imap-shellpass.sh
|
||||
interval = 60
|
||||
```
|
@ -1,3 +0,0 @@
|
||||
machine mail.server.tld
|
||||
login username
|
||||
password supersecretpw
|
@ -1,22 +0,0 @@
|
||||
# Script: inbox-pop3-shellnetrc
|
||||
|
||||
A script that shows if there are unread mails in your POP3 inbox.
|
||||
|
||||
This script actually use POP3s. `curl` can also handle unencrypted POP3. You only need to change the protocol in the command.
|
||||
|
||||
The login data is stored in a `.netrc`. This is more secure because the password is not visible in the process list.
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `curl`
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/inbox-pop3-shellnetrc]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/inbox-pop3-shellnetrc.sh
|
||||
interval = 60
|
||||
```
|
@ -1,30 +0,0 @@
|
||||
# Script: info-airqualityindex
|
||||
|
||||
A script that shows the local World Air Quality Index. It's an indicator for the air pollution.
|
||||
|
||||

|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `curl`
|
||||
* `jq`
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
You need an API token. [Request one](https://aqicn.org/data-platform/token/).
|
||||
|
||||
Choose a city and make sure that the result is what you expect. `berlin` is a valid `CITY` here: http://aqicn.org/city/berlin/. Or use the [map](https://aqicn.org/map/) to find a monitoring station near you. `germany/berlin/friedrichshain-frankfurter-allee` works also as `CITY`.
|
||||
|
||||
If `CITY` is left empty, the location is retrieved via the Mozilla Location API.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-airqualityindex]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-airqualityindex.sh
|
||||
interval = 600
|
||||
```
|
Before Width: | Height: | Size: 1.2 KiB |
@ -1,15 +0,0 @@
|
||||
# Script: info-camera-mic
|
||||
|
||||
A shell script for displaying an indicator of camera and microphone usage.
|
||||
|
||||

|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-camera-mic]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-camera-mic.sh
|
||||
interval = 5
|
||||
```
|
Before Width: | Height: | Size: 1.9 KiB |
@ -1,29 +0,0 @@
|
||||
# Script: info-cava
|
||||
|
||||
A simple script that runs a small audio visualizer using cava on your taskbar
|
||||
|
||||

|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* [`cava`](https://github.com/karlstav/cava)
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
Configuration can be made by providing the following command line arguments:
|
||||
* `-f`|`--framerate FRAMERATE` : Framerate to be used by cava, default is 60.
|
||||
* `-b`|`--bars BARS`: Amount of bars, default is 8.
|
||||
* `-e`|`--extra_colors EXTRA_COLORS`: Color gradient used on higher values, separated by commas, default is `fdd,fcc,fbb,faa`, spaces and #s are ignored.
|
||||
* `-c`|`--channels {stereo,left,right,average}`: Audio channels to be used, defaults to stereo.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-cava]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-cava.py -f 24 -b 12 -e fffdfc,fffafe,ffeafa,ffc3d2 -c average
|
||||
tail = true
|
||||
```
|
Before Width: | Height: | Size: 3.0 KiB |
@ -1,26 +0,0 @@
|
||||
# Script: info-docker
|
||||
|
||||
Shows the number of Docker containers in one of the states: `created`, `restarting`, `running`, `removing`, `paused`, `exited`, `dead`
|
||||
|
||||

|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
You have to add the `docker` command to the `/etc/sudoers` NOPASSWD of your user:
|
||||
|
||||
```ini
|
||||
user ALL=(ALL) NOPASSWD: /usr/bin/docker ps -qf status=running
|
||||
user ALL=(ALL) NOPASSWD: /usr/bin/docker ps -qf status=exited
|
||||
user ALL=(ALL) NOPASSWD: /usr/bin/docker ps -qf status=dead
|
||||
```
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-docker]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-docker.sh
|
||||
interval = 60
|
||||
```
|
Before Width: | Height: | Size: 626 B |
@ -1,20 +0,0 @@
|
||||
# Script: info-dualshock4
|
||||
|
||||
A shell script that shows the battery level of a DualShock 4 Controller.
|
||||
|
||||

|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
The Icon is from [Font Awesome 5](https://fontawesome.com/icons/playstation?style=brands).
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/battery-dualshock4]
|
||||
type= custom/script
|
||||
exec = ~/polybar-scripts/info-dualshock4.sh
|
||||
interval = 10
|
||||
```
|
Before Width: | Height: | Size: 4.0 KiB |
@ -1,18 +0,0 @@
|
||||
# Script: info-ethermine
|
||||
|
||||
This script reports the current hashrate (in MH/s) for your ethermine account.
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `python-requests`
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-ethermine]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-ethermine.sh
|
||||
interval = 60
|
||||
```
|
@ -1,15 +0,0 @@
|
||||
# Script: info-eyestrain
|
||||
|
||||
A script for avoiding digital eye strain.
|
||||
|
||||
It follows the 20-20-20 rule. The timer displays how long it is until the next break. You can add this to send a notification and play a sound when the time is up.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-eyestrain]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-eyestrain.sh
|
||||
interval = 60
|
||||
```
|
@ -1,25 +0,0 @@
|
||||
# Script: info-gitlab-pipelines
|
||||
|
||||
Displays the number of succeeded, running and failed gitlab-pipelines triggered by a user.
|
||||
|
||||

|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* jq
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
Insert the specific server-url, username and your GitLab token (Settings -> Access Token).
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-gitlab-pipelines]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-gitlab-pipelines.sh
|
||||
interval = 30
|
||||
...
|
Before Width: | Height: | Size: 602 B |
@ -1,33 +0,0 @@
|
||||
# Script: info-hackspeed
|
||||
|
||||
A small script that shows your typing speed. Happy Hacking!
|
||||
|
||||

|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `xorg-xinput`
|
||||
* `awk`
|
||||
* coreutils (`rm`, `stdbuf`, `mktemp`, `stat`, you probably have this)
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
* `KEYBOARD_ID`: name of your keyboard. See Setup above. Default: `AT Translated Set 2 keyboard`
|
||||
* `METRIC`: either `cpm` (characters per minute) of `wpm` ([words per minute, 1 word = 5 characters](https://en.wikipedia.org/wiki/Words_per_minute)). Default: `cpm`
|
||||
* `FORMAT`: format string according to which the metric will be output. Default: `# %d $METRIC`
|
||||
* `INTERVAL`: amount of seconds to gather data. Default: 20
|
||||
* `LAYOUT`: keyboard layout, to be able to only count letters and numbers. Currently supported are `qwerty`, `azerty`, `qwertz` and `dvorak`. If you have a different layout, please contribute a condition for it! See the script's source code. Use the special value `dontcare` to count all keys, not just letters and numbers. Default: `qwerty`
|
||||
|
||||
If after 20 seconds the value stays at 0 even though you're typing, you may have to configure the name of your keyboard. Change the setting `KEYBOARD_ID` (see Configuration below) in the script. You can find your keyboard description with `xinput list --short`.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-hackspeed]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-hackspeed.sh
|
||||
tail = true
|
||||
```
|
Before Width: | Height: | Size: 539 B |
@ -1,31 +0,0 @@
|
||||
# Script: info-healthchecks.io
|
||||
|
||||
Shows the health of your services registered with [healthchecks.io](https://healthchecks.io).
|
||||
|
||||

|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `jq`
|
||||
* `curl`
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
Modify any of the all-caps variables to configure the script:
|
||||
* `API_KEY`: Your [healthchecks.io](https://healthchecks.io) API key. These are project specific and can be generated on the project settings page.
|
||||
* `CHECK_ENDPOINT`: URL of the checks API endpoint. Change if self-hosting.
|
||||
* `STATES`: Array of states to monitor. Available options: `"up" "down" "new" "pending" "grace" "started" "paused"`
|
||||
* `COLORS`: Associative array that maps a color to each configured state. Defaults to white (#ffffff).
|
||||
* `SHOWN_TAGS`: Array of tags to show. Leave empty to disable filtering based on tags.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-healthchecks.io]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-healthchecks.io.sh
|
||||
interval = 60
|
||||
```
|
Before Width: | Height: | Size: 576 B |
@ -1,15 +0,0 @@
|
||||
# Script: info-hexdate
|
||||
|
||||
Print the current date in a hex format.
|
||||
|
||||

|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-hexdate]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-hexdate.sh
|
||||
interval = 60
|
||||
```
|
Before Width: | Height: | Size: 1.1 KiB |
@ -1,27 +0,0 @@
|
||||
# Script: info-hlwm-workspaces
|
||||
|
||||
Displays all herbstluftwm workspaces with support for all workspace states (`focused`, `visible`, `occupied`, `empty`, `urgent`).
|
||||
|
||||

|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `herbstluftwm` running as your WM
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
On its own the script is pretty plain as there are no colors. There are a bunch of <kbd>TODO</kbd> comments where you can `echo` [Formatting Tags](https://github.com/jaagr/polybar/wiki/Formatting#format-tags) for certain workspace state to make it more colorful and help you actually distinguish the different states.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-hlwm-workspaces]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-hlwm-workspaces.sh
|
||||
tail = true
|
||||
scroll-up = herbstclient use_index -1 --skip-visible &
|
||||
scroll-down = herbstclient use_index +1 --skip-visible &
|
||||
```
|
Before Width: | Height: | Size: 2.1 KiB |
@ -1,13 +0,0 @@
|
||||
# Script: info-kernel
|
||||
|
||||
A script that shows the running kernel version.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-kernel]
|
||||
type = custom/script
|
||||
exec = uname -r
|
||||
interval = 1024
|
||||
```
|
@ -1,17 +0,0 @@
|
||||
# Script: info-pingrtt
|
||||
|
||||
A script that displays a ping result. It also shows a colored icon.
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-pingrtt]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-pingrtt.sh
|
||||
interval = 10
|
||||
```
|
Before Width: | Height: | Size: 794 B |
Before Width: | Height: | Size: 878 B |
Before Width: | Height: | Size: 989 B |
@ -1,19 +0,0 @@
|
||||
# Script: info-podman
|
||||
|
||||
Shows the number of Podman containers in one of the states: `created`, `exited`, `paused`, `running`, `unknown`
|
||||
|
||||

|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* [`podman`](https://github.com/containers/podman)
|
||||
|
||||
|
||||
## Module
|
||||
```ini
|
||||
[module/info-podman]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-podman.sh
|
||||
interval = 60
|
||||
```
|
Before Width: | Height: | Size: 919 B |
@ -1,15 +0,0 @@
|
||||
# Script: info-projecthamster
|
||||
|
||||
This script displays Hamster Time Tracker information.
|
||||
|
||||

|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-projecthamster]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-projecthamster.sh
|
||||
interval = 5
|
||||
```
|
Before Width: | Height: | Size: 2.9 KiB |
@ -1,15 +0,0 @@
|
||||
# Script: info-redshift-temp
|
||||
|
||||
This script displays the current color temperature.
|
||||
|
||||

|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-redshift-temp]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-redshift-temp.sh
|
||||
interval = 5
|
||||
```
|
Before Width: | Height: | Size: 589 B |
@ -1,25 +0,0 @@
|
||||
# Script: info-softwarecounter
|
||||
|
||||
A script that counts the number of specified running software including GUIs and processes.
|
||||
|
||||
Options to only monitor GUI applications or only processes exist. Users can add their own applications or processes they wish to watch simply by updating the existing dictionaries at the start of the script.
|
||||
|
||||
Arbitrary program counts can be combined, for example, the vim/nvim or chrome/chromium counts can be added together and the total displayed.
|
||||
|
||||

|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `wmctrl`
|
||||
* `pgrep`
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```
|
||||
[module/info-softwarecounter]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-softwarecounter.py
|
||||
interval = 10
|
||||
```
|
Before Width: | Height: | Size: 8.3 KiB |
@ -1,20 +0,0 @@
|
||||
# Script: info-ssh-sessions
|
||||
|
||||
A script that displays the count of current ssh sessions as well as the public IP address of the fist session.
|
||||
|
||||

|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `lsof`
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-ssh-sessions]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-ssh-sessions.sh
|
||||
interval = 5
|
||||
```
|
Before Width: | Height: | Size: 3.0 KiB |
@ -1,28 +0,0 @@
|
||||
# Script: info-taskspooler
|
||||
|
||||
A small script that displays the number of queues/runtimes for one or more task spooler servers.
|
||||
|
||||

|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `task-spooler`
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
By default the script will output the count of the default task-spooler server.
|
||||
|
||||
Arguments can be passed to show custom task-spooler servers by using the `TS_SOCKET variable`. These custom servers will need to use a socket filename format like /tmp/ts-socket.SOCK_NAME or the script will be unable to find the server. Arguments are passed as `name,sock_name` with sock_name being optional, e.g. `default yt,youtube p,podcast`.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-taskspooler]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-task-spooler/info-taskspooler.sh
|
||||
# exec = ~/polybar-scripts/info-taskspooler/info-taskspooler.sh default yt,youtube p,podcast
|
||||
interval = 5
|
||||
```
|
Before Width: | Height: | Size: 3.3 KiB |
@ -1,16 +0,0 @@
|
||||
# Script: info-timew
|
||||
|
||||
This script displays the daily tracked time. You can click it, to start tracking, using timew.
|
||||
|
||||
You can use the `--weekday` toggle, to view daily or weekly time spend. (may take the `interval` time to update)
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-timew]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-timew.sh
|
||||
interval = 10
|
||||
click-left = ~/polybar-scripts/info-timew.sh --toggle
|
||||
click-right = ~/polybar-scripts/info-timew.sh --weekday
|
||||
```
|
@ -1,16 +0,0 @@
|
||||
# Script: info-timezone
|
||||
|
||||
A custom polybar script to switch the timezone of the date displayed.
|
||||
|
||||

|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-timezone]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-timezone.sh
|
||||
tail = true
|
||||
click-left = kill -USR1 %pid%
|
||||
```
|
Before Width: | Height: | Size: 14 KiB |
@ -1,16 +0,0 @@
|
||||
# Script: info-tmux-sessions
|
||||
|
||||
A simple script to show tmux sessions.
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-tmux-sessions]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-tmux-sessions.sh
|
||||
interval = 5
|
||||
```
|
Before Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 2.2 KiB |