diff --git a/dot_dotfiles/polybar/polybar-scripts/README.md b/dot_dotfiles/polybar/polybar-scripts/README.md index 3cedefb..e88ed1e 100644 --- a/dot_dotfiles/polybar/polybar-scripts/README.md +++ b/dot_dotfiles/polybar/polybar-scripts/README.md @@ -1,8 +1,8 @@ # polybar-scripts -[![Build Status](https://travis-ci.org/x70b1/polybar-scripts.svg?branch=master)](https://travis-ci.org/x70b1/polybar-scripts) -[![GitHub contributors](https://img.shields.io/github/contributors/x70b1/polybar-scripts.svg)](https://github.com/x70b1/polybar-scripts/graphs/contributors) -[![license](https://img.shields.io/github/license/x70b1/polybar-scripts.svg)](https://github.com/x70b1/polybar-scripts/blob/master/LICENSE) +[![Codecheck](https://github.com/polybar/polybar-scripts/workflows/Codecheck/badge.svg?branch=master)](https://github.com/polybar/polybar-scripts/actions) +[![GitHub contributors](https://img.shields.io/github/contributors/polybar/polybar-scripts.svg)](https://github.com/polybar/polybar-scripts/graphs/contributors) +[![license](https://img.shields.io/github/license/polybar/polybar-scripts.svg)](https://github.com/polybar/polybar-scripts/blob/master/LICENSE) This is a community project. We write and collect scripts for Polybar! @@ -17,25 +17,39 @@ Your script isn't here yet? You have ideas to extend the scripts or descriptions Is this your first time here? You should definitely take a look at these scripts: -* [battery-combined-udev](polybar-scripts/battery-combined-udev) * [openweathermap-fullfeatured](polybar-scripts/openweathermap-fullfeatured) * [player-mpris-tail](polybar-scripts/player-mpris-tail) -* [pulseaudio-tail](polybar-scripts/pulseaudio-tail) +* [battery-combined-udev](polybar-scripts/battery-combined-udev) +* [system-bluetooth-bluetoothctl](polybar-scripts/system-bluetooth-bluetoothctl) +* [notification-reddit](polybar-scripts/notification-reddit) +* [inbox-imap-shellnetrc](polybar-scripts/inbox-imap-shellnetrc) +* [isrunning-service](polybar-scripts/isrunning-service) * [system-usb-udev](polybar-scripts/system-usb-udev) -* [updates-arch-combined](polybar-scripts/updates-arch-combined) +* [updates-pacman-aurhelper](polybar-scripts/updates-pacman-aurhelper) * [info-hackspeed](polybar-scripts/info-hackspeed) +## Setup + +* Save the script of your choice somewhere at `~/.config/polybar/`. +* Don't forget to make the script executable: `chmod +x ~/.config/polybar/script.sh`. +* Copy the module settings into your configuration file. +* Replace the appropriate icon strings in the script (e.g. replace `#1` with `🎉`). + + ## all colors are beautiful -[![updates-arch-combined](polybar-scripts/updates-arch-combined/screenshots/1.png)](polybar-scripts/updates-arch-combined/) +[![updates-pacman-aurhelper](polybar-scripts/updates-pacman-aurhelper/screenshots/1.png)](polybar-scripts/updates-pacman-aurhelper/) [![system-cpu-temppercore](polybar-scripts/system-cpu-temppercore/screenshots/1.png)](polybar-scripts/system-cpu-temppercore/) [![notification-chess](polybar-scripts/notification-chess/screenshots/1.png)](polybar-scripts/notification-chess/) -[![inbox-reddit](polybar-scripts/inbox-reddit/screenshots/1.png)](polybar-scripts/inbox-reddit/) -[![openvpn-isrunning](polybar-scripts/openvpn-isrunning/screenshots/1.png)](polybar-scripts/openvpn-isrunning/) -[![inbox-imap-python](polybar-scripts/inbox-imap-python/screenshots/1.png)](polybar-scripts/inbox-imap-python/) +[![notification-reddit](polybar-scripts/notification-reddit/screenshots/1.png)](polybar-scripts/notification-reddit/) +[![vpn-openvpn-isrunning](polybar-scripts/vpn-openvpn-isrunning/screenshots/1.png)](polybar-scripts/vpn-openvpn-isrunning/) +[![inbox-imap-pythongpg](polybar-scripts/inbox-imap-pythongpg/screenshots/1.png)](polybar-scripts/inbox-imap-pythongpg/) [![openweathermap-fullfeatured](polybar-scripts/openweathermap-fullfeatured/screenshots/1.png)](polybar-scripts/openweathermap-fullfeatured/) -[![ticker-btceur](polybar-scripts/ticker-btceur/screenshots/1.png)](polybar-scripts/ticker-btceur/) +[![ticker-crypto](polybar-scripts/ticker-crypto/screenshots/1.png)](polybar-scripts/ticker-crypto/) +[![info-docker](polybar-scripts/info-docker/screenshots/1.png)](polybar-scripts/info-docker/) +[![easteregg-pornhub](polybar-scripts/easteregg-pornhub/screenshots/1.png)](polybar-scripts/easteregg-pornhub/) +[![info-airqualityindex](polybar-scripts/info-airqualityindex/screenshots/1.png)](polybar-scripts/info-airqualityindex/) [![player-mpris-simple](polybar-scripts/player-mpris-simple/screenshots/1.png)](polybar-scripts/player-mpris-simple/) [![battery-combined-tlp](polybar-scripts/battery-combined-tlp/screenshots/1.png)](polybar-scripts/battery-combined-tlp/) [![info-projecthamster](polybar-scripts/info-projecthamster/screenshots/1.png)](polybar-scripts/info-projecthamster/) @@ -47,33 +61,65 @@ Is this your first time here? You should definitely take a look at these scripts [![openweathermap-detailed](polybar-scripts/openweathermap-detailed/screenshots/1.png)](polybar-scripts/openweathermap-detailed/) [![info-hackspeed](polybar-scripts/info-hackspeed/screenshots/1.png)](polybar-scripts/info-hackspeed/) [![info-xampp](polybar-scripts/info-xampp/screenshots/1.png)](polybar-scripts/info-xampp/) +[![info-taskspooler](polybar-scripts/info-taskspooler/screenshots/1.png)](polybar-scripts/info-taskspooler/) +[![network-publicip](polybar-scripts/network-publicip/screenshots/1.png)](polybar-scripts/network-publicip/) +[![system-thinklight](polybar-scripts/system-thinklight/screenshots/1.png)](polybar-scripts/system-thinklight/) [![player-mpris-tail](polybar-scripts/player-mpris-tail/screenshots/1.png)](polybar-scripts/player-mpris-tail/) [![info-redshift-temp](polybar-scripts/info-redshift-temp/screenshots/1.png)](polybar-scripts/info-redshift-temp/) [![info-trash](polybar-scripts/info-trash/screenshots/1.png)](polybar-scripts/info-trash/) -[![pulseaudio-rofi](polybar-scripts/pulseaudio-rofi/screenshots/1.png)](polybar-scripts/pulseaudio-rofi/) -[![pulseaudio-rofi](polybar-scripts/info-softwarecounter/screenshots/1.png)](polybar-scripts/info-softwarecounter/) -[![info-twitch-countdown](polybar-scripts/info-twitch-countdown/screenshots/1.png)](polybar-scripts/info-twitch-countdown/) -[![info-twitch-countdown](polybar-scripts/info-twitch-countdown/screenshots/2.png)](polybar-scripts/info-twitch-countdown/) +[![vpn-wireguard-wg](polybar-scripts/vpn-wireguard-wg/screenshots/1.png)](polybar-scripts/vpn-wireguard-wg/) +[![vpn-wireguard-wg](polybar-scripts/vpn-wireguard-wg/screenshots/2.png)](polybar-scripts/vpn-wireguard-wg/) +[![info-softwarecounter](polybar-scripts/info-softwarecounter/screenshots/1.png)](polybar-scripts/info-softwarecounter/) +[![vpn-anyconnect-status](polybar-scripts/vpn-anyconnect-status/screenshots/1.png)](polybar-scripts/vpn-anyconnect-status/) +[![player-cmus](polybar-scripts/player-cmus/screenshots/1.png)](polybar-scripts/player-cmus/) [![info-todotxt](polybar-scripts/info-todotxt/screenshots/1.png)](polybar-scripts/info-todotxt/) +[![vpn-networkmanager-status](polybar-scripts/vpn-networkmanager-status/screenshots/1.png)](polybar-scripts/vpn-networkmanager-status/) [![info-wifionice](polybar-scripts/info-wifionice/screenshots/1.png)](polybar-scripts/info-wifionice/) +[![network-localip](polybar-scripts/network-localip/screenshots/1.png)](polybar-scripts/network-localip/) +[![updates-dnf](polybar-scripts/updates-dnf/screenshots/1.png)](polybar-scripts/updates-dnf/) +[![system-eprivacy](polybar-scripts/system-eprivacy/screenshots/1.png)](polybar-scripts/system-eprivacy/) +[![network-ipinfo.io](polybar-scripts/network-ipinfo.io/screenshots/1.png)](polybar-scripts/network-ipinfo.io/) +[![system-gpu-optimus](polybar-scripts/system-gpu-optimus/screenshots/1.png)](polybar-scripts/system-gpu-optimus/) +[![info-tmux-sessions](polybar-scripts/info-tmux-sessions/screenshots/1.png)](polybar-scripts/info-tmux-sessions/) +[![info-hlwm-workspaces](polybar-scripts/info-hlwm-workspaces/screenshots/1.png)](polybar-scripts/info-hlwm-workspaces/) +[![info-hexdate](polybar-scripts/info-hexdate/screenshots/1.png)](polybar-scripts/info-hexdate/) +[![notification-spacex](polybar-scripts/notification-spacex/screenshots/1.png)](polybar-scripts/notification-spacex/) ## See also these other user repositories: * [vyachkonovalov/polybar-gmail](https://github.com/vyachkonovalov/polybar-gmail): A Polybar module to show unread messages from Gmail +* [vyachkonovalov/bar-protonmail](https://github.com/vyachkonovalov/bar-protonmail): A Waybar/Polybar module for ProtonMail * [0nse/now_playing](https://github.com/0nse/now_playing): Output the currently scrobbling song -* [dakuten/taskwarrior-polybar](https://github.com/dakuten/taskwarrior-polybar): merely just a script showing the most urgent task and allowing it to be marked done -* [quelotic/polybarModules](https://github.com/quelotic/polybarModules): scripts for mail and caffeine +* [DRKblade/polybar-warrior](https://github.com/DRKblade/polybar-warrior): A script to browse through your tasks and mark them as done. +* [dakuten/taskwarrior-polybar](https://github.com/dakuten/taskwarrior-polybar): Merely just a script showing the most urgent task and allowing it to be marked done +* [quelotic/polybarModules](https://github.com/quelotic/polybarModules): Scripts for mail and caffeine * [vyp/scripts](https://github.com/vyp/scripts): A script to show focused, occupied, free and urgent herbstluftwm tags in polybar * [willHol/polybar-crypto](https://github.com/willHol/polybar-crypto): A polybar script that displays the price of crypto-currencies * [DanaruDev/UnseenMail](https://framagit.org/DanaruDev/UnseenMail): Polybar Python script for viewing unread email from multi accounts * [drdeimos/polybar_another_battery](https://github.com/drdeimos/polybar_another_battery): Simple battery charge level watcher with notifications (libnotify) -* [zemmsoares/polynews](https://github.com/zemmsoares/polynews): read news on your polybar - - -## Setup - -* Save the script of your choice somewhere at `~/.config/polybar/`. -* Don't forget to make the script executable: `chmod +x ~/.config/polybar/script.sh`. -* Copy the module settings into your configuration file. -* Replace the appropriate icon strings in the script (e.g. replace `#1` with `🎉`). +* [zemmsoares/polynews](https://github.com/zemmsoares/polynews): Read news on your polybar +* [nivit/polybar-module-earthquake](https://github.com/nivit/polybar-module-earthquake): Polybar module for showing the latest seismic event on Earth +* [nivit/polybar-module-news](https://github.com/nivit/polybar-module-news): This polybar module displays RSS/Atom feeds +* [HackeSta/polybar-kdeconnect](https://github.com/HackeSta/polybar-kdeconnect): KDEConnect module for Polybar +* [zemmsoares/polybar-node-version](https://github.com/zemmsoares/polybar-node-version): Script to check Node.js version +* [Jvanrhijn/polybar-spotify](https://github.com/Jvanrhijn/polybar-spotify): Shows the current song playing on Spotify +* [HackeSta/polybar-browsermediacontrol](https://github.com/HackeSta/polybar-browsermediacontrol): Browser Media Control module for Polybar +* [dietervanhoof/polybar-spotify-controls](https://github.com/dietervanhoof/polybar-spotify-controls): Set of modules provides controls for spotify +* [mihirlad55/polybar-spotify-module](https://github.com/mihirlad55/polybar-spotify-module): Lightweight programs to integrate spotify into polybar +* [unode/polypomo](https://github.com/unode/polypomo): Minimalist pomodoro style timer +* [marioortizmanero/polybar-pulseaudio-control](https://github.com/marioortizmanero/polybar-pulseaudio-control): A feature-full polybar module to control pulseaudio +* [budlabs/polify](https://github.com/budlabs/polify): A utility that makes it easier to manage and work with polybars IPC-modules +* [VineshReddy/polybar-redshift](https://github.com/VineshReddy/polybar-redshift): Change, display temperature and open/close Redshift +* [gitlab.com/indeedwatson/polybar_twitch](https://gitlab.com/indeedwatson/polybar_twitch): Display live Twitch channels +* [jbirnick/polybar-timer](https://github.com/jbirnick/polybar-timer): Simple & customizable timer (can be used for pomodoro tracking). +* [zack-ashen/polystock](https://github.com/zack-ashen/polystock): Simple stock ticker displayer for displaying stock prices. +* [Hackesta/polybar-qbittorrent](https://github.com/HackeSta/polybar-qbittorrent): qBittorrent Module for Polybar +* [jbirnick/polybar-todoist](https://github.com/jbirnick/polybar-todoist): Displays amount of Todoist tasks of each priority. +* [PrayagS/polybar-spotify](https://github.com/PrayagS/polybar-spotify): Spotify status and controls module for Polybar with text scrolling +* [Hackesta/polybar-speedtest](https://github.com/HackeSta/polybar-speedtest): speedtest.net Module for Polybar +* [MaxdSre/mpris-player-control](https://github.com/MaxdSre/mpris-player-control): Control player via MPRIS D-Bus interface +* [maksmeshkov/toggl_polybar](https://github.com/maksmeshkov/toggl_polybar): Information about current running task for toggl.com time tracker users +* [shervinsahba/polybar-vpn-controller](https://github.com/shervinsahba/polybar-vpn-controller): VPN controller (toggle VPN, display location or IP, choose location via rofi menu, copy IP to clipboard) +* [madhat2r/polybar-i3-window](https://github.com/madhat2r/polybar-i3-window): A Polybar module to show i3 window title that can handle multi-monitors +* [sTiKyt/polybar-onlinestatus](https://github.com/sTiKyt/polybar-onlinestatus): Indicator of your internet connection diff --git a/dot_dotfiles/polybar/polybar-scripts/build.sh b/dot_dotfiles/polybar/polybar-scripts/build.sh deleted file mode 100644 index 4b3478b..0000000 --- a/dot_dotfiles/polybar/polybar-scripts/build.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -error_count=0 -scripts="polybar-scripts/*/*.sh" - -for file in $scripts; do - - # Exceptions - if [ "$file" = "polybar-scripts/info-hackspeed/info-hackspeed.sh" ]; then - shellcheck --exclude=SC2016,SC2059 "$file" - if [ $? -ne 0 ]; then - error_count=$((error_count+1)) - fi - else - shellcheck "$file" - if [ $? -ne 0 ]; then - error_count=$((error_count+1)) - fi - fi -done - -if [ $error_count -eq 0 ]; then - exit 0 -else - exit 1 -fi diff --git a/dot_dotfiles/polybar/polybar-scripts/dot_travis.yml b/dot_dotfiles/polybar/polybar-scripts/dot_travis.yml deleted file mode 100644 index d3a7817..0000000 --- a/dot_dotfiles/polybar/polybar-scripts/dot_travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: c - -install: - - scversion="stable" - - wget "https://storage.googleapis.com/shellcheck/shellcheck-$scversion.linux.x86_64.tar.xz" - - tar --xz -xvf "shellcheck-$scversion.linux.x86_64.tar.xz" - - shellcheck() { "shellcheck-$scversion/shellcheck" "$@"; } - -before_script: - - shellcheck --version - -script: - - source ${TRAVIS_BUILD_DIR}/build.sh diff --git a/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-shell/battery-combined-shell.sh b/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-shell/battery-combined-shell.sh index 9ded8cc..9466ce2 100644 --- a/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-shell/battery-combined-shell.sh +++ b/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-shell/battery-combined-shell.sh @@ -1,8 +1,8 @@ #!/bin/sh -path_ac="/sys/class/power_supply/AC" -path_battery_0="/sys/class/power_supply/BAT0" -path_battery_1="/sys/class/power_supply/BAT1" +PATH_AC="/sys/class/power_supply/AC" +PATH_BATTERY_0="/sys/class/power_supply/BAT0" +PATH_BATTERY_1="/sys/class/power_supply/BAT1" ac=0 battery_level_0=0 @@ -10,24 +10,24 @@ battery_level_1=0 battery_max_0=0 battery_max_1=0 -if [ -f "$path_ac/online" ]; then - ac=$(cat "$path_ac/online") +if [ -f "$PATH_AC/online" ]; then + ac=$(cat "$PATH_AC/online") fi -if [ -f "$path_battery_0/energy_now" ]; then - battery_level_0=$(cat "$path_battery_0/energy_now") +if [ -f "$PATH_BATTERY_0/energy_now" ]; then + battery_level_0=$(cat "$PATH_BATTERY_0/energy_now") fi -if [ -f "$path_battery_0/energy_full" ]; then - battery_max_0=$(cat "$path_battery_0/energy_full") +if [ -f "$PATH_BATTERY_0/energy_full" ]; then + battery_max_0=$(cat "$PATH_BATTERY_0/energy_full") fi -if [ -f "$path_battery_1/energy_now" ]; then - battery_level_1=$(cat "$path_battery_1/energy_now") +if [ -f "$PATH_BATTERY_1/energy_now" ]; then + battery_level_1=$(cat "$PATH_BATTERY_1/energy_now") fi -if [ -f "$path_battery_1/energy_full" ]; then - battery_max_1=$(cat "$path_battery_1/energy_full") +if [ -f "$PATH_BATTERY_1/energy_full" ]; then + battery_max_1=$(cat "$PATH_BATTERY_1/energy_full") fi battery_level=$(("$battery_level_0 + $battery_level_1")) diff --git a/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-tlp/README.md b/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-tlp/README.md index 86c3654..0a11598 100644 --- a/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-tlp/README.md +++ b/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-tlp/README.md @@ -14,7 +14,7 @@ It uses TLP and requires root privileges. Note that the icon doesn't change. ## Configuration -You may need to add `tlp-stat` command to the `/etc/sudoers` NOPASSWD of your user: +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 diff --git a/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-tlp/battery-combined-tlp.sh b/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-tlp/battery-combined-tlp.sh index abb3583..2e18b11 100644 --- a/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-tlp/battery-combined-tlp.sh +++ b/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-tlp/battery-combined-tlp.sh @@ -1,5 +1,5 @@ #!/bin/sh -battery=$(sudo tlp-stat -b | tail -2 | head -n 1 | tr -d -c "[:digit:],.") +battery=$(sudo tlp-stat -b | tac | grep -m 1 "Charge" | tr -d -c "[:digit:],.") echo "# $battery %" diff --git a/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-udev/README.md b/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-udev/README.md index dca10e6..0fbc0ec 100644 --- a/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-udev/README.md +++ b/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-udev/README.md @@ -11,8 +11,6 @@ This script is able to display power supply changes in real time. For this udev Copy `95-battery.rules` to `/etc/udev/rules.d/95-battery.rules`. Make sure that the paths in the file have been modified properly. -Also change the file path in line `#65`. - ## Module diff --git a/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-udev/battery-combined-udev.sh b/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-udev/battery-combined-udev.sh index fe869a2..2ad7a7c 100644 --- a/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-udev/battery-combined-udev.sh +++ b/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-udev/battery-combined-udev.sh @@ -1,9 +1,9 @@ #!/bin/sh battery_print() { - path_ac="/sys/class/power_supply/AC" - path_battery_0="/sys/class/power_supply/BAT0" - path_battery_1="/sys/class/power_supply/BAT1" + PATH_AC="/sys/class/power_supply/AC" + PATH_BATTERY_0="/sys/class/power_supply/BAT0" + PATH_BATTERY_1="/sys/class/power_supply/BAT1" ac=0 battery_level_0=0 @@ -11,24 +11,24 @@ battery_print() { battery_max_0=0 battery_max_1=0 - if [ -f "$path_ac/online" ]; then - ac=$(cat "$path_ac/online") + if [ -f "$PATH_AC/online" ]; then + ac=$(cat "$PATH_AC/online") fi - if [ -f "$path_battery_0/energy_now" ]; then - battery_level_0=$(cat "$path_battery_0/energy_now") + if [ -f "$PATH_BATTERY_0/energy_now" ]; then + battery_level_0=$(cat "$PATH_BATTERY_0/energy_now") fi - if [ -f "$path_battery_0/energy_full" ]; then - battery_max_0=$(cat "$path_battery_0/energy_full") + if [ -f "$PATH_BATTERY_0/energy_full" ]; then + battery_max_0=$(cat "$PATH_BATTERY_0/energy_full") fi - if [ -f "$path_battery_1/energy_now" ]; then - battery_level_1=$(cat "$path_battery_1/energy_now") + if [ -f "$PATH_BATTERY_1/energy_now" ]; then + battery_level_1=$(cat "$PATH_BATTERY_1/energy_now") fi - if [ -f "$path_battery_1/energy_full" ]; then - battery_max_1=$(cat "$path_battery_1/energy_full") + if [ -f "$PATH_BATTERY_1/energy_full" ]; then + battery_max_1=$(cat "$PATH_BATTERY_1/energy_full") fi battery_level=$(("$battery_level_0 + $battery_level_1")) @@ -62,7 +62,7 @@ battery_print() { fi } -path_pid="/home/user/.config/polybar/battery-combined-udev.pid" +path_pid="/tmp/polybar-battery-combined-udev.pid" case "$1" in --update) diff --git a/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-cyberpower/README.md b/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-cyberpower/README.md index f3d5f2d..d02b2e7 100644 --- a/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-cyberpower/README.md +++ b/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-cyberpower/README.md @@ -12,7 +12,11 @@ This script is able to display power supply changes in real time. ## Configuration -It requires access to run `pwrstat` as root, so you may need to adjust your system to allow this (for example `sudo`). +You have to add the `pwrstat` command to the `/etc/sudoers` NOPASSWD of your user: + +```ini +user ALL=(ALL) NOPASSWD: /usr/bin/pwrstat +``` ## Module diff --git a/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/easteregg-pornhub/README.md b/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/easteregg-pornhub/README.md new file mode 100644 index 0000000..05c0776 --- /dev/null +++ b/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/easteregg-pornhub/README.md @@ -0,0 +1,44 @@ +# Script: easteregg-pornhub + +A script that shows a button and opens a random video at a large porn website. + +![easteregg-pornhub](screenshots/1.png) + + +## 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 =