From 460f6d92519054cef5fa320c4494bf83217d499c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Wed, 24 Mar 2021 00:54:14 +0100 Subject: [PATCH] Changed to firefox, turn off notify in volume, added cpumhz MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin WoΕΊniak --- .local/bin/browser-x | 2 +- .local/bin/cpumhz | 2 ++ .local/bin/volume | 8 +++++--- .xinitrc | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) create mode 100755 .local/bin/cpumhz diff --git a/.local/bin/browser-x b/.local/bin/browser-x index 46a08b9..648922f 100755 --- a/.local/bin/browser-x +++ b/.local/bin/browser-x @@ -5,7 +5,7 @@ export QT_IM_MODULE=ibus KERNEL=$(uname -sr) [[ $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 "$@" # Firefox diff --git a/.local/bin/cpumhz b/.local/bin/cpumhz new file mode 100755 index 0000000..327a21a --- /dev/null +++ b/.local/bin/cpumhz @@ -0,0 +1,2 @@ +#!/bin/bash +watch "grep MHz /proc/cpuinfo | sort -n | tail -n 8 ; sensors" diff --git a/.local/bin/volume b/.local/bin/volume index 29ab7f1..e650cd8 100755 --- a/.local/bin/volume +++ b/.local/bin/volume @@ -1,5 +1,7 @@ #!/bin/bash +NOTIFY=no 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" = "toggle" ] && ponymix toggle> /dev/null && notify-send "πŸ”‡ Volume (un)mute " + +[ "$1" = "up" ] && ponymix increase 5 > /dev/null && [ $NOTIFY == "yes" ] && notify-send "πŸ”Š Volume $(ponymix get-volume)" +[ "$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 " diff --git a/.xinitrc b/.xinitrc index c753753..c66c26e 100644 --- a/.xinitrc +++ b/.xinitrc @@ -19,7 +19,7 @@ nm-applet --sm-disable& dunst -config& browser-x& 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 megasync & ibus-daemon&