Changed to firefox, turn off notify in volume, added cpumhz

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2021-03-24 00:54:14 +01:00
parent 2a7620a621
commit 460f6d9251
Signed by: y0rune
GPG Key ID: F204C385F57EB348
4 changed files with 9 additions and 5 deletions

View File

@ -5,7 +5,7 @@ export QT_IM_MODULE=ibus
KERNEL=$(uname -sr) KERNEL=$(uname -sr)
[[ $KERNEL =~ "icrosoft" ]] && "/mnt/c/Program Files/Mozilla Firefox/firefox.exe" "$@" [[ $KERNEL =~ "icrosoft" ]] && "/mnt/c/Program Files/Mozilla Firefox/firefox.exe" "$@"
[[ $KERNEL =~ "gentoo" ]] && GDK_DPI_SCALE="1.2" firefox-bin "$@" [[ $KERNEL =~ "gentoo" ]] && GDK_DPI_SCALE="1.2" firefox "$@"
#[[ $KERNEL =~ "gentoo" ]] && __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia __GL_SYNC_TO_VBLANK=0 GDK_DPI_SCALE="1.2" firefox "$@" #[[ $KERNEL =~ "gentoo" ]] && __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia __GL_SYNC_TO_VBLANK=0 GDK_DPI_SCALE="1.2" firefox "$@"
# Firefox # Firefox

2
.local/bin/cpumhz Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
watch "grep MHz /proc/cpuinfo | sort -n | tail -n 8 ; sensors"

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
NOTIFY=no
pkill -RTMIN+10 dwmblocks pkill -RTMIN+10 dwmblocks
[ "$1" = "up" ] && ponymix increase 5 > /dev/null && notify-send "🔊 Volume $(ponymix get-volume)"
[ "$1" = "down" ] && ponymix decrease 5 > /dev/null && notify-send "🔉 Volume $(ponymix get-volume)" [ "$1" = "up" ] && ponymix increase 5 > /dev/null && [ $NOTIFY == "yes" ] && notify-send "🔊 Volume $(ponymix get-volume)"
[ "$1" = "toggle" ] && ponymix toggle> /dev/null && notify-send "🔇 Volume (un)mute " [ "$1" = "down" ] && ponymix decrease 5 > /dev/null && [ $NOTIFY == "yes" ] && notify-send "🔉 Volume $(ponymix get-volume)"
[ "$1" = "toggle" ] && ponymix toggle> /dev/null && [ $NOTIFY == "no" ] && notify-send "🔇 Volume (un)mute "

View File

@ -19,7 +19,7 @@ nm-applet --sm-disable&
dunst -config& dunst -config&
browser-x& browser-x&
QT_SCALE_FACTOR=1.5 keepassxc & QT_SCALE_FACTOR=1.5 keepassxc &
/usr/local/bin/st -e /bin/sh -c "tmux new-session -s BASE -n HOME '/bin/zsh'\; split-window -h 'watch "grep MHz /proc/cpuinfo | sort -n | tail -n 8 ; sensors"'\; 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 -h 'cpumhz'\; split-window 'htop'\; new-window -n MAIL 'neomutt'\; new-window -n NEWSBOAT 'newsboat -r '\; new-window -n MUSIC 'cmus'"&
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
megasync & megasync &
ibus-daemon& ibus-daemon&