Updated
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
parent
49f17be877
commit
747cf9c899
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
KERNEL=$(uname -sr)
|
KERNEL=$(uname -sr)
|
||||||
[[ $KERNEL =~ "Microsoft" ]] && "/mnt/c/Program Files/Mozilla Firefox/firefox.exe" "$@"
|
[[ $KERNEL =~ "Microsoft" ]] && "/mnt/c/Program Files/Mozilla Firefox/firefox.exe" "$@"
|
||||||
[[ $KERNEL =~ "gentoo" ]] && GDK_DPI_SCALE="1.2" firefox "$@"
|
[[ $KERNEL =~ "gentoo" ]] && GDK_DPI_SCALE="1.2" firefox-bin "$@"
|
||||||
#brave-bin --force-device-scale-factor=1.2 "$@"&
|
#brave-bin --force-device-scale-factor=1.2 "$@"&
|
||||||
|
@ -15,9 +15,8 @@ printf "%s%%\\n" "🔊 $vol"
|
|||||||
print_wifi(){
|
print_wifi(){
|
||||||
[ "$(stat -c %y "/home/yorune/.config/vpn" 3>/dev/null | egrep -o '[0-9]+\-[0-9]+\-[0-9]+ [0-9]+')" != "$(date '+%Y-%m-%d %H')" ] && sudo /root/.local/bin/protonvpn status | grep -i Status | awk {'print $2'} > "/home/yorune/.config/vpn"
|
[ "$(stat -c %y "/home/yorune/.config/vpn" 3>/dev/null | egrep -o '[0-9]+\-[0-9]+\-[0-9]+ [0-9]+')" != "$(date '+%Y-%m-%d %H')" ] && sudo /root/.local/bin/protonvpn status | grep -i Status | awk {'print $2'} > "/home/yorune/.config/vpn"
|
||||||
|
|
||||||
|
echo -e "$(cat /sys/class/net/w*/operstate | sed "s/down/❌/;s/up/📶/") $(cat /sys/class/net/e*/operstate | sed "s/down/❌/;s/up/🌐/")"
|
||||||
echo -e "$(cat /sys/class/net/w*/operstate | sed "s/down/❌/;s/up/📶/") $(cat /sys/class/net/e*/operstate | sed "s/down/❌/;s/up/🌐/") $(cat /home/yorune/.config/vpn | sed 's/Connected/🌐/g;s/Disconnected/❌/g')"
|
#echo -e "$(cat /sys/class/net/w*/operstate | sed "s/down/❌/;s/up/📶/") $(cat /sys/class/net/e*/operstate | sed "s/down/❌/;s/up/🌐/") $(cat /home/yorune/.config/vpn | sed 's/Connected/🌐/g;s/Disconnected/❌/g')"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print_temp(){
|
print_temp(){
|
||||||
|
@ -6,8 +6,6 @@ chosen=$(echo -e "$choices" | dmenu -i)
|
|||||||
case "$chosen" in
|
case "$chosen" in
|
||||||
Lock) slock ;;
|
Lock) slock ;;
|
||||||
Suspend) sudo pm-suspend && slock ;;
|
Suspend) sudo pm-suspend && slock ;;
|
||||||
#Suspend) sudo systemctl suspend && slock ;;
|
|
||||||
#Suspend) sudo systemctl suspend && locki3 ;;
|
|
||||||
Reboot) sudo reboot ;;
|
Reboot) sudo reboot ;;
|
||||||
Shutdown) sudo shutdown -h now ;;
|
Shutdown) sudo shutdown -h now ;;
|
||||||
esac
|
esac
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
sudo eix-repos-sync
|
sudo /home/yorune/.local/bin/eix-repos-sync
|
||||||
sudo eix-sync -a
|
sudo eix-sync -a
|
||||||
sudo eix-update
|
sudo eix-update
|
||||||
#sudo emerge-webrsync
|
#sudo emerge-webrsync
|
||||||
|
11
.xinitrc
11
.xinitrc
@ -1,4 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
export PATH=$HOME/.local/bin:$PATH
|
||||||
|
|
||||||
xrandr --setprovideroutputsource modesetting NVIDIA-0
|
xrandr --setprovideroutputsource modesetting NVIDIA-0
|
||||||
xrandr --auto
|
xrandr --auto
|
||||||
xset s off -dpms&
|
xset s off -dpms&
|
||||||
@ -7,19 +9,14 @@ xset s off&
|
|||||||
xset -dpms&
|
xset -dpms&
|
||||||
compton&
|
compton&
|
||||||
feh --bg-fill $HOME/.wall.jpg &
|
feh --bg-fill $HOME/.wall.jpg &
|
||||||
#redshift -l 53.2327:18.3036 -t 6500:3200&
|
|
||||||
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&
|
||||||
browser-x&
|
browser-x&
|
||||||
password-manager&
|
password-manager&
|
||||||
transmission-daemon&
|
|
||||||
/usr/local/bin/st -e /bin/sh -c "tmux new-session -s BASE -n HOME '/bin/zsh'\; split-window 'htop'\; new-window -n MAIL 'neomutt'\; new-window -n NEWSBOAT 'newsboat -r '\; new-window -n MUSIC 'cmus'"&
|
/usr/local/bin/st -e /bin/sh -c "tmux new-session -s BASE -n HOME '/bin/zsh'\; split-window 'htop'\; new-window -n MAIL 'neomutt'\; new-window -n NEWSBOAT 'newsboat -r '\; new-window -n MUSIC 'cmus'"&
|
||||||
#/usr/local/bin/st -e /bin/sh -c "tmux new-session -s BASE -n HOME '/bin/zsh'\; split-window 'htop'\; new-window -n MAIL 'neomutt'\; new-window -n IRC 'irssi'\; new-window -n NEWSBOAT 'newsboat'\; new-window -n MUSIC 'cmus'"&
|
|
||||||
(sleep 30 && getforecast)&
|
(sleep 30 && getforecast)&
|
||||||
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
|
||||||
/opt/MEGAcmd/mega-cmd-server --debug-full > /var/log/megacmd/megacmd.log&
|
mega-cmd-server --debug-full > /var/log/megacmd/megacmd.log&
|
||||||
dwmstatusbar&
|
dwmstatusbar&
|
||||||
exec dbus-launch dwm
|
exec dbus-launch dwm
|
||||||
|
|
||||||
|
|
||||||
|
5
.zshrc
5
.zshrc
@ -37,11 +37,11 @@ export GTK_IM_MODULE=ibus
|
|||||||
export XMODIFIERS=@im=ibus
|
export XMODIFIERS=@im=ibus
|
||||||
export QT_IM_MODULE=ibus
|
export QT_IM_MODULE=ibus
|
||||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||||
export CCACHE_DIR="/mnt/backup/ccache"
|
export CCACHE_DIR="/usr/ccache"
|
||||||
export LC_ALL="en_US.UTF-8"
|
export LC_ALL="en_US.UTF-8"
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
export LC_ALL=en_US.UTF-8
|
export LC_ALL=en_US.UTF-8
|
||||||
export BROWSER=/usr/bin/firefox
|
export BROWSER=/usr/bin/firefox-bin
|
||||||
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse'
|
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse'
|
||||||
export EIX_LIMIT_COMPACT=0
|
export EIX_LIMIT_COMPACT=0
|
||||||
export TERMINAL="st"
|
export TERMINAL="st"
|
||||||
@ -88,6 +88,5 @@ alias dplen="trans pl:en"
|
|||||||
alias notes="vim $HOME/git/notes/index.md"
|
alias notes="vim $HOME/git/notes/index.md"
|
||||||
|
|
||||||
# Cleaning-up
|
# Cleaning-up
|
||||||
export KODI_DATA="$HOME/.config/kodi"
|
|
||||||
export PATH=$HOME/.local/bin:$PATH
|
export PATH=$HOME/.local/bin:$PATH
|
||||||
XDG_DATA_DIRS="$HOME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:$XDG_DATA_DIRS"
|
XDG_DATA_DIRS="$HOME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:$XDG_DATA_DIRS"
|
||||||
|
Loading…
Reference in New Issue
Block a user