Add ac-adaptive and ac-i3

This commit is contained in:
2024-12-30 17:42:34 -07:00
parent 08266c9e8a
commit 0df5cf6ad2
77 changed files with 11099 additions and 24 deletions

52
ac-i3/scripts/i3_autostart Executable file
View File

@@ -0,0 +1,52 @@
#!/usr/bin/env bash
## Copyright (C) 2020-2024 Aditya Shakya <adi1090x@gmail.com>
##
## Autostart Programs
# i3 dir
DIR="$HOME/.config/polybar/ac-i3"
# Export desktop session
export XDG_CURRENT_DESKTOP='i3'
# Kill already running process
_ps=(xsettingsd ksuperkey)
for _prs in "${_ps[@]}"; do
if [[ `pidof ${_prs}` ]]; then
killall -9 ${_prs}
fi
done
# Lauch xsettingsd daemon
xsettingsd --config="$idir"/xsettingsd &
# polkit agent
if [[ ! `pidof xfce-polkit` ]]; then
/usr/lib/xfce-polkit/xfce-polkit &
fi
# Enable power management
xfce4-power-manager &
# Enable Super Keys For Menu
ksuperkey -e 'Super_L=Alt_L|F1' &
ksuperkey -e 'Super_R=Alt_L|F1' &
# Fix cursor
xsetroot -cursor_name left_ptr
# Restore wallpaper
hsetroot -cover "$idir"/theme/wallpaper
# Lauch notification daemon
"$idir"/scripts/i3_dunst
# Lauch polybar
"$idir"/scripts/i3_bar
# Lauch compositor
"$idir"/scripts/i3_comp
# Start mpd
exec mpd &