Minor improvments to init & ~/bin scripts, remove numlock from autostarts
This commit is contained in:
parent
88ecac0da3
commit
92ada44d97
@ -77,10 +77,16 @@ set $Mon2 HDMI2
|
|||||||
# run with reload
|
# run with reload
|
||||||
exec_always --no-startup-id start-compton
|
exec_always --no-startup-id start-compton
|
||||||
exec_always --no-startup-id al-polybar-session
|
exec_always --no-startup-id al-polybar-session
|
||||||
exec_always --no-startup-id numlockx on
|
|
||||||
exec_always --no-startup-id nitrogen --restore
|
exec_always --no-startup-id nitrogen --restore
|
||||||
exec_always --no-startup-id xrdb -load ~/.Xresources
|
exec_always --no-startup-id xrdb -load ~/.Xresources
|
||||||
exec_always --no-startup-id pkill trayer; trayer --edge bottom --align left --heighttype pixel --height 18 --widthtype request --SetDockType false --expand true --transparent true --alpha 255
|
|
||||||
|
# Trayer
|
||||||
|
exec_always --no-startup-id pkill trayer; trayer --edge bottom \
|
||||||
|
--align left --heighttype pixel --height 18 --widthtype request \
|
||||||
|
--SetDockType false --expand true --transparent true --alpha 255
|
||||||
|
|
||||||
|
# If you have a numpad you may want to enable this
|
||||||
|
# exec_always --no-startup-id numlockx on
|
||||||
|
|
||||||
# run once
|
# run once
|
||||||
exec --no-startup-id xfsettingsd
|
exec --no-startup-id xfsettingsd
|
||||||
|
@ -20,7 +20,7 @@ do_setup() {
|
|||||||
sudo pacman-key --populate archlabs
|
sudo pacman-key --populate archlabs
|
||||||
}
|
}
|
||||||
|
|
||||||
while ! [[ $(ping -c1 8.8.8.8) ]]; do
|
while ! [[ "$(ping -c1 8.8.8.8)" ]]; do
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
al-compositor --start &
|
al-compositor --start &
|
||||||
|
|
||||||
#$HOME/.config/setup &
|
#$HOME/.config/setup &
|
||||||
# enable numlock, comment out if you dont have a numpad
|
# enable numlock, commented out for laptop users
|
||||||
numlockx on &
|
#numlockx on &
|
||||||
|
|
||||||
# restore wallpaper
|
# restore wallpaper
|
||||||
nitrogen --restore &
|
nitrogen --restore &
|
||||||
|
@ -6,16 +6,21 @@ XDG_CONFIG_HOME=$HOME/.config
|
|||||||
export XDG_CONFIG_HOME
|
export XDG_CONFIG_HOME
|
||||||
|
|
||||||
# include ~/bin in path
|
# include ~/bin in path
|
||||||
export PATH=$HOME/bin:$PATH
|
if [ -d "$HOME/bin" ]; then
|
||||||
|
PATH=$HOME/bin:$PATH
|
||||||
|
fi
|
||||||
|
|
||||||
# include sbin in PATH
|
# include sbin in PATH
|
||||||
if [ -d "/sbin" ] ; then
|
if [ -d "/sbin" ]; then
|
||||||
PATH="/sbin:$PATH"
|
PATH="/sbin:$PATH"
|
||||||
fi
|
fi
|
||||||
if [ -d "/usr/sbin" ] ; then
|
|
||||||
|
# include sbin in PATH
|
||||||
|
if [ -d "/usr/sbin" ]; then
|
||||||
PATH="/usr/sbin:$PATH"
|
PATH="/usr/sbin:$PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# launch dbus
|
||||||
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
|
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
|
||||||
eval `dbus-launch --sh-syntax --exit-with-session`
|
eval $(dbus-launch --sh-syntax --exit-with-session)
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
|
||||||
if [ "$(pidof compton)" ]; then
|
if [[ "$(pidof compton)" ]]; then
|
||||||
al-compositor --restart
|
al-compositor --restart
|
||||||
else
|
else
|
||||||
al-compositor --start
|
al-compositor --start
|
||||||
|
@ -4,15 +4,19 @@ on=""
|
|||||||
off=""
|
off=""
|
||||||
|
|
||||||
# if the script is passed --toggle
|
# if the script is passed --toggle
|
||||||
if [[ $1 == *toggle* ]] && pgrep caffeine &>/dev/null; then
|
if [[ "$1" ]]; then
|
||||||
killall caffeine && exit 0
|
if [[ "$1" == *toggle* ]] && [[ "$(pidof caffeine)" ]]; then
|
||||||
elif [[ $1 == *toggle* ]]; then
|
killall caffeine
|
||||||
caffeine && exit 0
|
elif [[ "$1" == *toggle* ]]; then
|
||||||
|
caffeine &
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
# caffeine is running
|
# caffeine is running
|
||||||
if pgrep caffeine &>/dev/null; then
|
if [[ "$(pidof caffeine)" ]]; then
|
||||||
echo "%{F#0000FF}$on"
|
echo "%{F#0000FF}$on"
|
||||||
else
|
else
|
||||||
echo "%{F#FF0000}$off"
|
echo "%{F#FF0000}$off"
|
||||||
|
@ -3,14 +3,17 @@
|
|||||||
on=""
|
on=""
|
||||||
off=""
|
off=""
|
||||||
|
|
||||||
if [[ $1 == *toggle* ]] && [[ $(pidof compton) ]]; then
|
if [[ "$1" ]]; then
|
||||||
al-compositor --stop && exit 0
|
if [[ "$1" == *toggle* ]] && [[ "$(pidof compton)" ]]; then
|
||||||
elif [[ $1 == *toggle* ]]; then
|
al-compositor --stop
|
||||||
al-compositor --start && exit 0
|
elif [[ "$1" == *toggle* ]]; then
|
||||||
|
al-compositor --start
|
||||||
|
fi
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
if [[ $(pidof compton) ]]; then
|
if [[ "$(pidof compton)" ]]; then
|
||||||
echo "$on"
|
echo "$on"
|
||||||
else
|
else
|
||||||
echo "%{F#888888}$off"
|
echo "%{F#888888}$off"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# small script to kill polybar if it is running
|
# small script to kill polybar if it is running
|
||||||
# if it isnt running then start it the default session
|
# if it isnt running then start it the default session
|
||||||
if [[ $(pidof polybar) ]]; then
|
if [[ "$(pidof polybar)" ]]; then
|
||||||
pkill polybar
|
pkill polybar
|
||||||
else
|
else
|
||||||
al-polybar-session
|
al-polybar-session
|
||||||
|
Reference in New Issue
Block a user