💾 Archived View for ait.place › dot › bin › .local › bin › leftwm-toggleborder.txt captured on 2022-06-03 at 22:56:33.
-=-=-=-=-=-=-
#!/bin/sh file=${XDG_CONFIG_HOME:-$HOME/.config}/leftwm/themes/current/theme.toml check="$(grep "border_width = 3" $file)" if [ -z "$check" ]; then sed -i -e 's/border_width =.*/border_width = 3/' -e 's/margin =.*/margin = 12/' $file else sed -i -e 's/border_width =.*/border_width = 0/' -e 's/margin =.*/margin = 0/' $file fi leftwm-command "LoadTheme $file"