power menu, redshift, polybar
This commit is contained in:
21
.config/polybar/scripts/info-wmname/README.md
Normal file
21
.config/polybar/scripts/info-wmname/README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# Script: info-wmname
|
||||
|
||||
This script prints the value of the window manager name property of the root window.
|
||||
|
||||
The BSPWM window manger, and maybe some more, has some problems with java scaling. To solve this you can [set the value of the window manager name property](https://wiki.archlinux.org/index.php/java#Impersonate_another_window_manager) to something different.
|
||||
|
||||
|
||||
## Dependencies
|
||||
|
||||
* `wmname`
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/info-wmname]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/info-wmname.sh
|
||||
interval = 5
|
||||
click-left = ~/polybar-scripts/info-wmname.sh --toggle &
|
||||
```
|
||||
14
.config/polybar/scripts/info-wmname/info-wmname.sh
Normal file
14
.config/polybar/scripts/info-wmname/info-wmname.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
case "$1" in
|
||||
--toggle)
|
||||
if [ "$(wmname)" != "BSPWM" ]; then
|
||||
wmname BSPWM
|
||||
else
|
||||
wmname LG3D
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "# $(wmname)"
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user