From 319b44ecbded72d6a614b1d845a2a999d54a22b3 Mon Sep 17 00:00:00 2001 From: azpsen Date: Sun, 28 Jan 2024 16:37:10 -0600 Subject: [PATCH] power menu, redshift, polybar --- .config/bspwm/bspwmrc | 8 +- .config/bspwm/scripts/launch-polybar.sh | 6 + .config/bspwm/scripts/notify.sh | 4 +- .config/cava/config | 271 +++++++++ .config/dunst/dunstrc | 462 +++++++++++++++ .config/polybar/config.ini | 259 ++++++++ .../scripts/battery-combined-shell/README.md | 15 + .../battery-combined-shell.sh | 61 ++ .../scripts/battery-combined-tlp/README.md | 31 + .../battery-combined-tlp.sh | 5 + .../battery-combined-tlp/screenshots/1.png | Bin 0 -> 841 bytes .../battery-combined-udev/95-battery.rules | 4 + .../scripts/battery-combined-udev/README.md | 22 + .../battery-combined-udev.sh | 88 +++ .../scripts/battery-cyberpower/README.md | 29 + .../battery-cyberpower/battery-cyberpower.sh | 56 ++ .../polybar/scripts/dunst-snooze/README.md | 16 + .../scripts/dunst-snooze/dunst-snooze.sh | 14 + .../scripts/dunst-snooze/screenshots/1.png | Bin 0 -> 756 bytes .../scripts/dunst-snooze/screenshots/2.png | Bin 0 -> 955 bytes .../scripts/easteregg-pornhub/README.md | 44 ++ .../easteregg-pornhub/screenshots/1.png | Bin 0 -> 1435 bytes .../scripts/inbox-imap-pythongpg/README.md | 29 + .../inbox-imap-pythongpg/inbox-imap-python.py | 14 + .../inbox-imap-pythongpg/screenshots/1.png | Bin 0 -> 542 bytes .../scripts/inbox-imap-shellnetrc/.netrc | 3 + .../scripts/inbox-imap-shellnetrc/README.md | 27 + .../inbox-imap-shellnetrc.sh | 12 + .../scripts/inbox-imap-shellpass/README.md | 22 + .../inbox-imap-shellpass.sh | 19 + .../scripts/inbox-pop3-shellnetrc/.netrc | 3 + .../scripts/inbox-pop3-shellnetrc/README.md | 22 + .../inbox-pop3-shellnetrc.sh | 12 + .../scripts/info-airqualityindex/README.md | 30 + .../info-airqualityindex.sh | 41 ++ .../info-airqualityindex/screenshots/1.png | Bin 0 -> 1193 bytes .../polybar/scripts/info-camera-mic/README.md | 15 + .../info-camera-mic/info-camera-mic.sh | 11 + .../scripts/info-camera-mic/screenshots/1.png | Bin 0 -> 1907 bytes .config/polybar/scripts/info-cava/README.md | 29 + .../polybar/scripts/info-cava/info-cava.py | 75 +++ .../scripts/info-cava/screenshots/1.png | Bin 0 -> 3075 bytes .config/polybar/scripts/info-docker/README.md | 26 + .../scripts/info-docker/info-docker.sh | 9 + .../scripts/info-docker/screenshots/1.png | Bin 0 -> 626 bytes .../polybar/scripts/info-dualshock4/README.md | 20 + .../info-dualshock4/info-dualshock4.sh | 5 + .../scripts/info-dualshock4/screenshots/1.png | Bin 0 -> 4104 bytes .../polybar/scripts/info-ethermine/README.md | 18 + .../scripts/info-ethermine/info-ethermine.py | 12 + .../polybar/scripts/info-eyestrain/README.md | 15 + .../scripts/info-eyestrain/info-eyestrain.sh | 10 + .../scripts/info-gitlab-pipelines/README.md | 25 + .../info-gitlab-pipelines/gitlab-pipelines.sh | 23 + .../info-gitlab-pipelines/screenshots/1.png | Bin 0 -> 602 bytes .../polybar/scripts/info-hackspeed/README.md | 33 ++ .../scripts/info-hackspeed/info-hackspeed.sh | 64 ++ .../scripts/info-hackspeed/screenshots/1.png | Bin 0 -> 539 bytes .../scripts/info-healthchecks.io/README.md | 31 + .../info-healthchecks.io.sh | 49 ++ .../info-healthchecks.io/screenshots/1.png | Bin 0 -> 576 bytes .../polybar/scripts/info-hexdate/README.md | 15 + .../scripts/info-hexdate/info-hexdate.sh | 11 + .../scripts/info-hexdate/screenshots/1.png | Bin 0 -> 1145 bytes .../scripts/info-hlwm-workspaces/README.md | 27 + .../info-hlwm-workspaces.sh | 64 ++ .../info-hlwm-workspaces/screenshots/1.png | Bin 0 -> 2181 bytes .config/polybar/scripts/info-kernel/README.md | 13 + .../polybar/scripts/info-pingrtt/README.md | 17 + .../scripts/info-pingrtt/info-pingrtt.sh | 19 + .../scripts/info-pingrtt/screenshots/1.png | Bin 0 -> 794 bytes .../scripts/info-pingrtt/screenshots/2.png | Bin 0 -> 878 bytes .../scripts/info-pingrtt/screenshots/3.png | Bin 0 -> 989 bytes .config/polybar/scripts/info-podman/README.md | 19 + .../scripts/info-podman/info-podman.sh | 9 + .../scripts/info-podman/screenshots/1.png | Bin 0 -> 919 bytes .../scripts/info-projecthamster/README.md | 15 + .../info-projecthamster.sh | 9 + .../info-projecthamster/screenshots/1.png | Bin 0 -> 2921 bytes .../scripts/info-redshift-temp/README.md | 15 + .../info-redshift-temp/info-redshift-temp.sh | 15 + .../info-redshift-temp/screenshots/1.png | Bin 0 -> 589 bytes .../scripts/info-softwarecounter/README.md | 25 + .../info-softwarecounter.py | 223 +++++++ .../info-softwarecounter/screenshots/1.png | Bin 0 -> 8501 bytes .../scripts/info-ssh-sessions/README.md | 20 + .../info-ssh-sessions/info-ssh-sessions.sh | 10 + .../info-ssh-sessions/screenshots/1.png | Bin 0 -> 3050 bytes .../scripts/info-taskspooler/README.md | 28 + .../info-taskspooler/info-taskspooler.sh | 27 + .../info-taskspooler/screenshots/1.png | Bin 0 -> 3377 bytes .config/polybar/scripts/info-timew/README.md | 16 + .../polybar/scripts/info-timew/info-timew.sh | 40 ++ .../polybar/scripts/info-timezone/README.md | 16 + .../scripts/info-timezone/info-timezone.sh | 35 ++ .../scripts/info-timezone/screenshots/1.gif | Bin 0 -> 14066 bytes .../scripts/info-tmux-sessions/README.md | 16 + .../info-tmux-sessions/info-tmux-sessions.sh | 21 + .../info-tmux-sessions/screenshots/1.png | Bin 0 -> 7050 bytes .../info-tmux-sessions/screenshots/2.png | Bin 0 -> 2280 bytes .../polybar/scripts/info-todotxt/README.md | 15 + .../scripts/info-todotxt/info-todotxt.sh | 16 + .../scripts/info-todotxt/screenshots/1.png | Bin 0 -> 994 bytes .config/polybar/scripts/info-trash/README.md | 16 + .../polybar/scripts/info-trash/info-trash.sh | 13 + .../scripts/info-trash/screenshots/1.png | Bin 0 -> 540 bytes .../info-usbtoserial/95-usbtoserial.rules | 4 + .../scripts/info-usbtoserial/README.md | 20 + .../info-usbtoserial/info-usbtoserial.sh | 44 ++ .../polybar/scripts/info-wakatime/README.md | 22 + .../scripts/info-wakatime/info-wakatime.sh | 10 + .../scripts/info-wakatime/screenshots/1.png | Bin 0 -> 1661 bytes .../scripts/info-wifinomadkronoplus/README.md | 20 + .../info-wifinomadkronoplus.sh | 58 ++ .../info-wifinomadkronoplus/screenshots/1.png | Bin 0 -> 9251 bytes .../polybar/scripts/info-wifionice/README.md | 19 + .../scripts/info-wifionice/info-wifionice.sh | 46 ++ .../scripts/info-wifionice/screenshots/1.png | Bin 0 -> 6963 bytes .config/polybar/scripts/info-wmname/README.md | 21 + .../scripts/info-wmname/info-wmname.sh | 14 + .config/polybar/scripts/info-xampp/README.md | 24 + .../polybar/scripts/info-xampp/info-xampp.sh | 21 + .../scripts/info-xampp/screenshots/1.png | Bin 0 -> 1048 bytes .../scripts/isrunning-claudius/README.md | 16 + .../isrunning-claudius/isrunning-claudius.sh | 18 + .../scripts/isrunning-compton/README.md | 14 + .../isrunning-compton/isrunning-compton.sh | 18 + .../scripts/isrunning-dropbox/README.md | 14 + .../isrunning-dropbox/isrunning-dropbox.sh | 18 + .../scripts/isrunning-noisetorch/README.md | 20 + .../isrunning-noisetorch.sh | 5 + .../isrunning-noisetorch/screenshots/1.png | Bin 0 -> 494 bytes .../scripts/isrunning-offlineimap/README.md | 14 + .../isrunning-offlineimap.sh | 18 + .../scripts/isrunning-service/README.md | 18 + .../isrunning-service/isrunning-service.sh | 11 + .../scripts/network-huawei-modem/README.md | 27 + .../network-huawei-modem.py | 45 ++ .../network-huawei-modem/screenshots/1.png | Bin 0 -> 15923 bytes .../scripts/network-ipinfo.io/README.md | 26 + .../network-ipinfo.io/network-ipinfo.io.sh | 12 + .../network-ipinfo.io/screenshots/1.png | Bin 0 -> 2046 bytes .../polybar/scripts/network-localip/README.md | 15 + .../network-localip/network-localip.sh | 6 + .../scripts/network-localip/screenshots/1.png | Bin 0 -> 1722 bytes .../scripts/network-networkmanager/README.md | 15 + .../network-networkmanager.sh | 71 +++ .../scripts/network-openwrt-status/README.md | 27 + .../network-openwrt-status.py | 112 ++++ .../network-openwrt-status/screenshots/1.png | Bin 0 -> 15675 bytes .../scripts/network-publicip/README.md | 20 + .../network-publicip/network-publicip.sh | 3 + .../network-publicip/screenshots/1.png | Bin 0 -> 2340 bytes .../polybar/scripts/network-traffic/README.md | 25 + .../network-traffic/network-traffic.sh | 61 ++ .../polybar/scripts/news-archlinux/README.md | 18 + .../scripts/news-archlinux/news-archlinux.py | 7 + .../scripts/notification-chess/README.md | 23 + .../notification-chess/notification-chess.sh | 10 + .../notification-chess/screenshots/1.png | Bin 0 -> 661 bytes .../scripts/notification-github/README.md | 24 + .../notification-github.sh | 12 + .../scripts/notification-mattermost/README.md | 24 + .../notification-mattermost.sh | 15 + .../scripts/notification-reddit/README.md | 28 + .../notification-reddit.sh | 12 + .../notification-reddit/screenshots/1.png | Bin 0 -> 1553 bytes .../scripts/notification-spacex/README.md | 21 + .../notification-spacex.sh | 17 + .../notification-spacex/screenshots/1.png | Bin 0 -> 1756 bytes .../scripts/notification-xkcd/README.md | 26 + .../notification-xkcd/notification-xkcd.py | 59 ++ .../notification-xkcd/screenshots/1.png | Bin 0 -> 5407 bytes .../notification-xkcd/screenshots/2.png | Bin 0 -> 5482 bytes .../scripts/openweathermap-detailed/README.md | 46 ++ .../openweathermap-detailed.sh | 76 +++ .../openweathermap-detailed/screenshots/1.png | Bin 0 -> 1679 bytes .../scripts/openweathermap-forecast/README.md | 44 ++ .../openweathermap-forecast.sh | 88 +++ .../openweathermap-fullfeatured/README.md | 46 ++ .../openweathermap-fullfeatured.sh | 113 ++++ .../screenshots/1.png | Bin 0 -> 2662 bytes .../scripts/openweathermap-simple/README.md | 46 ++ .../openweathermap-simple.sh | 75 +++ .../openweathermap-simple/screenshots/1.png | Bin 0 -> 1103 bytes .../scripts/pipewire-microphone/README.md | 19 + .../pipewire-microphone.sh | 39 ++ .../polybar/scripts/pipewire-simple/README.md | 27 + .../pipewire-simple/pipewire-simple.sh | 31 + .../scripts/pipewire-simple/screenshots/1.png | Bin 0 -> 3925 bytes .config/polybar/scripts/player-cmus/README.md | 18 + .../scripts/player-cmus/player-cmus.sh | 42 ++ .../scripts/player-cmus/screenshots/1.png | Bin 0 -> 4535 bytes .config/polybar/scripts/player-moc/README.md | 16 + .../polybar/scripts/player-moc/player-moc.sh | 13 + .../scripts/player-mpris-simple/README.md | 23 + .../player-mpris-simple.sh | 11 + .../player-mpris-simple/screenshots/1.png | Bin 0 -> 1875 bytes .../scripts/player-mpris-tail/README.md | 167 ++++++ .../player-mpris-tail/player-mpris-tail.py | 554 ++++++++++++++++++ .../player-mpris-tail/screenshots/1.png | Bin 0 -> 9199 bytes .../player-mpris-tail/screenshots/2.png | Bin 0 -> 6192 bytes .../polybar/scripts/polybar-redshift/env.sh | 3 + .../scripts/polybar-redshift/redshift.sh | 47 ++ .../polybar/scripts/popup-calendar/README.md | 41 ++ .../scripts/popup-calendar/popup-calendar.sh | 41 ++ .../scripts/popup-calendar/screenshots/1.png | Bin 0 -> 13447 bytes .../polybar/scripts/popup-powermenu/README.md | 19 + .../popup-powermenu/popup-powermenu.sh | 25 + .../scripts/pulseaudio-microphone/README.md | 17 + .../pulseaudio-microphone.sh | 57 ++ .../scripts/pulseaudio-simple/README.md | 18 + .../pulseaudio-simple/pulseaudio-simple.sh | 15 + .../polybar/scripts/pulseaudio-tail/README.md | 26 + .../pulseaudio-tail/pulseaudio-tail.sh | 66 +++ .../scripts/system-ati-radeontop/README.md | 21 + .../system-ati-radeontop/screenshots/1.png | Bin 0 -> 895 bytes .../system-ati-radeontop.sh | 3 + .../system-bluetooth-bluetoothctl/README.md | 30 + .../screenshots/1.png | Bin 0 -> 5932 bytes .../system-bluetooth-bluetoothctl.sh | 77 +++ .../scripts/system-cpu-frequency/README.md | 13 + .../system-cpu-frequency.sh | 10 + .../scripts/system-cpu-loadavg/README.md | 13 + .../system-cpu-loadavg/system-cpu-loadavg.sh | 3 + .../scripts/system-cpu-temppercore/README.md | 20 + .../system-cpu-temppercore/screenshots/1.png | Bin 0 -> 1766 bytes .../system-cpu-temppercore.sh | 3 + .../polybar/scripts/system-eprivacy/README.md | 30 + .../scripts/system-eprivacy/screenshots/1.png | Bin 0 -> 1265 bytes .../system-eprivacy/system-eprivacy.sh | 39 ++ .../scripts/system-fan-speed/README.md | 19 + .../system-fan-speed/system-fan-speed.sh | 10 + .../scripts/system-gpu-intel/README.md | 28 + .../system-gpu-intel/system-gpu-intel.sh | 10 + .../scripts/system-gpu-optimus/README.md | 25 + .../system-gpu-optimus/screenshots/1.png | Bin 0 -> 2031 bytes .../system-gpu-optimus/system-gpu-optimus.sh | 53 ++ .../scripts/system-nvidia-bbswitch/README.md | 21 + .../system-nvidia-bbswitch.sh | 7 + .../scripts/system-nvidia-smi/README.md | 26 + .../system-nvidia-smi/system-nvidia-smi.sh | 3 + .../scripts/system-thinklight/README.md | 15 + .../system-thinklight/info-thinklight.sh | 7 + .../system-thinklight/screenshots/1.png | Bin 0 -> 3596 bytes .../scripts/system-uptime-pretty/README.md | 15 + .../system-uptime-pretty.sh | 3 + .../scripts/system-usb-mount/README.md | 25 + .../system-usb-mount/system-usb-mount.sh | 53 ++ .../scripts/system-usb-udev/95-usb.rules | 4 + .../polybar/scripts/system-usb-udev/README.md | 35 ++ .../scripts/system-usb-udev/screenshots/1.png | Bin 0 -> 1434 bytes .../scripts/system-usb-udev/screenshots/2.png | Bin 0 -> 1063 bytes .../system-usb-udev/system-usb-udev.sh | 87 +++ .../polybar/scripts/ticker-crypto/README.md | 21 + .../scripts/ticker-crypto/screenshots/1.png | Bin 0 -> 1396 bytes .../scripts/ticker-crypto/ticker-crypto.sh | 8 + .../polybar/scripts/ticker-forex/README.md | 19 + .../scripts/ticker-forex/ticker-forex.sh | 12 + .config/polybar/scripts/updates-apt/README.md | 13 + .../scripts/updates-apt/updates-apt.sh | 9 + .../scripts/updates-aurhelper/README.md | 20 + .../updates-aurhelper/updates-aurhelper.sh | 16 + .config/polybar/scripts/updates-dnf/README.md | 23 + .../scripts/updates-dnf/screenshots/1.png | Bin 0 -> 1969 bytes .../scripts/updates-dnf/updates-dnf.sh | 9 + .../polybar/scripts/updates-flatpak/README.md | 13 + .../updates-flatpak/updates-flatpak.sh | 9 + .../polybar/scripts/updates-fwupd/README.md | 18 + .../scripts/updates-fwupd/updates-fwupdmgr.sh | 11 + .../updates-pacman-aurhelper/README.md | 26 + .../screenshots/1.png | Bin 0 -> 3039 bytes .../updates-pacman-aurhelper.sh | 22 + .../polybar/scripts/updates-pacman/README.md | 18 + .../scripts/updates-pacman/updates-pacman.sh | 11 + .../polybar/scripts/updates-xbps/README.md | 13 + .../scripts/updates-xbps/updates-xbps.sh | 9 + .../scripts/vpn-anyconnect-status/README.md | 28 + .../vpn-anyconnect-status/screenshots/1.png | Bin 0 -> 1996 bytes .../vpn-anyconnect-status/screenshots/2.png | Bin 0 -> 2337 bytes .../vpn-anyconnect-status.sh | 9 + .../scripts/vpn-expressvpn-status/README.md | 24 + .../vpn-expressvpn-status/screenshots/1.png | Bin 0 -> 883 bytes .../vpn-expressvpn-status/screenshots/2.png | Bin 0 -> 1268 bytes .../vpn-expressvpn-status.sh | 28 + .../vpn-networkmanager-status/README.md | 15 + .../screenshots/1.png | Bin 0 -> 4782 bytes .../vpn-networkmanager-status.sh | 9 + .../scripts/vpn-nordvpn-status/README.md | 16 + .../vpn-nordvpn-status/screenshots/1.png | Bin 0 -> 757 bytes .../vpn-nordvpn-status/screenshots/2.png | Bin 0 -> 806 bytes .../vpn-nordvpn-status/vpn-nordvpn-status.sh | 9 + .../scripts/vpn-openvpn-isrunning/README.md | 15 + .../vpn-openvpn-isrunning/screenshots/1.png | Bin 0 -> 2280 bytes .../vpn-openvpn-isrunning.sh | 9 + .../scripts/vpn-openvpn-status/README.md | 28 + .../vpn-openvpn-status/screenshots/1.png | Bin 0 -> 1410 bytes .../vpn-openvpn-status/screenshots/2.png | Bin 0 -> 9915 bytes .../vpn-openvpn-status/vpn-openvpn-status.sh | 3 + .../scripts/vpn-wireguard-wg/README.md | 26 + .../vpn-wireguard-wg/screenshots/1.png | Bin 0 -> 1482 bytes .../vpn-wireguard-wg/screenshots/2.png | Bin 0 -> 1933 bytes .../vpn-wireguard-wg/vpn-wireguard-wg.sh | 37 ++ .config/redshift/redshift.conf | 71 +++ .config/rofi/config.rasi | 8 + .config/rofi/scripts/rofi-power-menu | 280 +++++++++ .config/sxhkd/sxhkdrc | 3 + 307 files changed, 7642 insertions(+), 5 deletions(-) create mode 100755 .config/bspwm/scripts/launch-polybar.sh create mode 100644 .config/cava/config create mode 100644 .config/dunst/dunstrc create mode 100644 .config/polybar/config.ini create mode 100644 .config/polybar/scripts/battery-combined-shell/README.md create mode 100644 .config/polybar/scripts/battery-combined-shell/battery-combined-shell.sh create mode 100644 .config/polybar/scripts/battery-combined-tlp/README.md create mode 100644 .config/polybar/scripts/battery-combined-tlp/battery-combined-tlp.sh create mode 100644 .config/polybar/scripts/battery-combined-tlp/screenshots/1.png create mode 100644 .config/polybar/scripts/battery-combined-udev/95-battery.rules create mode 100644 .config/polybar/scripts/battery-combined-udev/README.md create mode 100644 .config/polybar/scripts/battery-combined-udev/battery-combined-udev.sh create mode 100644 .config/polybar/scripts/battery-cyberpower/README.md create mode 100644 .config/polybar/scripts/battery-cyberpower/battery-cyberpower.sh create mode 100644 .config/polybar/scripts/dunst-snooze/README.md create mode 100644 .config/polybar/scripts/dunst-snooze/dunst-snooze.sh create mode 100644 .config/polybar/scripts/dunst-snooze/screenshots/1.png create mode 100644 .config/polybar/scripts/dunst-snooze/screenshots/2.png create mode 100644 .config/polybar/scripts/easteregg-pornhub/README.md create mode 100644 .config/polybar/scripts/easteregg-pornhub/screenshots/1.png create mode 100644 .config/polybar/scripts/inbox-imap-pythongpg/README.md create mode 100644 .config/polybar/scripts/inbox-imap-pythongpg/inbox-imap-python.py create mode 100644 .config/polybar/scripts/inbox-imap-pythongpg/screenshots/1.png create mode 100644 .config/polybar/scripts/inbox-imap-shellnetrc/.netrc create mode 100644 .config/polybar/scripts/inbox-imap-shellnetrc/README.md create mode 100644 .config/polybar/scripts/inbox-imap-shellnetrc/inbox-imap-shellnetrc.sh create mode 100644 .config/polybar/scripts/inbox-imap-shellpass/README.md create mode 100644 .config/polybar/scripts/inbox-imap-shellpass/inbox-imap-shellpass.sh create mode 100644 .config/polybar/scripts/inbox-pop3-shellnetrc/.netrc create mode 100644 .config/polybar/scripts/inbox-pop3-shellnetrc/README.md create mode 100644 .config/polybar/scripts/inbox-pop3-shellnetrc/inbox-pop3-shellnetrc.sh create mode 100644 .config/polybar/scripts/info-airqualityindex/README.md create mode 100644 .config/polybar/scripts/info-airqualityindex/info-airqualityindex.sh create mode 100644 .config/polybar/scripts/info-airqualityindex/screenshots/1.png create mode 100644 .config/polybar/scripts/info-camera-mic/README.md create mode 100644 .config/polybar/scripts/info-camera-mic/info-camera-mic.sh create mode 100644 .config/polybar/scripts/info-camera-mic/screenshots/1.png create mode 100644 .config/polybar/scripts/info-cava/README.md create mode 100755 .config/polybar/scripts/info-cava/info-cava.py create mode 100644 .config/polybar/scripts/info-cava/screenshots/1.png create mode 100644 .config/polybar/scripts/info-docker/README.md create mode 100644 .config/polybar/scripts/info-docker/info-docker.sh create mode 100644 .config/polybar/scripts/info-docker/screenshots/1.png create mode 100644 .config/polybar/scripts/info-dualshock4/README.md create mode 100644 .config/polybar/scripts/info-dualshock4/info-dualshock4.sh create mode 100644 .config/polybar/scripts/info-dualshock4/screenshots/1.png create mode 100644 .config/polybar/scripts/info-ethermine/README.md create mode 100644 .config/polybar/scripts/info-ethermine/info-ethermine.py create mode 100644 .config/polybar/scripts/info-eyestrain/README.md create mode 100644 .config/polybar/scripts/info-eyestrain/info-eyestrain.sh create mode 100644 .config/polybar/scripts/info-gitlab-pipelines/README.md create mode 100644 .config/polybar/scripts/info-gitlab-pipelines/gitlab-pipelines.sh create mode 100644 .config/polybar/scripts/info-gitlab-pipelines/screenshots/1.png create mode 100644 .config/polybar/scripts/info-hackspeed/README.md create mode 100644 .config/polybar/scripts/info-hackspeed/info-hackspeed.sh create mode 100644 .config/polybar/scripts/info-hackspeed/screenshots/1.png create mode 100644 .config/polybar/scripts/info-healthchecks.io/README.md create mode 100644 .config/polybar/scripts/info-healthchecks.io/info-healthchecks.io.sh create mode 100644 .config/polybar/scripts/info-healthchecks.io/screenshots/1.png create mode 100644 .config/polybar/scripts/info-hexdate/README.md create mode 100644 .config/polybar/scripts/info-hexdate/info-hexdate.sh create mode 100644 .config/polybar/scripts/info-hexdate/screenshots/1.png create mode 100644 .config/polybar/scripts/info-hlwm-workspaces/README.md create mode 100644 .config/polybar/scripts/info-hlwm-workspaces/info-hlwm-workspaces.sh create mode 100644 .config/polybar/scripts/info-hlwm-workspaces/screenshots/1.png create mode 100644 .config/polybar/scripts/info-kernel/README.md create mode 100644 .config/polybar/scripts/info-pingrtt/README.md create mode 100644 .config/polybar/scripts/info-pingrtt/info-pingrtt.sh create mode 100644 .config/polybar/scripts/info-pingrtt/screenshots/1.png create mode 100644 .config/polybar/scripts/info-pingrtt/screenshots/2.png create mode 100644 .config/polybar/scripts/info-pingrtt/screenshots/3.png create mode 100644 .config/polybar/scripts/info-podman/README.md create mode 100644 .config/polybar/scripts/info-podman/info-podman.sh create mode 100644 .config/polybar/scripts/info-podman/screenshots/1.png create mode 100644 .config/polybar/scripts/info-projecthamster/README.md create mode 100644 .config/polybar/scripts/info-projecthamster/info-projecthamster.sh create mode 100644 .config/polybar/scripts/info-projecthamster/screenshots/1.png create mode 100644 .config/polybar/scripts/info-redshift-temp/README.md create mode 100644 .config/polybar/scripts/info-redshift-temp/info-redshift-temp.sh create mode 100644 .config/polybar/scripts/info-redshift-temp/screenshots/1.png create mode 100644 .config/polybar/scripts/info-softwarecounter/README.md create mode 100644 .config/polybar/scripts/info-softwarecounter/info-softwarecounter.py create mode 100644 .config/polybar/scripts/info-softwarecounter/screenshots/1.png create mode 100644 .config/polybar/scripts/info-ssh-sessions/README.md create mode 100644 .config/polybar/scripts/info-ssh-sessions/info-ssh-sessions.sh create mode 100644 .config/polybar/scripts/info-ssh-sessions/screenshots/1.png create mode 100644 .config/polybar/scripts/info-taskspooler/README.md create mode 100644 .config/polybar/scripts/info-taskspooler/info-taskspooler.sh create mode 100644 .config/polybar/scripts/info-taskspooler/screenshots/1.png create mode 100644 .config/polybar/scripts/info-timew/README.md create mode 100644 .config/polybar/scripts/info-timew/info-timew.sh create mode 100644 .config/polybar/scripts/info-timezone/README.md create mode 100644 .config/polybar/scripts/info-timezone/info-timezone.sh create mode 100644 .config/polybar/scripts/info-timezone/screenshots/1.gif create mode 100644 .config/polybar/scripts/info-tmux-sessions/README.md create mode 100644 .config/polybar/scripts/info-tmux-sessions/info-tmux-sessions.sh create mode 100644 .config/polybar/scripts/info-tmux-sessions/screenshots/1.png create mode 100644 .config/polybar/scripts/info-tmux-sessions/screenshots/2.png create mode 100644 .config/polybar/scripts/info-todotxt/README.md create mode 100644 .config/polybar/scripts/info-todotxt/info-todotxt.sh create mode 100644 .config/polybar/scripts/info-todotxt/screenshots/1.png create mode 100644 .config/polybar/scripts/info-trash/README.md create mode 100644 .config/polybar/scripts/info-trash/info-trash.sh create mode 100644 .config/polybar/scripts/info-trash/screenshots/1.png create mode 100644 .config/polybar/scripts/info-usbtoserial/95-usbtoserial.rules create mode 100644 .config/polybar/scripts/info-usbtoserial/README.md create mode 100644 .config/polybar/scripts/info-usbtoserial/info-usbtoserial.sh create mode 100644 .config/polybar/scripts/info-wakatime/README.md create mode 100644 .config/polybar/scripts/info-wakatime/info-wakatime.sh create mode 100644 .config/polybar/scripts/info-wakatime/screenshots/1.png create mode 100644 .config/polybar/scripts/info-wifinomadkronoplus/README.md create mode 100644 .config/polybar/scripts/info-wifinomadkronoplus/info-wifinomadkronoplus.sh create mode 100644 .config/polybar/scripts/info-wifinomadkronoplus/screenshots/1.png create mode 100644 .config/polybar/scripts/info-wifionice/README.md create mode 100644 .config/polybar/scripts/info-wifionice/info-wifionice.sh create mode 100644 .config/polybar/scripts/info-wifionice/screenshots/1.png create mode 100644 .config/polybar/scripts/info-wmname/README.md create mode 100644 .config/polybar/scripts/info-wmname/info-wmname.sh create mode 100644 .config/polybar/scripts/info-xampp/README.md create mode 100644 .config/polybar/scripts/info-xampp/info-xampp.sh create mode 100644 .config/polybar/scripts/info-xampp/screenshots/1.png create mode 100644 .config/polybar/scripts/isrunning-claudius/README.md create mode 100644 .config/polybar/scripts/isrunning-claudius/isrunning-claudius.sh create mode 100644 .config/polybar/scripts/isrunning-compton/README.md create mode 100644 .config/polybar/scripts/isrunning-compton/isrunning-compton.sh create mode 100644 .config/polybar/scripts/isrunning-dropbox/README.md create mode 100644 .config/polybar/scripts/isrunning-dropbox/isrunning-dropbox.sh create mode 100644 .config/polybar/scripts/isrunning-noisetorch/README.md create mode 100644 .config/polybar/scripts/isrunning-noisetorch/isrunning-noisetorch.sh create mode 100644 .config/polybar/scripts/isrunning-noisetorch/screenshots/1.png create mode 100644 .config/polybar/scripts/isrunning-offlineimap/README.md create mode 100644 .config/polybar/scripts/isrunning-offlineimap/isrunning-offlineimap.sh create mode 100644 .config/polybar/scripts/isrunning-service/README.md create mode 100644 .config/polybar/scripts/isrunning-service/isrunning-service.sh create mode 100644 .config/polybar/scripts/network-huawei-modem/README.md create mode 100755 .config/polybar/scripts/network-huawei-modem/network-huawei-modem.py create mode 100644 .config/polybar/scripts/network-huawei-modem/screenshots/1.png create mode 100644 .config/polybar/scripts/network-ipinfo.io/README.md create mode 100644 .config/polybar/scripts/network-ipinfo.io/network-ipinfo.io.sh create mode 100644 .config/polybar/scripts/network-ipinfo.io/screenshots/1.png create mode 100644 .config/polybar/scripts/network-localip/README.md create mode 100644 .config/polybar/scripts/network-localip/network-localip.sh create mode 100644 .config/polybar/scripts/network-localip/screenshots/1.png create mode 100644 .config/polybar/scripts/network-networkmanager/README.md create mode 100644 .config/polybar/scripts/network-networkmanager/network-networkmanager.sh create mode 100644 .config/polybar/scripts/network-openwrt-status/README.md create mode 100755 .config/polybar/scripts/network-openwrt-status/network-openwrt-status.py create mode 100644 .config/polybar/scripts/network-openwrt-status/screenshots/1.png create mode 100644 .config/polybar/scripts/network-publicip/README.md create mode 100644 .config/polybar/scripts/network-publicip/network-publicip.sh create mode 100644 .config/polybar/scripts/network-publicip/screenshots/1.png create mode 100644 .config/polybar/scripts/network-traffic/README.md create mode 100644 .config/polybar/scripts/network-traffic/network-traffic.sh create mode 100644 .config/polybar/scripts/news-archlinux/README.md create mode 100644 .config/polybar/scripts/news-archlinux/news-archlinux.py create mode 100644 .config/polybar/scripts/notification-chess/README.md create mode 100644 .config/polybar/scripts/notification-chess/notification-chess.sh create mode 100644 .config/polybar/scripts/notification-chess/screenshots/1.png create mode 100644 .config/polybar/scripts/notification-github/README.md create mode 100644 .config/polybar/scripts/notification-github/notification-github.sh create mode 100644 .config/polybar/scripts/notification-mattermost/README.md create mode 100644 .config/polybar/scripts/notification-mattermost/notification-mattermost.sh create mode 100644 .config/polybar/scripts/notification-reddit/README.md create mode 100644 .config/polybar/scripts/notification-reddit/notification-reddit.sh create mode 100644 .config/polybar/scripts/notification-reddit/screenshots/1.png create mode 100644 .config/polybar/scripts/notification-spacex/README.md create mode 100644 .config/polybar/scripts/notification-spacex/notification-spacex.sh create mode 100644 .config/polybar/scripts/notification-spacex/screenshots/1.png create mode 100644 .config/polybar/scripts/notification-xkcd/README.md create mode 100755 .config/polybar/scripts/notification-xkcd/notification-xkcd.py create mode 100644 .config/polybar/scripts/notification-xkcd/screenshots/1.png create mode 100644 .config/polybar/scripts/notification-xkcd/screenshots/2.png create mode 100644 .config/polybar/scripts/openweathermap-detailed/README.md create mode 100644 .config/polybar/scripts/openweathermap-detailed/openweathermap-detailed.sh create mode 100644 .config/polybar/scripts/openweathermap-detailed/screenshots/1.png create mode 100644 .config/polybar/scripts/openweathermap-forecast/README.md create mode 100644 .config/polybar/scripts/openweathermap-forecast/openweathermap-forecast.sh create mode 100644 .config/polybar/scripts/openweathermap-fullfeatured/README.md create mode 100644 .config/polybar/scripts/openweathermap-fullfeatured/openweathermap-fullfeatured.sh create mode 100644 .config/polybar/scripts/openweathermap-fullfeatured/screenshots/1.png create mode 100644 .config/polybar/scripts/openweathermap-simple/README.md create mode 100644 .config/polybar/scripts/openweathermap-simple/openweathermap-simple.sh create mode 100644 .config/polybar/scripts/openweathermap-simple/screenshots/1.png create mode 100644 .config/polybar/scripts/pipewire-microphone/README.md create mode 100644 .config/polybar/scripts/pipewire-microphone/pipewire-microphone.sh create mode 100644 .config/polybar/scripts/pipewire-simple/README.md create mode 100644 .config/polybar/scripts/pipewire-simple/pipewire-simple.sh create mode 100644 .config/polybar/scripts/pipewire-simple/screenshots/1.png create mode 100644 .config/polybar/scripts/player-cmus/README.md create mode 100644 .config/polybar/scripts/player-cmus/player-cmus.sh create mode 100644 .config/polybar/scripts/player-cmus/screenshots/1.png create mode 100644 .config/polybar/scripts/player-moc/README.md create mode 100644 .config/polybar/scripts/player-moc/player-moc.sh create mode 100644 .config/polybar/scripts/player-mpris-simple/README.md create mode 100755 .config/polybar/scripts/player-mpris-simple/player-mpris-simple.sh create mode 100644 .config/polybar/scripts/player-mpris-simple/screenshots/1.png create mode 100644 .config/polybar/scripts/player-mpris-tail/README.md create mode 100755 .config/polybar/scripts/player-mpris-tail/player-mpris-tail.py create mode 100644 .config/polybar/scripts/player-mpris-tail/screenshots/1.png create mode 100644 .config/polybar/scripts/player-mpris-tail/screenshots/2.png create mode 100644 .config/polybar/scripts/polybar-redshift/env.sh create mode 100755 .config/polybar/scripts/polybar-redshift/redshift.sh create mode 100644 .config/polybar/scripts/popup-calendar/README.md create mode 100644 .config/polybar/scripts/popup-calendar/popup-calendar.sh create mode 100644 .config/polybar/scripts/popup-calendar/screenshots/1.png create mode 100644 .config/polybar/scripts/popup-powermenu/README.md create mode 100644 .config/polybar/scripts/popup-powermenu/popup-powermenu.sh create mode 100644 .config/polybar/scripts/pulseaudio-microphone/README.md create mode 100644 .config/polybar/scripts/pulseaudio-microphone/pulseaudio-microphone.sh create mode 100644 .config/polybar/scripts/pulseaudio-simple/README.md create mode 100644 .config/polybar/scripts/pulseaudio-simple/pulseaudio-simple.sh create mode 100644 .config/polybar/scripts/pulseaudio-tail/README.md create mode 100644 .config/polybar/scripts/pulseaudio-tail/pulseaudio-tail.sh create mode 100644 .config/polybar/scripts/system-ati-radeontop/README.md create mode 100644 .config/polybar/scripts/system-ati-radeontop/screenshots/1.png create mode 100644 .config/polybar/scripts/system-ati-radeontop/system-ati-radeontop.sh create mode 100644 .config/polybar/scripts/system-bluetooth-bluetoothctl/README.md create mode 100644 .config/polybar/scripts/system-bluetooth-bluetoothctl/screenshots/1.png create mode 100644 .config/polybar/scripts/system-bluetooth-bluetoothctl/system-bluetooth-bluetoothctl.sh create mode 100644 .config/polybar/scripts/system-cpu-frequency/README.md create mode 100644 .config/polybar/scripts/system-cpu-frequency/system-cpu-frequency.sh create mode 100644 .config/polybar/scripts/system-cpu-loadavg/README.md create mode 100644 .config/polybar/scripts/system-cpu-loadavg/system-cpu-loadavg.sh create mode 100644 .config/polybar/scripts/system-cpu-temppercore/README.md create mode 100644 .config/polybar/scripts/system-cpu-temppercore/screenshots/1.png create mode 100644 .config/polybar/scripts/system-cpu-temppercore/system-cpu-temppercore.sh create mode 100644 .config/polybar/scripts/system-eprivacy/README.md create mode 100644 .config/polybar/scripts/system-eprivacy/screenshots/1.png create mode 100644 .config/polybar/scripts/system-eprivacy/system-eprivacy.sh create mode 100644 .config/polybar/scripts/system-fan-speed/README.md create mode 100644 .config/polybar/scripts/system-fan-speed/system-fan-speed.sh create mode 100644 .config/polybar/scripts/system-gpu-intel/README.md create mode 100644 .config/polybar/scripts/system-gpu-intel/system-gpu-intel.sh create mode 100644 .config/polybar/scripts/system-gpu-optimus/README.md create mode 100644 .config/polybar/scripts/system-gpu-optimus/screenshots/1.png create mode 100644 .config/polybar/scripts/system-gpu-optimus/system-gpu-optimus.sh create mode 100644 .config/polybar/scripts/system-nvidia-bbswitch/README.md create mode 100644 .config/polybar/scripts/system-nvidia-bbswitch/system-nvidia-bbswitch.sh create mode 100644 .config/polybar/scripts/system-nvidia-smi/README.md create mode 100644 .config/polybar/scripts/system-nvidia-smi/system-nvidia-smi.sh create mode 100644 .config/polybar/scripts/system-thinklight/README.md create mode 100644 .config/polybar/scripts/system-thinklight/info-thinklight.sh create mode 100644 .config/polybar/scripts/system-thinklight/screenshots/1.png create mode 100644 .config/polybar/scripts/system-uptime-pretty/README.md create mode 100644 .config/polybar/scripts/system-uptime-pretty/system-uptime-pretty.sh create mode 100644 .config/polybar/scripts/system-usb-mount/README.md create mode 100644 .config/polybar/scripts/system-usb-mount/system-usb-mount.sh create mode 100644 .config/polybar/scripts/system-usb-udev/95-usb.rules create mode 100644 .config/polybar/scripts/system-usb-udev/README.md create mode 100644 .config/polybar/scripts/system-usb-udev/screenshots/1.png create mode 100644 .config/polybar/scripts/system-usb-udev/screenshots/2.png create mode 100644 .config/polybar/scripts/system-usb-udev/system-usb-udev.sh create mode 100644 .config/polybar/scripts/ticker-crypto/README.md create mode 100644 .config/polybar/scripts/ticker-crypto/screenshots/1.png create mode 100644 .config/polybar/scripts/ticker-crypto/ticker-crypto.sh create mode 100644 .config/polybar/scripts/ticker-forex/README.md create mode 100644 .config/polybar/scripts/ticker-forex/ticker-forex.sh create mode 100644 .config/polybar/scripts/updates-apt/README.md create mode 100644 .config/polybar/scripts/updates-apt/updates-apt.sh create mode 100644 .config/polybar/scripts/updates-aurhelper/README.md create mode 100644 .config/polybar/scripts/updates-aurhelper/updates-aurhelper.sh create mode 100644 .config/polybar/scripts/updates-dnf/README.md create mode 100644 .config/polybar/scripts/updates-dnf/screenshots/1.png create mode 100644 .config/polybar/scripts/updates-dnf/updates-dnf.sh create mode 100644 .config/polybar/scripts/updates-flatpak/README.md create mode 100644 .config/polybar/scripts/updates-flatpak/updates-flatpak.sh create mode 100644 .config/polybar/scripts/updates-fwupd/README.md create mode 100644 .config/polybar/scripts/updates-fwupd/updates-fwupdmgr.sh create mode 100644 .config/polybar/scripts/updates-pacman-aurhelper/README.md create mode 100644 .config/polybar/scripts/updates-pacman-aurhelper/screenshots/1.png create mode 100644 .config/polybar/scripts/updates-pacman-aurhelper/updates-pacman-aurhelper.sh create mode 100644 .config/polybar/scripts/updates-pacman/README.md create mode 100644 .config/polybar/scripts/updates-pacman/updates-pacman.sh create mode 100644 .config/polybar/scripts/updates-xbps/README.md create mode 100644 .config/polybar/scripts/updates-xbps/updates-xbps.sh create mode 100644 .config/polybar/scripts/vpn-anyconnect-status/README.md create mode 100644 .config/polybar/scripts/vpn-anyconnect-status/screenshots/1.png create mode 100644 .config/polybar/scripts/vpn-anyconnect-status/screenshots/2.png create mode 100644 .config/polybar/scripts/vpn-anyconnect-status/vpn-anyconnect-status.sh create mode 100644 .config/polybar/scripts/vpn-expressvpn-status/README.md create mode 100644 .config/polybar/scripts/vpn-expressvpn-status/screenshots/1.png create mode 100644 .config/polybar/scripts/vpn-expressvpn-status/screenshots/2.png create mode 100644 .config/polybar/scripts/vpn-expressvpn-status/vpn-expressvpn-status.sh create mode 100644 .config/polybar/scripts/vpn-networkmanager-status/README.md create mode 100644 .config/polybar/scripts/vpn-networkmanager-status/screenshots/1.png create mode 100644 .config/polybar/scripts/vpn-networkmanager-status/vpn-networkmanager-status.sh create mode 100644 .config/polybar/scripts/vpn-nordvpn-status/README.md create mode 100644 .config/polybar/scripts/vpn-nordvpn-status/screenshots/1.png create mode 100644 .config/polybar/scripts/vpn-nordvpn-status/screenshots/2.png create mode 100644 .config/polybar/scripts/vpn-nordvpn-status/vpn-nordvpn-status.sh create mode 100644 .config/polybar/scripts/vpn-openvpn-isrunning/README.md create mode 100644 .config/polybar/scripts/vpn-openvpn-isrunning/screenshots/1.png create mode 100644 .config/polybar/scripts/vpn-openvpn-isrunning/vpn-openvpn-isrunning.sh create mode 100644 .config/polybar/scripts/vpn-openvpn-status/README.md create mode 100644 .config/polybar/scripts/vpn-openvpn-status/screenshots/1.png create mode 100644 .config/polybar/scripts/vpn-openvpn-status/screenshots/2.png create mode 100644 .config/polybar/scripts/vpn-openvpn-status/vpn-openvpn-status.sh create mode 100644 .config/polybar/scripts/vpn-wireguard-wg/README.md create mode 100644 .config/polybar/scripts/vpn-wireguard-wg/screenshots/1.png create mode 100644 .config/polybar/scripts/vpn-wireguard-wg/screenshots/2.png create mode 100644 .config/polybar/scripts/vpn-wireguard-wg/vpn-wireguard-wg.sh create mode 100644 .config/redshift/redshift.conf create mode 100755 .config/rofi/scripts/rofi-power-menu diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index 2e89c2e..9384b31 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -17,8 +17,10 @@ bspc rule -a Nvidia-settings state=floating bspc rule -a openrgb state=floating bspc rule -a Sxiv state=floating -dunst & +pgrep -x dunst > /dev/null || dunst & -~/.config/bspwm/scripts/notify.sh & +pgrep -x notify.sh > /dev/null || ~/.config/bspwm/scripts/notify.sh & -picom & +~/.config/bspwm/scripts/launch-polybar.sh & + +pgrep -x picom > /dev/null || picom & diff --git a/.config/bspwm/scripts/launch-polybar.sh b/.config/bspwm/scripts/launch-polybar.sh new file mode 100755 index 0000000..fffe598 --- /dev/null +++ b/.config/bspwm/scripts/launch-polybar.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +killall -q polybar + +polybar primary 2>&1 | tee -a /tmp/polybar.log & disown +polybar secondary 2>&1 | tee -a /tmp/polybar.log & disown diff --git a/.config/bspwm/scripts/notify.sh b/.config/bspwm/scripts/notify.sh index 666148b..8ad948b 100755 --- a/.config/bspwm/scripts/notify.sh +++ b/.config/bspwm/scripts/notify.sh @@ -10,12 +10,12 @@ while true; do continue fi - current_track=$(playerctl -p Feishin metadata --format '{{ title }}\n{{ artist }}\n{{ album }}') + current_track=$(playerctl -p Feishin metadata --format '{{ title }}\n{{ artist }}\n{{ album }}') album_art_url=$(playerctl -p Feishin metadata mpris:artUrl) album_art_file="/tmp/album_art.jpg" wget -q -O $album_art_file $album_art_url if [[ "$current_track" != "$previous_track" ]]; then - notify-send "Now Playing" "$current_track" -i $album_art_file + notify-send "now playing" "$current_track" -i $album_art_file previous_track="$current_track" fi sleep 1 diff --git a/.config/cava/config b/.config/cava/config new file mode 100644 index 0000000..d8d2c13 --- /dev/null +++ b/.config/cava/config @@ -0,0 +1,271 @@ +## Configuration file for CAVA. +# Remove the ; to change parameters. + + +[general] + +# Smoothing mode. Can be 'normal', 'scientific' or 'waves'. DEPRECATED as of 0.6.0 +; mode = normal + +# Accepts only non-negative values. +; framerate = 30 + +# '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) +# 'overshoot' allows bars to overshoot (in % of terminal height) without initiating autosens. DEPRECATED as of 0.6.0 +; autosens = 1 +; overshoot = 20 + +# Manual sensitivity in %. If autosens is enabled, this will only be the initial value. +# 200 means double height. Accepts only non-negative values. +; sensitivity = 100 + +# 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 +; bar_width = 2 +; bar_spacing = 1 +# bar_height is only used for output in "noritake" format +; bar_height = 32 + +# For SDL width and space between bars is in pixels, defaults are: +; bar_width = 20 +; bar_spacing = 5 + +# sdl_glsl have these default values, they are only used to calulate max number of bars. +; bar_width = 1 +; bar_spacing = 0 + + +# Lower and higher cutoff frequencies for lowest and highest bars +# the bandwidth of the visualizer. +# Note: there is a minimum total bandwidth of 43Mhz x number of bars. +# Cava will automatically increase the higher cutoff if a too low band is specified. +; lower_cutoff_freq = 50 +; higher_cutoff_freq = 10000 + + +# Seconds with no input before cava goes to sleep mode. Cava will not perform FFT or drawing and +# only check for input once per second. Cava will wake up once input is detected. 0 = disable. +; sleep_timer = 0 + + +[input] + +# Audio capturing method. Possible methods are: 'fifo', 'portaudio', 'pipewire', 'alsa', 'pulse', 'sndio', 'oss' or 'shmem' +# Defaults to 'oss', 'sndio', 'pipewire', 'pulse', 'alsa', 'portaudio' or 'fifo', in that order, dependent on what support cava was built with. +# On Mac it defaults to 'portaudio' or 'fifo' +# On windows this is automatic and no input settings are needed. +# +# All input methods uses the same config variable 'source' +# to define where it should get the audio. +# +# For pulseaudio and pipewire 'source' will be the source. Default: 'auto', which uses the monitor source of the default sink +# (all pulseaudio sinks(outputs) have 'monitor' sources(inputs) associated with them). +# +# For pipewire 'source' will be the object name or object.serial of the device to capture from. +# Both input and output devices are supported. +# +# For alsa 'source' will be the capture device. +# For fifo 'source' will be the path to fifo-file. +# For shmem 'source' will be /squeezelite-AA:BB:CC:DD:EE:FF where 'AA:BB:CC:DD:EE:FF' will be squeezelite's MAC address +# +# For sndio 'source' will be a monitor sub-device, e.g. 'snd/0.monitor'. Default: 'default', in which case a device +# should be specified with the environment variable AUDIODEVICE, e.g. on the commandline: AUDIODEVICE=snd/0.monitor cava. +# +# For oss 'source' will be the path to a audio device, e.g. '/dev/dsp2'. Default: '/dev/dsp', i.e. the default audio device. +# README.md contains further information on how to setup CAVA for OSS on FreeBSD. +# +; method = pulse +; source = auto + +method = pipewire +source = auto + +; method = alsa +; source = hw:Loopback,1 + +; method = fifo +; source = /tmp/mpd.fifo + +; method = shmem +; source = /squeezelite-AA:BB:CC:DD:EE:FF + +; method = portaudio +; source = auto + +; method = sndio +; source = default + +; method = oss +; source = /dev/dsp + +# The sample rate and format can be configured for some input methods. Currently +# the following methods support such a configuration: 'fifo', 'pipewire' and 'oss'. +# Other methods ignore these settings. +# +# For 'oss' they are only preferred values, i.e. if the values are not supported +# by the chosen audio device, the device will use other supported values instead. +# Example: 48000 and 32, but the device only supports 44100 and 16, then it will +# use 44100 and 16. +# +; sample_rate = 44100 +; sample_bits = 16 + + +[output] + +# Output method. Can be 'ncurses', 'noncurses', 'raw', 'noritake', 'sdl' +# or 'sdl_glsl'. +# 'noncurses' (default) uses a buffer and cursor movements to only print +# changes from frame to frame in the terminal. Uses less resources and is less +# prone to tearing (vsync issues) than 'ncurses'. +# +# 'raw' is an 8 or 16 bit (configurable via the 'bit_format' option) data +# stream of the bar heights that can be used to send to other applications. +# 'raw' defaults to 200 bars, which can be adjusted in the 'bars' option above. +# +# 'noritake' outputs a bitmap in the format expected by a Noritake VFD display +# in graphic mode. It only support the 3000 series graphical VFDs for now. +# +# 'sdl' uses the Simple DirectMedia Layer to render in a graphical context. +# 'sdl_glsl' uses SDL to create an OpenGL context. Write your own shaders or +# use one of the predefined ones. +; method = noncurses + +# Orientation of the visualization. Can be 'bottom', 'top', 'left' or 'right'. +# Default is 'bottom'. Other orientations are only supported on sdl and ncruses +# output. Note: many fonts have weird glyphs for 'top' and 'right' characters, +# which can make ncurses not look right. +; orientation = bottom + +# Visual channels. Can be 'stereo' or 'mono'. +# 'stereo' mirrors both channels with low frequencies in center. +# 'mono' outputs left to right lowest to highest frequencies. +# 'mono_option' set mono to either take input from 'left', 'right' or 'average'. +# set 'reverse' to 1 to display frequencies the other way around. +channels = mono +mono_option = average +; reverse = 0 + +# Raw output target. A fifo will be created if target does not exist. +; raw_target = /dev/stdout + +# Raw data format. Can be 'binary' or 'ascii'. +; data_format = binary + +# Binary bit format, can be '8bit' (0-255) or '16bit' (0-65530). +; bit_format = 16bit + +# Ascii max value. In 'ascii' mode range will run from 0 to value specified here +; ascii_max_range = 1000 + +# Ascii delimiters. In ascii format each bar and frame is separated by a delimiters. +# Use decimal value in ascii table (i.e. 59 = ';' and 10 = '\n' (line feed)). +; bar_delimiter = 59 +; frame_delimiter = 10 + +# sdl window size and position. -1,-1 is centered. +; sdl_width = 1000 +; sdl_height = 500 +; sdl_x = -1 +; sdl_y= -1 +; sdl_full_screen = 0 + +# set label on bars on the x-axis. Can be 'frequency' or 'none'. Default: 'none' +# 'frequency' displays the lower cut off frequency of the bar above. +# Only supported on ncurses and noncurses output. +; xaxis = none + +# enable alacritty synchronized updates. 1 = on, 0 = off +# removes flickering in alacritty terminal emulator. +# defaults to off since the behaviour in other terminal emulators is unknown +; alacritty_sync = 0 + +# Shaders for sdl_glsl, located in $HOME/.config/cava/shaders +; vertex_shader = pass_through.vert +; fragment_shader = bar_spectrum.frag + +; for glsl output mode, keep rendering even if no audio +; continuous_rendering = 0 + +# disable console blank (screen saver) in tty +# (Not supported on FreeBSD) +; disable_blanking = 0 + +[color] + +# Colors can be one of seven predefined: black, blue, cyan, green, magenta, red, white, yellow. +# Or defined by hex code '#xxxxxx' (hex code must be within ''). User defined colors requires +# a terminal that can change color definitions such as Gnome-terminal or rxvt. +# default is to keep current terminal color +; background = default +; foreground = default + +# SDL and sdl_glsl only support hex code colors, these are the default: +; background = '#111111' +; foreground = '#D3C6AA' + + +# Gradient mode, only hex defined colors are supported, +# background must also be defined in hex or remain commented out. 1 = on, 0 = off. +# You can define as many as 8 different colors. They range from bottom to top of screen +; gradient = 0 +; gradient_count = 8 +; gradient_color_1 = '#59cc33' +; gradient_color_2 = '#80cc33' +; gradient_color_3 = '#a6cc33' +; gradient_color_4 = '#cccc33' +; gradient_color_5 = '#cca633' +; gradient_color_6 = '#cc8033' +; gradient_color_7 = '#cc5933' +; gradient_color_8 = '#cc3333' + +# everforest colors +gradient = 1 +gradient_count = 5 +gradient_color_1 = '#A8C181' +gradient_color_2 = '#BFB26D' +gradient_color_3 = '#D3A165' +gradient_color_4 = '#E18F6C' +gradient_color_5 = '#E77E7F' + + + +[smoothing] + +# Percentage value for integral smoothing. Takes values from 0 - 100. +# Higher values means smoother, but less precise. 0 to disable. +# DEPRECATED as of 0.8.0, use noise_reduction instead +; integral = 77 + +# Disables or enables the so-called "Monstercat smoothing" with or without "waves". Set to 0 to disable. +; monstercat = 0 +; waves = 0 + +# Set gravity percentage for "drop off". Higher values means bars will drop faster. +# Accepts only non-negative values. 50 means half gravity, 200 means double. Set to 0 to disable "drop off". +# DEPRECATED as of 0.8.0, use noise_reduction instead +; gravity = 100 + + +# In bar height, bars that would have been lower that this will not be drawn. +# DEPRECATED as of 0.8.0 +; ignore = 0 + +# Noise reduction, int 0 - 100. default 77 +# the raw visualization is very noisy, this factor adjusts the integral and gravity filters to keep the signal smooth +# 100 will be very slow and smooth, 0 will be fast but noisy. +noise_reduction = 40 + + +[eq] + +# This one is tricky. You can have as much keys as you want. +# Remember to uncomment more than one key! More keys = more precision. +# Look at readme.md on github for further explanations and examples. +; 1 = 1 # bass +; 2 = 1 +; 3 = 1 # midtone +; 4 = 1 +; 5 = 1 # treble diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc new file mode 100644 index 0000000..f8fc485 --- /dev/null +++ b/.config/dunst/dunstrc @@ -0,0 +1,462 @@ +# See dunst(5) for all configuration options + +[global] + ### Display ### + + # Which monitor should the notifications be displayed on. + monitor = 0 + + # Display notification on focused monitor. Possible modes are: + # mouse: follow mouse pointer + # keyboard: follow window with keyboard focus + # none: don't follow anything + # + # "keyboard" needs a window manager that exports the + # _NET_ACTIVE_WINDOW property. + # This should be the case for almost all modern window managers. + # + # If this option is set to mouse or keyboard, the monitor option + # will be ignored. + # follow = keyboard + + ### Geometry ### + + # dynamic width from 0 to 300 + # width = (0, 300) + # constant width of 300 + width = (200, 600) + + # The maximum height of a single notification, excluding the frame. + height = 300 + + # Position the notification in the top right corner + origin = top-right + + # Offset from the origin + offset = 10x36 + + # Scale factor. It is auto-detected if value is 0. + scale = 1 + + # Maximum number of notification (0 means no limit) + notification_limit = 10 + + ### Progress bar ### + + # Turn on the progess bar. It appears when a progress hint is passed with + # for example dunstify -h int:value:12 + progress_bar = true + + # Set the progress bar height. This includes the frame, so make sure + # it's at least twice as big as the frame width. + progress_bar_height = 10 + + # Set the frame width of the progress bar + progress_bar_frame_width = 1 + + # Set the minimum width for the progress bar + progress_bar_min_width = 150 + + # Set the maximum width for the progress bar + progress_bar_max_width = 300 + + # Corner radius for the progress bar. 0 disables rounded corners. + progress_bar_corner_radius = 0 + + # Corner radius for the icon image. + icon_corner_radius = 0 + + # Show how many messages are currently hidden (because of + # notification_limit). + indicate_hidden = yes + + # The transparency of the window. Range: [0; 100]. + # This option will only work if a compositing window manager is + # present (e.g. xcompmgr, compiz, etc.). (X11 only) + transparency = 5 + + # Draw a line of "separator_height" pixel height between two + # notifications. + # Set to 0 to disable. + # If gap_size is greater than 0, this setting will be ignored. + separator_height = 2 + + # Padding between text and separator. + padding = 15 + + # Horizontal padding. + horizontal_padding = 15 + + # Padding between text and icon. + text_icon_padding = 0 + + # Defines width in pixels of frame around the notification window. + # Set to 0 to disable. + frame_width = 3 + + # Defines color of the frame around the notification window. + frame_color = "#7A8478" + + # Size of gap to display between notifications - requires a compositor. + # If value is greater than 0, separator_height will be ignored and a border + # of size frame_width will be drawn around each notification instead. + # Click events on gaps do not currently propagate to applications below. + gap_size = 0 + + # Define a color for the separator. + # possible values are: + # * auto: dunst tries to find a color fitting to the background; + # * foreground: use the same color as the foreground; + # * frame: use the same color as the frame; + # * anything else will be interpreted as a X color. + separator_color = frame + + # Sort messages by urgency. + sort = yes + + # Don't remove messages, if the user is idle (no mouse or keyboard input) + # for longer than idle_threshold seconds. + # Set to 0 to disable. + # A client can set the 'transient' hint to bypass this. See the rules + # section for how to disable this if necessary + # idle_threshold = 120 + + ### Text ### + + font = JetBrainsMonoNL Nerd Font Mono 12 + + # The spacing between lines. If the height is smaller than the + # font height, it will get raised to the font height. + line_height = 2 + + # Possible values are: + # full: Allow a small subset of html markup in notifications: + # bold + # italic + # strikethrough + # underline + # + # For a complete reference see + # . + # + # strip: This setting is provided for compatibility with some broken + # clients that send markup even though it's not enabled on the + # server. Dunst will try to strip the markup but the parsing is + # simplistic so using this option outside of matching rules for + # specific applications *IS GREATLY DISCOURAGED*. + # + # no: Disable markup parsing, incoming notifications will be treated as + # plain text. Dunst will not advertise that it has the body-markup + # capability if this is set as a global setting. + # + # It's important to note that markup inside the format option will be parsed + # regardless of what this is set to. + markup = full + + # The format of the message. Possible variables are: + # %a appname + # %s summary + # %b body + # %i iconname (including its path) + # %I iconname (without its path) + # %p progress value if set ([ 0%] to [100%]) or nothing + # %n progress value if set without any extra characters + # %% Literal % + # Markup is allowed + format = "%s\n%b\n" + + # Alignment of message text. + # Possible values are "left", "center" and "right". + alignment = left + + # Vertical alignment of message text and icon. + # Possible values are "top", "center" and "bottom". + vertical_alignment = top + + # Show age of message if message is older than show_age_threshold + # seconds. + # Set to -1 to disable. + show_age_threshold = 60 + + # Specify where to make an ellipsis in long lines. + # Possible values are "start", "middle" and "end". + ellipsize = end + + # Ignore newlines '\n' in notifications. + ignore_newline = no + + # Stack together notifications with the same content + stack_duplicates = true + + # Hide the count of stacked notifications with the same content + hide_duplicate_count = false + + # Display indicators for URLs (U) and actions (A). + show_indicators = yes + + ### Icons ### + + # Recursive icon lookup. You can set a single theme, instead of having to + # define all lookup paths. + enable_recursive_icon_lookup = true + + # Set icon theme (only used for recursive icon lookup) + icon_theme = Reversal-black-dark + # You can also set multiple icon themes, with the leftmost one being used first. + # icon_theme = "Adwaita, breeze" + + # Align icons left/right/top/off + icon_position = left + + # Scale small icons up to this size, set to 0 to disable. Helpful + # for e.g. small files or high-dpi screens. In case of conflict, + # max_icon_size takes precedence over this. + min_icon_size = 22 + + # Scale larger icons down to this size, set to 0 to disable + max_icon_size = 128 + + # Paths to default icons (only neccesary when not using recursive icon lookup) + #icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/ + icon_path = ~/.local/share/icons/Reversal-black-dark/devices/16/ + + ### History ### + + # Should a notification popped up from history be sticky or timeout + # as if it would normally do. + sticky_history = yes + + # Maximum amount of notifications kept in history + history_length = 50 + + ### Misc/Advanced ### + + # dmenu path. + dmenu = /usr/bin/rofi -dmenu -p " 󰎟 dunst " + + # Browser for opening urls in context menu. + browser = /usr/bin/xdg-open + + # Always run rule-defined scripts, even if the notification is suppressed + always_run_script = true + + # Define the title of the windows spawned by dunst + title = dunst + + # Define the class of the windows spawned by dunst + class = dunst + + # Define the corner radius of the notification window + # in pixel size. If the radius is 0, you have no rounded + # corners. + # The radius will be automatically lowered if it exceeds half of the + # notification height to avoid clipping text and/or icons. + corner_radius = 0 + + # Ignore the dbus closeNotification message. + # Useful to enforce the timeout set by dunst configuration. Without this + # parameter, an application may close the notification sent before the + # user defined timeout. + ignore_dbusclose = false + + ### Wayland ### + # These settings are Wayland-specific. They have no effect when using X11 + + # Uncomment this if you want to let notications appear under fullscreen + # applications (default: overlay) + # layer = top + + # Set this to true to use X11 output on Wayland. + force_xwayland = false + + ### Legacy + + # Use the Xinerama extension instead of RandR for multi-monitor support. + # This setting is provided for compatibility with older nVidia drivers that + # do not support RandR and using it on systems that support RandR is highly + # discouraged. + # + # By enabling this setting dunst will not be able to detect when a monitor + # is connected or disconnected which might break follow mode if the screen + # layout changes. + force_xinerama = false + + ### mouse + + # Defines list of actions for each mouse event + # Possible values are: + # * none: Don't do anything. + # * do_action: Invoke the action determined by the action_name rule. If there is no + # such action, open the context menu. + # * open_url: If the notification has exactly one url, open it. If there are multiple + # ones, open the context menu. + # * close_current: Close current notification. + # * close_all: Close all notifications. + # * context: Open context menu for the notification. + # * context_all: Open context menu for all notifications. + # These values can be strung together for each mouse event, and + # will be executed in sequence. + mouse_left_click = do_action, close_current + mouse_middle_click = close_all + mouse_right_click = close_current + +# Experimental features that may or may not work correctly. Do not expect them +# to have a consistent behaviour across releases. +[experimental] + # Calculate the dpi to use on a per-monitor basis. + # If this setting is enabled the Xft.dpi value will be ignored and instead + # dunst will attempt to calculate an appropriate dpi value for each monitor + # using the resolution and physical size. This might be useful in setups + # where there are multiple screens with very different dpi values. + per_monitor_dpi = false + + +[urgency_low] + # IMPORTANT: colors have to be defined in quotation marks. + # Otherwise the "#" and following would be interpreted as a comment. + background = "#232A2E" + foreground = "#D3C6AA" #gray2# + highlight = "#A7C080" + timeout = 10 + # Icon for notifications with low urgency, uncomment to enable + #default_icon = /path/to/icon + +[urgency_normal] + background = "#232A2E" + foreground = "#D3C6AA" #bejsikFG# + highlight = "#A7C080" + timeout = 10 + # Icon for notifications with normal urgency, uncomment to enable + #default_icon = /path/to/icon + +[urgency_critical] + background = "#232A2E" + foreground = "#E69875" #orange# + frame_color = "#E67E80" #red# + timeout = 0 + # Icon for notifications with critical urgency, uncomment to enable + #default_icon = /path/to/icon + +# Every section that isn't one of the above is interpreted as a rules to +# override settings for certain messages. +# +# Messages can be matched by +# appname (discouraged, see desktop_entry) +# body +# category +# desktop_entry +# icon +# match_transient +# msg_urgency +# stack_tag +# summary +# +# and you can override the +# background +# foreground +# format +# frame_color +# fullscreen +# new_icon +# set_stack_tag +# set_transient +# set_category +# timeout +# urgency +# icon_position +# skip_display +# history_ignore +# action_name +# word_wrap +# ellipsize +# alignment +# hide_text +# +# Shell-like globbing will get expanded. +# +# Instead of the appname filter, it's recommended to use the desktop_entry filter. +# GLib based applications export their desktop-entry name. In comparison to the appname, +# the desktop-entry won't get localized. +# +# SCRIPTING +# You can specify a script that gets run when the rule matches by +# setting the "script" option. +# The script will be called as follows: +# script appname summary body icon urgency +# where urgency can be "LOW", "NORMAL" or "CRITICAL". +# +# NOTE: It might be helpful to run dunst -print in a terminal in order +# to find fitting options for rules. + +# Disable the transient hint so that idle_threshold cannot be bypassed from the +# client +#[transient_disable] +# match_transient = yes +# set_transient = no +# +# Make the handling of transient notifications more strict by making them not +# be placed in history. +#[transient_history_ignore] +# match_transient = yes +# history_ignore = yes + +# fullscreen values +# show: show the notifications, regardless if there is a fullscreen window opened +# delay: displays the new notification, if there is no fullscreen window active +# If the notification is already drawn, it won't get undrawn. +# pushback: same as delay, but when switching into fullscreen, the notification will get +# withdrawn from screen again and will get delayed like a new notification +#[fullscreen_delay_everything] +# fullscreen = delay +#[fullscreen_show_critical] +# msg_urgency = critical +# fullscreen = show + +#[espeak] +# summary = "*" +# script = dunst_espeak.sh + +#[script-test] +# summary = "*script*" +# script = dunst_test.sh + +#[ignore] +# # This notification will not be displayed +# summary = "foobar" +# skip_display = true + +#[history-ignore] +# # This notification will not be saved in history +# summary = "foobar" +# history_ignore = yes + +#[skip-display] +# # This notification will not be displayed, but will be included in the history +# summary = "foobar" +# skip_display = yes + +#[signed_on] +# appname = Pidgin +# summary = "*signed on*" +# urgency = low +# +#[signed_off] +# appname = Pidgin +# summary = *signed off* +# urgency = low +# +#[says] +# appname = Pidgin +# summary = *says* +# urgency = critical +# +#[twitter] +# appname = Pidgin +# summary = *twitter.com* +# urgency = normal +# +#[stack-volumes] +# appname = "some_volume_notifiers" +# set_stack_tag = "volume" +# +# vim: ft=cfg diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini new file mode 100644 index 0000000..f5bccca --- /dev/null +++ b/.config/polybar/config.ini @@ -0,0 +1,259 @@ +;========================================================== +; +; +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; +; +; To learn more about how to configure Polybar +; go to https://github.com/polybar/polybar +; +; The README contains a lot of information +; +;========================================================== + +[colors] +background = #000000 +background-alt = #373B41 +foreground = #C5C8C6 +primary = #A7C080 +secondary = #8ABEB7 +alert = #A54242 +disabled = #707880 + +[bar/primary] +width = 100% +height = 24pt +radius = 0 + +monitor = DP-2 + +; dpi = 96 + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3pt + +border-size = 0pt + +padding-left = 0 +padding-right = 1 + +module-margin = 1 +separator = | +separator-foreground = ${colors.disabled} + +font-0 = "JetBrainsMonoNL Nerd Font Mono:pixelsize=12;2" + +modules-left = bspwm xwindow +modules-center = date +modules-right = music filesystem memory cpu wlan + +cursor-click = pointer +cursor-scroll = ns-resize + +enable-ipc = true + +; wm-restack = generic +wm-restack = bspwm +wm-name = bspwm +; wm-restack = i3 + +; override-redirect = true + +[bar/secondary] +width = 100% +height = 24pt +radius = 0 + +monitor = HDMI-0 + +; dpi = 96 + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3pt + +border-size = 0pt + +padding-left = 0 +padding-right = 1 + +module-margin = 1 +separator = | +separator-foreground = ${colors.disabled} + +font-0 = "JetBrainsMonoNL Nerd Font Mono:pixelsize=12;2" + +modules-left = bspwm xwindow +modules-center = date +modules-right = music filesystem memory cpu wlan + +cursor-click = pointer +cursor-scroll = ns-resize + +enable-ipc = true + +; wm-restack = generic +wm-restack = bspwm +wm-name = bspwm +; wm-restack = i3 + +; override-redirect = true + +[module/systray] +type = internal/tray + +format-margin = 8pt +tray-spacing = 16pt + +[module/bspwm] +type = internal/bspwm +pin-workspaces = true + +format = + +label-focused = " %name% " +label-focused-foreground = ${colors.background} +label-focused-background = ${colors.primary} + +label-occupied = " %name% " +label-empty = " %name% " +label-urgent = " %name% " + +label-dimmed = " %name% " +label-dimmed-foreground = ${colors.foreground} +label-dimmed-underline = ${bar/top.background} + +label-dimmed-focused = " %name% " +label-dimmed-focused-background = ${colors.secondary} +label-dimmed-focused-foreground = ${colors.background} + +[module/xworkspaces] +type = internal/xworkspaces + +label-active = %name% +label-active-background = ${colors.background-alt} +label-active-underline= ${colors.primary} +label-active-padding = 1 + +label-occupied = %name% +label-occupied-padding = 1 + +label-urgent = %name% +label-urgent-background = ${colors.alert} +label-urgent-padding = 1 + +label-empty = %name% +label-empty-foreground = ${colors.disabled} +label-empty-padding = 1 + +[module/xwindow] +type = internal/xwindow +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  +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 & +icon-playing =  + +[module/filesystem] +type = internal/fs +interval = 25 + +mount-0 = / + +label-mounted = %{F#A7C080}%mountpoint%%{F-} %percentage_used%% + +label-unmounted = %mountpoint% not mounted +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 +interval=0.5 + +[module/pulseaudio] +type = internal/pulseaudio + +format-volume-prefix = "vol " +format-volume-prefix-foreground = ${colors.primary} +format-volume = + +label-volume = %percentage%% + +label-muted = muted +label-muted-foreground = ${colors.disabled} + +[module/xkeyboard] +type = internal/xkeyboard +blacklist-0 = num lock + +label-layout = %layout% +label-layout-foreground = ${colors.primary} + +label-indicator-padding = 2 +label-indicator-margin = 1 +label-indicator-foreground = ${colors.background} +label-indicator-background = ${colors.secondary} + +[module/memory] +type = internal/memory +interval = 2 +format-prefix = "ram " +format-prefix-foreground = ${colors.primary} +label = %percentage_used:2%% + +[module/cpu] +type = internal/cpu +interval = 2 +format-prefix = "cpu " +format-prefix-foreground = ${colors.primary} +label = %percentage:2%% + +[network-base] +type = internal/network +interval = 5 +format-connected = +format-disconnected = +label-disconnected = %{F#A7C080}%ifname%%{F#707880} disconnected + +[module/wlan] +inherit = network-base +interface-type = wireless +label-connected = %{F#A7C080}%ifname%%{F-} %essid% %local_ip% + +[module/eth] +inherit = network-base +interface-type = wired +label-connected = %{F#A7C080}%ifname%%{F-} %local_ip% + +[module/date] +type = internal/date +interval = 1 + +date = %A, %d %B %H:%M +date-alt = %Y-%m-%d %H:%M:%S + +label = %date% +label-foreground = ${colors.primary} + +[settings] +screenchange-reload = true +pseudo-transparency = true + +; vim:ft=dosini diff --git a/.config/polybar/scripts/battery-combined-shell/README.md b/.config/polybar/scripts/battery-combined-shell/README.md new file mode 100644 index 0000000..37800d6 --- /dev/null +++ b/.config/polybar/scripts/battery-combined-shell/README.md @@ -0,0 +1,15 @@ +# 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 +``` diff --git a/.config/polybar/scripts/battery-combined-shell/battery-combined-shell.sh b/.config/polybar/scripts/battery-combined-shell/battery-combined-shell.sh new file mode 100644 index 0000000..9466ce2 --- /dev/null +++ b/.config/polybar/scripts/battery-combined-shell/battery-combined-shell.sh @@ -0,0 +1,61 @@ +#!/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" + +ac=0 +battery_level_0=0 +battery_level_1=0 +battery_max_0=0 +battery_max_1=0 + +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") +fi + +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") +fi + +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")) +battery_max=$(("$battery_max_0 + $battery_max_1")) + +battery_percent=$(("$battery_level * 100")) +battery_percent=$(("$battery_percent / $battery_max")) + +if [ "$ac" -eq 1 ]; then + icon="#1" + + if [ "$battery_percent" -gt 97 ]; then + echo "$icon" + else + echo "$icon $battery_percent %" + fi +else + if [ "$battery_percent" -gt 85 ]; then + icon="#21" + elif [ "$battery_percent" -gt 60 ]; then + icon="#22" + elif [ "$battery_percent" -gt 35 ]; then + icon="#23" + elif [ "$battery_percent" -gt 10 ]; then + icon="#24" + else + icon="#25" + fi + + echo "$icon $battery_percent %" +fi diff --git a/.config/polybar/scripts/battery-combined-tlp/README.md b/.config/polybar/scripts/battery-combined-tlp/README.md new file mode 100644 index 0000000..0a11598 --- /dev/null +++ b/.config/polybar/scripts/battery-combined-tlp/README.md @@ -0,0 +1,31 @@ +# 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. + +![battery-combined-tlp](screenshots/1.png) + + +## 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 +``` diff --git a/.config/polybar/scripts/battery-combined-tlp/battery-combined-tlp.sh b/.config/polybar/scripts/battery-combined-tlp/battery-combined-tlp.sh new file mode 100644 index 0000000..2e18b11 --- /dev/null +++ b/.config/polybar/scripts/battery-combined-tlp/battery-combined-tlp.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +battery=$(sudo tlp-stat -b | tac | grep -m 1 "Charge" | tr -d -c "[:digit:],.") + +echo "# $battery %" diff --git a/.config/polybar/scripts/battery-combined-tlp/screenshots/1.png b/.config/polybar/scripts/battery-combined-tlp/screenshots/1.png new file mode 100644 index 0000000000000000000000000000000000000000..7474a298c72a800e9639d26ead317e91c992b487 GIT binary patch literal 841 zcmV-P1GfB$P)pBOC<%dYd4;*+kEOj0|OTqdt{L1f@O#P{`&{l%Tk=}y>0geg3i5i z{c%~IFPbtwUd})t)8%WAJ$mxS#$4UU-DugGqgVyeG`c$Kii`5kSg`lq`!5hFRb`3a zzyEel*c=&RB`YHg^t^|&-tGfeklhMY$@1mvj}SjIg3i5p=NT6#Td2SJ>WwGiibX~E zK79Ck_x?+u$m#R<%JO{J*;ud&{`~a^u8Wn0+00mF+MHc*w*sXYfzgKqfWiFd_g`Qr zpgD|$vb)`W? zSzfwYvOw8ecVDovv6L71e*5*n(h}FZ#Z-Ba%tU3Zw2Fwg6&fJlf z6bkk={r{g~&8AcLAHIS}k>Ff;8R36G-KgNw)ki=C6q69+w=`4z@ZlSfja3k?@8hR$ zKvPa%xcBS#A7Day|KTez{Xp_4P>q-YRJ_?L64`=;3i=oaXAu)sn zS{^uZ4b8a_u8<&)pQrJO)3=dx23A3!`tLt}-M;(6)IbTCgp?J<1^BsNz5WC-2bh4p zTnv!2KG3ozkdD!M&HFNpnyaMnMp2E5`sV%T)OgT@1d&@DXfCI zsqT9YUb%kjDNxPk9p``%ZEvIX;p5k}n@)ZH0xJH1z{E)T&b^mFK_GkI;cL;MHVh2^ zfr$ZbBMIg1wOda&Y&`?lIUo#1U;}crMMkTjCn2lR$_b>HJL+6gLW@+jLo9RwZQ*Yt Tw0^?O00000NkvXXu0mjfl(3J3 literal 0 HcmV?d00001 diff --git a/.config/polybar/scripts/battery-combined-udev/95-battery.rules b/.config/polybar/scripts/battery-combined-udev/95-battery.rules new file mode 100644 index 0000000..d5d31b0 --- /dev/null +++ b/.config/polybar/scripts/battery-combined-udev/95-battery.rules @@ -0,0 +1,4 @@ +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" diff --git a/.config/polybar/scripts/battery-combined-udev/README.md b/.config/polybar/scripts/battery-combined-udev/README.md new file mode 100644 index 0000000..0fbc0ec --- /dev/null +++ b/.config/polybar/scripts/battery-combined-udev/README.md @@ -0,0 +1,22 @@ +# 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 +``` diff --git a/.config/polybar/scripts/battery-combined-udev/battery-combined-udev.sh b/.config/polybar/scripts/battery-combined-udev/battery-combined-udev.sh new file mode 100644 index 0000000..2ad7a7c --- /dev/null +++ b/.config/polybar/scripts/battery-combined-udev/battery-combined-udev.sh @@ -0,0 +1,88 @@ +#!/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" + + ac=0 + battery_level_0=0 + battery_level_1=0 + battery_max_0=0 + battery_max_1=0 + + 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") + fi + + 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") + fi + + 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")) + battery_max=$(("$battery_max_0 + $battery_max_1")) + + battery_percent=$(("$battery_level * 100")) + battery_percent=$(("$battery_percent / $battery_max")) + + if [ "$ac" -eq 1 ]; then + icon="#1" + + if [ "$battery_percent" -gt 97 ]; then + echo "$icon" + else + echo "$icon $battery_percent %" + fi + else + if [ "$battery_percent" -gt 85 ]; then + icon="#21" + elif [ "$battery_percent" -gt 60 ]; then + icon="#22" + elif [ "$battery_percent" -gt 35 ]; then + icon="#23" + elif [ "$battery_percent" -gt 10 ]; then + icon="#24" + else + icon="#25" + fi + + echo "$icon $battery_percent %" + fi +} + +path_pid="/tmp/polybar-battery-combined-udev.pid" + +case "$1" in + --update) + pid=$(cat $path_pid) + + if [ "$pid" != "" ]; then + kill -10 "$pid" + fi + ;; + *) + echo $$ > $path_pid + + trap exit INT + trap "echo" USR1 + + while true; do + battery_print + + sleep 30 & + wait + done + ;; +esac diff --git a/.config/polybar/scripts/battery-cyberpower/README.md b/.config/polybar/scripts/battery-cyberpower/README.md new file mode 100644 index 0000000..d02b2e7 --- /dev/null +++ b/.config/polybar/scripts/battery-cyberpower/README.md @@ -0,0 +1,29 @@ +# 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 +``` diff --git a/.config/polybar/scripts/battery-cyberpower/battery-cyberpower.sh b/.config/polybar/scripts/battery-cyberpower/battery-cyberpower.sh new file mode 100644 index 0000000..e3ba575 --- /dev/null +++ b/.config/polybar/scripts/battery-cyberpower/battery-cyberpower.sh @@ -0,0 +1,56 @@ +#!/bin/sh + +ICON_AC="#1" +ICON_BATTERY_FULL="#21" +ICON_BATTERY_GOOD="#22" +ICON_BATTERY_LOW="#23" +ICON_BATTERY_CAUTION="#24" +ICON_BATTERY_EMPTY="#25" + +SHOW_ESTIMATION=1 + +battery_print() { + battery_info="$(sudo pwrstat -status)" + battery_capacity="$(echo "$battery_info" | awk '/Capacity/{print $3}')" + battery_ac="$(echo "$battery_info" | awk '/Power Supply by/{print $4,$5}')" + battery_load="$(echo "$battery_info" | grep "Load" | cut -d \( -f 2 | tr -d ' %)')" + battery_remaining="$(echo "$battery_info" | awk '/Remaining Runtime/{print $3}')" + + output="" + + if [ "$battery_ac" = "Utility Power" ]; then + if [ "$battery_capacity" -gt 97 ]; then + output="$ICON_AC" + else + output="$ICON_AC $battery_capacity %" + fi + else + if [ "$battery_capacity" -gt 85 ]; then + output="$ICON_BATTERY_FULL $battery_capacity %" + elif [ "$battery_capacity" -gt 60 ]; then + output="$ICON_BATTERY_GOOD $battery_capacity %" + elif [ "$battery_capacity" -gt 35 ]; then + output="$ICON_BATTERY_LOW $battery_capacity %" + elif [ "$battery_capacity" -gt 10 ]; then + output="$ICON_BATTERY_CAUTION $battery_capacity %" + else + output="$ICON_BATTERY_EMPTY $battery_capacity %" + fi + fi + + if [ "$SHOW_ESTIMATION" -eq 1 ]; then + output="$output ($battery_load % / $battery_remaining min)" + fi + + echo "$output" +} + +trap exit INT +trap "echo" USR1 + +while true; do + battery_print "$@" + + sleep 30 & + wait +done diff --git a/.config/polybar/scripts/dunst-snooze/README.md b/.config/polybar/scripts/dunst-snooze/README.md new file mode 100644 index 0000000..e2cc6bb --- /dev/null +++ b/.config/polybar/scripts/dunst-snooze/README.md @@ -0,0 +1,16 @@ +# 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. + +![dunst-pause](screenshots/1.png) +![dunst-pause](screenshots/2.png) + + +## Module +```ini +[module/dunst-snooze] +type = custom/script +exec = ~/polybar-scripts/dunst-snooze.sh +interval = 10 +click-left = ~/polybar-scripts/dunst-snooze.sh --toggle & +``` diff --git a/.config/polybar/scripts/dunst-snooze/dunst-snooze.sh b/.config/polybar/scripts/dunst-snooze/dunst-snooze.sh new file mode 100644 index 0000000..547eb87 --- /dev/null +++ b/.config/polybar/scripts/dunst-snooze/dunst-snooze.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +case "$1" in + --toggle) + dunstctl set-paused toggle + ;; + *) + if [ "$(dunstctl is-paused)" = "true" ]; then + echo "#1" + else + echo "#2" + fi + ;; +esac diff --git a/.config/polybar/scripts/dunst-snooze/screenshots/1.png b/.config/polybar/scripts/dunst-snooze/screenshots/1.png new file mode 100644 index 0000000000000000000000000000000000000000..f776e9fd4ce110b72fb6c4eefb23af4ab2689288 GIT binary patch literal 756 zcmV6@r2eK@C3ug^r2_MCj7dAsVDeJRBks`@B08@#}ndd+Uq&w8iOm z_M7i^9=nHm7=U1G^p~IkgWd++Q^LD4)Pdf&#<9i=!YG)Y#T>qZus3`SFu)N3P>`~b z^+CSJ-CF96ps8Wb5M}5VXCljMY?6G#mZVV@6dErD`OWH+!8_~AEb>^?2r>!ffR`n6 z8TspXODjx=VK0mf!f%#O*39y=wYLu%Hjk`q7(9=e2+KwaJ~6*=|K*E^OY`y6(aSfl zpGklFy#94tMdutt8EJ~&zIgA|?#5!pGSU>3DyGW%`Z!~jB{=IZL_41oo_a%j|MbxLVw|i|l>q=_jB(C+ zKh0StYx}ebmdRw)>}LP~fa$X>=NzP10DoUZ1sO7s_!Q0stUVy;rG|jao6{k$@#EY7SuIQs;;6 zJi2@CboIi)#LoNG#>$(Yk#CWzlrLRhhw>d02R4M0KSx_z3$E>#nRB}6hgrDTUlwH+tOY;b~*_BJ*t5J1~; ztaclKh;)8j|4yN?p9qwc+kdtYQIYPR)K$h9BLX4?|8v83K>$Q5)QtcDA*@(D4gjs4 mzx@NzX0ssI2<_Zd(00009a7bBm000ie z000ie0hKEb8vpa0%5X1&EAfu2(su2a$cA4s})?AT0U(1Yf_G3KM%H``( z3uw_*kBA0&tIabFau$|1rc>(`;g9KJ~EUj4$0vq$;R``NYzKT#qx?7r67ZE#R3p+jsWaqsFR&G*Ou8DZg~H z#uI#UzpIa$*Qo$n5G!Ex^>S+&au)>do%d!401-+7uxo~ULTMZP)K=p^+5TDL&9$6qlM0xz zQbQ;uQ9=j-06>XZIqAZv2P4^|#*sG1B=>d5wP%;Hp4|`h1dAz^?q)5ajNdSy7qjr>D*SbASwfiX{ ze?vip5M>6B!=uz0@4}BUW(*jkFqJMJBfuCnWoF##idmv)vpXCB5FQ#FIh@4$Fk%f% d^^ABaQ+faZ002ovPDHLkV1fi>#U}s& literal 0 HcmV?d00001 diff --git a/.config/polybar/scripts/easteregg-pornhub/README.md b/.config/polybar/scripts/easteregg-pornhub/README.md new file mode 100644 index 0000000..05c0776 --- /dev/null +++ b/.config/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 =