From a3fd0ba7a7af3fa2cf95afe12fce7a37470f64d0 Mon Sep 17 00:00:00 2001 From: M1dgard Date: Sun, 19 Aug 2018 16:48:28 +0200 Subject: [PATCH] Fixes for launching terminal and misc --- compton.conf | 2 +- i3/config | 4 ++-- i3/terminal.sh | 2 +- polybar/config.ini | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/compton.conf b/compton.conf index cad2378..7401e33 100644 --- a/compton.conf +++ b/compton.conf @@ -125,7 +125,7 @@ alpha-step = 0.06; # Fix tabbed windows opacity-rule = [ #"95:class_g = 'xfce4-terminal' && !_NET_WM_STATE@:32a", - "82:class_g = 'Polybar'", + "80:class_g = 'Polybar'", "90:class_g = 'Dunst'", "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" ]; diff --git a/i3/config b/i3/config index 0cb51c1..6717d96 100644 --- a/i3/config +++ b/i3/config @@ -102,7 +102,7 @@ bindsym $mod+KP_Enter exec $term bindsym Ctrl+Mod4+t exec --no-startup-id "notify-send -a 'i3' -u normal 'You'\''re on i3, $usertitle.' 'Don'\''t try to Ctrl+Alt+T me. Use $mod+Enter like a real $usertype.'" bindsym Ctrl+Mod1+t exec --no-startup-id "notify-send -a 'i3' -u normal 'You'\''re on i3, $usertitle.' 'Don'\''t try to Ctrl+Alt+T me. Use $mod+Enter like a real $usertype.'" # start a terminal and execute the command `exec-with-shortcut` from your PATH in it -bindsym XF86Calculator exec "$termexec --zoom 3 -x bash -c 'exec-with-shortcut; zsh'" +bindsym XF86Calculator exec "$termexec -e bash -c 'exec-with-shortcut; zsh'" # start web browser set $browser TZ=UTC firefox @@ -126,7 +126,7 @@ set $openmode "open: [f]irefox, [e]mail, [i]rc, [I]DE, [m]pd client, [M]pd serve mode $openmode { bindsym f exec firefox, mode default bindsym e exec $mailclient, mode default - bindsym i exec quasselclient, mode default + bindsym i exec $termexec -e weechat, mode default bindsym shift+i exec idea.sh, mode default bindsym m exec mpdclient, mode default bindsym shift+m exec --no-startup-id mpd $HOME/.config/mpd/mpd.conf, mode default diff --git a/i3/terminal.sh b/i3/terminal.sh index 92d8dee..0747fb3 100755 --- a/i3/terminal.sh +++ b/i3/terminal.sh @@ -17,7 +17,7 @@ fi # Open terminal at specified path cmd=i3-sensible-terminal if [[ -n $path ]]; then - exec $cmd --default-working-directory="$path" "$@" + exec env -C "$path" $cmd "$@" else exec $cmd "$@" fi diff --git a/polybar/config.ini b/polybar/config.ini index 2dfab25..9e0c534 100644 --- a/polybar/config.ini +++ b/polybar/config.ini @@ -296,11 +296,11 @@ interval = 3 ; show a signal strength icon ; This overlays the actual signal strength icon over the dark "full signal" icon ;format-connected = %{T7}%{F#333}%{F}%{T-}%{O-18} -format-connected = %{A:i3-sensible-terminal -x nmtui-connect:}%{A3:i3-sensible-terminal -x nmtui:}%{T7}%{F#333}%{F}%{T-}%{O-18}%{A}%{A} +format-connected = %{A:i3-sensible-terminal -e nmtui-connect:}%{A3:i3-sensible-terminal -e nmtui:}%{T7}%{F#333}%{F}%{T-}%{O-18}%{A}%{A} format-connected-foreground = ${colors.foreground-alt} label-connected = %essid% -format-disconnected = %{A1:i3-sensible-terminal -x nmtui-connect:}%{A3:i3-sensible-terminal -x nmtui:}%{A}%{A} +format-disconnected = %{A1:i3-sensible-terminal -e nmtui-connect:}%{A3:i3-sensible-terminal -e nmtui:}%{A}%{A} label-disconnected =  label-disconnected-foreground = ${colors.foreground-alt}