diff options
author | zachir <zachir@librem.one> | 2023-05-23 15:01:20 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2023-05-23 15:01:20 -0500 |
commit | 32d82fba2c762efccb356c2a0b3e408068cc6e03 (patch) | |
tree | ddda5e6f41956e625eb40a2191309b5542ee5c4c /gen_waybar_confs.sh | |
parent | f3e17b53a3351fa6f3c090a76c7680084d1d2eac (diff) |
Total reorganization, we're moving on from X
Diffstat (limited to 'gen_waybar_confs.sh')
-rwxr-xr-x | gen_waybar_confs.sh | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/gen_waybar_confs.sh b/gen_waybar_confs.sh deleted file mode 100755 index b13d8d7..0000000 --- a/gen_waybar_confs.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -WCLONG="$(crcparse WC)" -WC="$(basename "$WCLONG")" -CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}" -if [ ! -f "$CONFIG/waybar/config-$WC" ]; then - printf "$CONFIG/waybar/config-$WC waybar config does not exist!\n" - exit 1 -fi - -OUTPUTS="$(wlr-randr | grep -B5 'Enabled: yes' | sed '/^\s\s*/d;/^--/d' | cut -d' ' -f1)" - -[ -n "$OUTPUTS" -a -z "$(find "$CONFIG"/waybar -name "config-$WC-*")" ] && \ - rm -rf "$CONFIG/waybar/config-$WC-*" - -echo "$OUTPUTS" | while read i; do - sed 's/%%DISPLAY%%/'$i'/' "$CONFIG"/waybar/config-$WC > "$CONFIG"/waybar/config-$WC-$i -done |