Added Logs-emerge
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
parent
c4e543e710
commit
cf075a3fdd
13
.local/bin/Logs-emerge
Executable file
13
.local/bin/Logs-emerge
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
LOGS=( $(sudo find /var/tmp/portage/ -mindepth 3 -name "build.log") )
|
||||||
|
LEN=${#LOGS[@]}
|
||||||
|
|
||||||
|
for (( i=0; i<$LEN; i++ ));
|
||||||
|
do
|
||||||
|
echo "$i - ${LOGS[$i]}"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo
|
||||||
|
read -p 'Select number to show logs: ' NUMBER
|
||||||
|
|
||||||
|
sudo tail -f ${LOGS[$NUMBER]} | ccze -A
|
28
.xinitrc
28
.xinitrc
@ -1,14 +1,20 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
export PATH=$HOME/.local/bin:$PATH
|
export PATH=$HOME/.local/bin:$PATH
|
||||||
|
|
||||||
|
# NVDIA
|
||||||
xrandr --setprovideroutputsource modesetting NVIDIA-0
|
xrandr --setprovideroutputsource modesetting NVIDIA-0
|
||||||
xrandr --auto
|
xrandr --auto
|
||||||
xset s off -dpms&
|
|
||||||
|
# Turn off beep
|
||||||
xset b off&
|
xset b off&
|
||||||
xset s off&
|
|
||||||
xset -dpms&
|
# Lock screen
|
||||||
|
xset s 300
|
||||||
|
xautolock -time 5 -locker slock&
|
||||||
|
|
||||||
|
# Programs
|
||||||
compton&
|
compton&
|
||||||
feh --bg-fill $HOME/.wall.jpg &
|
feh --bg-fill "$HOME/.wall.jpg" &
|
||||||
nm-applet --sm-disable&
|
nm-applet --sm-disable&
|
||||||
#sudo /root/.local/bin/protonvpn c -f&
|
#sudo /root/.local/bin/protonvpn c -f&
|
||||||
dunst -config&
|
dunst -config&
|
||||||
@ -19,4 +25,18 @@ password-manager&
|
|||||||
sudo /usr/bin/rdate -s ntp.task.gda.pl && sudo /sbin/hwclock --systohc
|
sudo /usr/bin/rdate -s ntp.task.gda.pl && sudo /sbin/hwclock --systohc
|
||||||
mega-cmd-server --debug-full > /var/log/megacmd/megacmd.log&
|
mega-cmd-server --debug-full > /var/log/megacmd/megacmd.log&
|
||||||
dwmstatusbar&
|
dwmstatusbar&
|
||||||
|
|
||||||
|
# Seetings of LID
|
||||||
|
while true
|
||||||
|
do
|
||||||
|
if [[ $(< /proc/acpi/button/lid/LID0/state ) = *closed ]]
|
||||||
|
then
|
||||||
|
case $(< /sys/class/power_supply/ADP0/online) in
|
||||||
|
1) ( [[ ! "$(pidof slock)" ]] && slock ) ;;
|
||||||
|
0) sudo pm-suspend && slock ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
sleep 2
|
||||||
|
done &
|
||||||
|
|
||||||
exec dbus-launch dwm
|
exec dbus-launch dwm
|
||||||
|
Loading…
Reference in New Issue
Block a user