constantin-net

theme-switch

Aug 5th, 2021
709
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. /usr/bin/gtk-theme-switch2
  4. theme_name="$(cat ~/.gtkrc-2.0 | grep themes | sed 's/\/gtk-2.*// ; s/^.*themes\///')"
  5. sed -i -r  "s/gtk-theme-name=.*$/gtk-theme-name=$theme_name/" ~/.config/gtk-3.0/settings.ini
  6. echo "awesome.restart()" | awesome-client
  7.  
  8. exit 0
  9.  
RAW Paste Data