power menu, redshift, polybar

This commit is contained in:
azpsen
2024-01-28 16:37:10 -06:00
parent 89516a6ce1
commit 319b44ecbd
307 changed files with 7642 additions and 5 deletions

View File

@@ -0,0 +1,21 @@
# Script: system-nvidia-bbswitch
A shell script that shows if the NVIDIA card is used or not.
This only will work for notebook users with a dedicated NVIDIA card and an Intel graphics card. Click the left mouse button to open the `nvidia-settings`.
## Dependencies
* [bbswitch](https://github.com/Bumblebee-Project/bbswitch): You will probably find `bbswitch` in the repository of your distribution.
## Module
```ini
[module/system-nvidia-bbswitch]
type = custom/script
exec = ~/polybar-scripts/system-nvidia-bbswitch.sh
interval = 5
click-left = "optirun -b none nvidia-settings -c :8" &
```

View File

@@ -0,0 +1,7 @@
#!/bin/sh
if grep -q ON /proc/acpi/bbswitch; then
echo "# Active"
else
echo "# Inactive"
fi