Simplify volume block, add media script

This commit is contained in:
Riyyi
2018-10-20 18:35:47 +02:00
parent 15d77cdd13
commit 525f4874c9
4 changed files with 46 additions and 46 deletions
+9 -7
View File
@@ -1,14 +1,16 @@
##--- General ---##
# Basic definitions
set $mod Mod4
set $mod2 Mod1
for_window [class="^.*"] border pixel 2
smart_gaps on
gaps inner 10
gaps outer 0
hide_edge_borders both
for_window [class="^.*"] border pixel 2
# Use Mouse+$mod to drag floating windows to their wanted position
set $mod Mod4
set $mod2 Mod1
set $mc $HOME/.scripts/mediacontrol.sh
# Use Mouse+$mod to drag floating windows
floating_modifier $mod
# Application startup
@@ -198,6 +200,6 @@ bindsym --release Shift+Print exec scrot -s -e "mv \$f $HOME/Pictures/screen_c
bindsym --release $mod+Print exec scrot -u -e "mv \$f $HOME/Pictures/screen_captures/" # Focused window
# Volume
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -q -D pulse sset Master 5%+ unmute && pkill -RTMIN+1 i3blocks
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -q -D pulse sset Master 5%- unmute && pkill -RTMIN+1 i3blocks
bindsym XF86AudioMute exec --no-startup-id amixer -q -D pulse sset Master toggle && pkill -RTMIN+1 i3blocks
bindsym XF86AudioRaiseVolume exec --no-startup-id $mc up 5
bindsym XF86AudioLowerVolume exec --no-startup-id $mc down 5
bindsym XF86AudioMute exec --no-startup-id $mc toggle
+5 -4
View File
@@ -126,13 +126,14 @@ alias gd="git diff"
alias gdc="git diff --cached"
alias gl="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d %C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all"
# Scripts
alias mc="$HOME/.scripts/mediacontrol.sh"
alias nw="$HOME/.scripts/network.sh"
alias vp="$HOME/.scripts/vimplugin.sh"
# Laptop
alias offtouchpad='sudo rmmod i2c_hid'
alias ontouchpad="sudo modprobe i2c_hid && $HOME/.scripts/touchscreen.sh 0"
alias nw="$HOME/.scripts/network.sh"
# Scripts
alias vimplugin="$HOME/.scripts/vimplugin.sh"
# Other
alias mysql-workbench="GDK_SCALE=1 GDK_DPI_SCALE=1 mysql-workbench 1>/dev/null 2>&1 &; disown"