From 64dc44f819119d31485d776e9c371f1ed12d07f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 21 Mar 2017 22:35:58 +0100 Subject: Fix ncmpcpp start by i3blocks and xrandr name --- config/i3/config | 6 +++--- config/i3blocks/scripts/mpd | 2 +- 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 -- cgit v1.2.3