Advertisement
constantin-net

theme-switch

Aug 5th, 2021
811
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  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.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement