feat: update hyprland's startup script to reduce start duration, update gtk theme configs

This commit is contained in:
ryan4yin
2023-05-07 19:57:25 +08:00
parent 79c424e08e
commit 162399ad8a
7 changed files with 46 additions and 29 deletions
-19
View File
@@ -1,19 +0,0 @@
#!/usr/bin/env bash
## Set GTK Themes, Icons, Cursor and Fonts
THEME='Arc-Dark'
ICONS='Zafiro-Blue'
FONT='Noto Sans 9'
CURSOR='Qogirr'
SCHEMA='gsettings set org.gnome.desktop.interface'
apply_themes () {
${SCHEMA} gtk-theme "$THEME"
${SCHEMA} icon-theme "$ICONS"
${SCHEMA} cursor-theme "$CURSOR"
${SCHEMA} font-name "$FONT"
}
apply_themes
+1 -7
View File
@@ -3,22 +3,16 @@
## Autostart Programs
# Kill already running process
_ps=(waybar mako mpd xfce-polkit)
_ps=(waybar mako mpd)
for _prs in "${_ps[@]}"; do
if [[ $(pidof ${_prs}) ]]; then
killall -9 ${_prs}
fi
done
# Polkit agent
/usr/lib/xfce-polkit/xfce-polkit &
# Set wallpaper
swaybg --output '*' --mode fill --image ~/.config/hypr/wallpapers/wallpaper.png &
# Apply themes
~/.config/hypr/scripts/gtkthemes &
# Lauch notification daemon (mako)
~/.config/hypr/scripts/notifications &