dunst konfiguriert, ein lautstärkescript für dunst geadded und allgemein änderungen/neuerungen etc.
This commit is contained in:
parent
c3179d6141
commit
8b00fe1082
@ -155,7 +155,7 @@ max_icon_size = 80
|
||||
icon_path = /usr/share/icons/Paper/16x16/mimetypes/:/usr/share/icons/Paper/48x48/status/:/usr/share/icons/Paper/16x16/devices/:/usr/share/icons/Paper/48x48/notifications/:/usr/share/icons/Paper/48x48/emblems/
|
||||
|
||||
frame_width = 3
|
||||
frame_color = "#8EC07C"
|
||||
frame_color = "#867CC0"
|
||||
|
||||
[shortcuts]
|
||||
|
||||
@ -188,8 +188,8 @@ background = "#191311"
|
||||
timeout = 4
|
||||
|
||||
[urgency_normal]
|
||||
frame_color = "#5B8234"
|
||||
foreground = "#5B8234"
|
||||
frame_color = "#867CC0"
|
||||
foreground = "#867CC0"
|
||||
background = "#191311"
|
||||
#background = "#2B313C"
|
||||
timeout = 6
|
||||
|
@ -321,9 +321,13 @@ bindsym --release Print exec maim -s ~/Bilder/Screenshots/screenshot_$(date +%s)
|
||||
|
||||
|
||||
## Media keys
|
||||
bindsym XF86AudioRaiseVolume exec exec pamixer -i 5
|
||||
bindsym XF86AudioLowerVolume exec exec pamixer -d 5
|
||||
bindsym XF86AudioMute exec pamixer -t
|
||||
#bindsym XF86AudioRaiseVolume exec exec pamixer -i 5
|
||||
#bindsym XF86AudioLowerVolume exec exec pamixer -d 5
|
||||
#bindsym XF86AudioMute exec pamixer -t
|
||||
bindsym XF86AudioRaiseVolume exec $HOME/.scripts/volume.sh up
|
||||
bindsym XF86AudioLowerVolume exec $HOME/.scripts/volume.sh down
|
||||
bindsym XF86AudioMute exec $HOME/.scripts/volume.sh mute
|
||||
|
||||
|
||||
# Enable GLX Graphics
|
||||
# used especially for Laptop and enable/disable discrete graphics
|
||||
|
@ -1,5 +1,12 @@
|
||||
let g:netrw_dirhistmax =10
|
||||
let g:netrw_dirhistcnt =3
|
||||
let g:netrw_dirhist_3='/home/templis/.config/nvim'
|
||||
let g:netrw_dirhistcnt =2
|
||||
let g:netrw_dirhist_2='/home/templis/.config/i3'
|
||||
let g:netrw_dirhist_1='/home/templis/.config/termite'
|
||||
let g:netrw_dirhist_1='/boot/loader/entries'
|
||||
let g:netrw_dirhist_0='/boot/EFI/systemd'
|
||||
let g:netrw_dirhist_9='/boot/EFI/Linux'
|
||||
let g:netrw_dirhist_8='/boot/loader/entries'
|
||||
let g:netrw_dirhist_7='/home/templis/.config/nvim'
|
||||
let g:netrw_dirhist_6='/home/templis/.config/i3status'
|
||||
let g:netrw_dirhist_5='/home/templis/.config/i3'
|
||||
let g:netrw_dirhist_4='/boot/syslinux'
|
||||
let g:netrw_dirhist_3='/home/templis/.config/nvim'
|
||||
|
73
.scripts/volume.sh
Executable file
73
.scripts/volume.sh
Executable file
@ -0,0 +1,73 @@
|
||||
#!/bin/bash
|
||||
|
||||
# You can call this script like this:
|
||||
# $./volume.sh up
|
||||
# $./volume.sh down
|
||||
# $./volume.sh mute
|
||||
|
||||
# Original from: https://gist.github.com/sebastiencs/5d7227f388d93374cebdf72e783fbd6a
|
||||
|
||||
function get_volume {
|
||||
pamixer --get-volume
|
||||
}
|
||||
|
||||
function is_mute {
|
||||
pamixer --get-volume-human | grep muted > /dev/null
|
||||
}
|
||||
|
||||
function send_notification {
|
||||
volume=`get_volume`
|
||||
icon_quiet="/usr/share/icons/Adwaita/48x48/status/audio-volume-low-symbolic.symbolic.png"
|
||||
icon_loud="/usr/share/icons/Adwaita/48x48/status/audio-volume-high-symbolic.symbolic.png"
|
||||
icon_medium="/usr/share/icons/Adwaita/48x48/status/audio-volume-medium-symbolic.symbolic.png"
|
||||
icon_muted="/usr/share/icons/Adwaita/48x48/status/audio-volume-muted-symbolic.symbolic.png"
|
||||
# Make the bar with the special character ─ (it's not dash -)
|
||||
# https://en.wikipedia.org/wiki/Box-drawing_character
|
||||
bar=$(seq -s "─" $(($volume / 5)) | sed 's/[0-9]//g')
|
||||
# Send the notification
|
||||
# if [ "$volume" == "muted" ]; then
|
||||
icon="/usr/share/icons/Adwaita/48x48/status/audio-volume-muted-symbolic.symbolic.png"
|
||||
#dunstify -i "$icon" -t 2000 --replace 2593 -u normal " $bar"
|
||||
dunstify "$volume"" ""$bar" -i "/usr/share/icons/Adwaita/48x48/status/audio-volume-muted-symbolic.symbolic.png" -t 2000 -h int:value:"$volume" -h string:synchronous:"$bar" --replace=555
|
||||
#else
|
||||
# if [ "$volume" -lt "10" ]; then
|
||||
# icon="/usr/share/icons/Adwaita/48x48/status/audio-volume-low-symbolic.symbolic.png"
|
||||
# else
|
||||
# if [ "$volume" -lt "30" ]; then
|
||||
# icon="/usr/share/icons/Adwaita/48x48/status/audio-volume-medium-symbolic.symbolic.png"
|
||||
# else
|
||||
# if [ "$volume" -lt "70" ]; then
|
||||
# icon="/usr/share/icons/Adwaita/48x48/status/audio-volume-high-symbolic.symbolic.png"
|
||||
# fi
|
||||
# fi
|
||||
# fi
|
||||
#fi
|
||||
|
||||
}
|
||||
|
||||
case $1 in
|
||||
up)
|
||||
# Set the volume on (if it was muted)
|
||||
#amixer -D pulse set Master on > /dev/null
|
||||
# Up the volume (+ 5%)
|
||||
pamixer -i 5
|
||||
canberra-gtk-play -i audio-volume-change -d "changeVolume"
|
||||
send_notification
|
||||
;;
|
||||
down)
|
||||
#amixer -D pulse set Master on > /dev/null
|
||||
pamixer -d 5
|
||||
canberra-gtk-play -i audio-volume-change -d "changeVolume"
|
||||
send_notification
|
||||
;;
|
||||
mute)
|
||||
# Toggle mute
|
||||
pamixer -t
|
||||
if is_mute ; then
|
||||
dunstify -i audio-volume-muted -t 2000 -r 2593 -u normal "Mute"
|
||||
else
|
||||
canberra-gtk-play -i audio-volume-change -d "changeVolume"
|
||||
send_notification
|
||||
fi
|
||||
;;
|
||||
esac
|
4
.zshrc
4
.zshrc
@ -53,7 +53,7 @@
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
# Customize to your needs...
|
||||
export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin
|
||||
export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:$HOME/.scripts
|
||||
export PYTHONPATH=/usr/lib/python3.4/site-packages
|
||||
|
||||
# if colors of ls don't work as expected the following line delete all colors from ls
|
||||
@ -130,3 +130,5 @@ function inventarisierung {
|
||||
PERL_MB_OPT="--install_base \"$HOME/perl5\""; export PERL_MB_OPT;
|
||||
PERL_MM_OPT="INSTALL_BASE=$HOME/perl5"; export PERL_MM_OPT;
|
||||
export TERM="xterm-256color"
|
||||
|
||||
source /home/templis/.config/broot/launcher/bash/br
|
||||
|
Loading…
Reference in New Issue
Block a user