This commit is contained in:
Valeria Fadeeva 2023-11-23 02:20:37 +05:00
parent e41ac2333e
commit d8ec741430
4 changed files with 17 additions and 9 deletions

View File

@ -1,5 +1,5 @@
[Desktop Entry] [Desktop Entry]
Exec=$HOME/.local/userbin/reset-layout.sh Exec=/usr/bin/bash ~/.local/userbin/reset-layout.sh
Icon= Icon=
Name=reset-layout.sh Name=reset-layout.sh
Path= Path=

View File

@ -1,5 +1,5 @@
[Desktop Entry] [Desktop Entry]
Exec=$HOME/.local/userbin/set-default-web-browser.sh Exec=/usr/bin/bash ~/.local/userbin/set-default-web-browser.sh
Icon= Icon=
Name=set-default-web-browser.sh Name=set-default-web-browser.sh
Path= Path=

View File

@ -2,10 +2,14 @@
sleep 20 sleep 20
plasma-apply-lookandfeel -a "com.github.Melawy.Melawy-round-gray.Nier-A2.desktop" --resetLayout theme="com.github.Melawy.Melawy-round-gray.Nier-A2.desktop"
plasma-apply-lookandfeel -a "$theme" --resetLayout
notify-send -t 5000 -a "Theme is" "$theme" "$(date '+%Y.%m.%d %H:%M:%S')"
if [ "$(whoami)" != "liveuser" ]; then if [ "$(whoami)" != "liveuser" ]; then
sleep 5 sleep 5
rm $HOME/.config/autostart/reset-layout.desktop rm "$HOME/.config/autostart/reset-layout.desktop"
rm $HOME/.local/userbin/reset-layout.sh rm "$HOME/.local/userbin/reset-layout.sh"
fi fi

View File

@ -1,11 +1,15 @@
#!/bin/bash #!/bin/bash
sleep 20 sleep 10
xdg-settings set default-web-browser firefox.desktop browser="firefox.desktop"
xdg-settings set default-web-browser "$browser"
notify-send -t 5000 -a "Default browser is" "$browser" "$(date '+%Y.%m.%d %H:%M:%S')"
if [ "$(whoami)" != "liveuser" ]; then if [ "$(whoami)" != "liveuser" ]; then
sleep 5 sleep 5
rm $HOME/.config/autostart/set-default-web-browser.desktop rm "$HOME/.config/autostart/set-default-web-browser.desktop"
rm $HOME/.local/userbin/set-default-web-browser.sh rm "$HOME/.local/userbin/set-default-web-browser.sh"
fi fi