diff options
-rw-r--r-- | .config/i3/config | 6 | ||||
-rwxr-xr-x | .config/i3/custom/volume_up.sh | 10 | ||||
-rw-r--r-- | .config/polybar/config | 27 |
3 files changed, 17 insertions, 26 deletions
diff --git a/.config/i3/config b/.config/i3/config index 7aeba1e..02668cf 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -25,9 +25,9 @@ bindsym $alt+b exec --no-startup-id rofi -modi "clipboard:greenclip print" -show bindsym $mod+p exec --no-startup-id rofi-pass # Media keys -bindsym XF86AudioRaiseVolume exec --no-startup-id ~/.config/i3/custom/volume_up.sh 100 -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle +bindsym XF86AudioRaiseVolume exec --no-startup-id pamixer -i 5 +bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d 5 +bindsym XF86AudioMute exec --no-startup-id pamixer -t bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause bindsym XF86AudioNext exec --no-startup-id playerctl next bindsym XF86AudioPrev exec --no-startup-id playerctl previous diff --git a/.config/i3/custom/volume_up.sh b/.config/i3/custom/volume_up.sh deleted file mode 100755 index c03d0ef..0000000 --- a/.config/i3/custom/volume_up.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -max_volume_pc=$1 -current_volume_pc=$(pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,') -if (($current_volume_pc < $max_volume_pc-5)) ; then - pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status -else - a=$(($max_volume_pc - $current_volume_pc)) - pactl set-sink-volume @DEFAULT_SINK@ +$a% && $refresh_i3status -fi - diff --git a/.config/polybar/config b/.config/polybar/config index 67fe125..a1ad6ac 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -35,7 +35,7 @@ border-color = #00000000 padding-left = 0 padding-right = 2 -module-margin-left = 1 +module-margin-left = 0 module-margin-right = 2 ;font-0 = SFNS Display:style=Bold:size=12;3 @@ -89,7 +89,7 @@ font-2 = Font Awesome 5 Free Solid:size=12;3 modules-left = i3 modules-center = -modules-right = date +modules-right = date2 tray-position = none tray-padding = 2 @@ -112,10 +112,10 @@ blacklist-0 = num lock ;label-layout = "%layout% " label-layout = " %layout% " -label-layout-background = ${colors.background-alt} +;label-layout-background = ${colors.background-alt} label-indicator-padding = 2 -label-indicator-margin = 1 +label-indicator-margin = 0 label-indicator-background = ${colors.secondary} @@ -164,20 +164,21 @@ label-urgent-padding = 3 type = internal/date interval = 5 +date = " %a %b %d" +time = %H:%M +label = " %date% %time% " + +[module/date2] +type = internal/date +interval = 5 + date = "" date-alt = " %a %b %d" time = %H:%M time-alt = %H:%M -;format-prefix = " " -;format-prefix-background = ${colors.background-alt} -;format-prefix-foreground = ${colors.foreground} -;format-underline = #0a6cf5 - label = " %date% %time% " -label-background = ${colors.background-alt} - [module/pulseaudio] @@ -187,11 +188,11 @@ format-volume = <label-volume> label-volume = " %percentage% " label-volume-foreground = ${root.foreground} -label-volume-background = ${colors.background-alt} +;label-volume-background = ${colors.background-alt} label-muted = " muted " label-muted-foreground = #999 -label-muted-background = ${colors.background-alt} +;label-muted-background = ${colors.background-alt} |