diff options
author | Karel Kočí <cynerd@email.cz> | 2017-03-21 22:35:58 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-03-21 22:35:58 +0100 |
commit | 64dc44f819119d31485d776e9c371f1ed12d07f6 (patch) | |
tree | bbbfe2958a6d4547e74a9e66ef9bb8a48775716b | |
parent | ec71cdf84cf4c2d38f42fef698e84ae1f2803e71 (diff) | |
download | myconfigs-64dc44f819119d31485d776e9c371f1ed12d07f6.tar.gz myconfigs-64dc44f819119d31485d776e9c371f1ed12d07f6.tar.bz2 myconfigs-64dc44f819119d31485d776e9c371f1ed12d07f6.zip |
Fix ncmpcpp start by i3blocks and xrandr name
-rw-r--r-- | config/i3/config | 6 | ||||
-rwxr-xr-x | config/i3blocks/scripts/mpd | 2 | ||||
-rwxr-xr-x | local/bin/mxrandr | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/config/i3/config b/config/i3/config index cfd0ffe..7cd72c3 100644 --- a/config/i3/config +++ b/config/i3/config @@ -154,9 +154,9 @@ bindsym $mod+Shift+q mode "$mode_system" set $displays (d)efault, toggle: 1:eDP 2:HDMI 3:VGA mode "$displays" { bindsym d exec --no-startup-id mxrandr, mode "default" - bindsym 1 exec --no-startup-id mxrandr toggle eDP1, mode "default" - bindsym 2 exec --no-startup-id mxrandr toggle HDMI1, mode "default" - bindsym 3 exec --no-startup-id mxrandr toggle VGA1, mode "default" + bindsym 1 exec --no-startup-id mxrandr toggle eDP-1, mode "default" + bindsym 2 exec --no-startup-id mxrandr toggle HDMI-1, mode "default" + bindsym 3 exec --no-startup-id mxrandr toggle VGA-1, mode "default" # back to normal: Enter or Escape bindsym Return mode "default" diff --git a/config/i3blocks/scripts/mpd b/config/i3blocks/scripts/mpd index f8a6644..637623e 100755 --- a/config/i3blocks/scripts/mpd +++ b/config/i3blocks/scripts/mpd @@ -8,7 +8,7 @@ case "$BLOCK_BUTTON" in mpc stop >/dev/null ;; 3) - nohup urxvt -title "Music player daemon client" -e ncmpcpp & + nohup urxvt -title "Music player daemon client" -e ncmpcpp 2>&1 >/dev/null & ;; 4) mpc prev >/dev/null diff --git a/local/bin/mxrandr b/local/bin/mxrandr index 7c51128..81ae511 100755 --- a/local/bin/mxrandr +++ b/local/bin/mxrandr @@ -8,9 +8,9 @@ disconnectedOutputs=$(xrandr | grep -E " disconnected (primary )?[1-9]+" | awk ' cmd="xrandr " cmd_def=$cmd -INTERNAL=eDP1 -HDMI=HDMI1 -VGA=VGA1 +INTERNAL=eDP-1 +HDMI=HDMI-1 +VGA=VGA-1 for device in "$disconnectedOutputs"; do if [ -n "$defice" ]; then |