dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit b53fdf4df2a71d7b9cd9daf9a9952e0fed2c5041
parent 1a253d32b2bc7902155e1889cc0c79a59bcc6721
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sun, 23 Dec 2018 17:57:16 +0100

Restart dunst after displayselect and scale to 1.0 with ThinkVantage button

Diffstat:
Mlinks/.config/i3/config | 2+-
Mlinks/bin/displayselect | 4+++-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/links/.config/i3/config b/links/.config/i3/config @@ -104,7 +104,7 @@ bindsym Control+Shift+s exec --no-startup-id mpc stop && pkill -RTMIN+14 i3block # configure displays bindsym $mod+Shift+a exec --no-startup-id ~/bin/displayselect -bindsym XF86Launch1 exec --no-startup-id xrandr --output LVDS1 --auto && ~/bin/wallpaper.sh +bindsym XF86Launch1 exec --no-startup-id xrandr --output LVDS1 --auto --scale 1.0x1.0 && ~/bin/wallpaper.sh # screen lock #bindsym $mod+z exec ~/bin/zzz diff --git a/links/bin/displayselect b/links/bin/displayselect @@ -42,7 +42,7 @@ twoscreen() { # If multi-monitor is selected and there are two screens. } morescreen() { # If multi-monitor is selected and there are more than two screens. - primary=$(echo "$screens" | dmenu -i -p "asdf") + primary=$(echo "$screens" | dmenu -i -p "Select primary display:") secondary=$(echo "$screens" | grep -v "$primary" | \ dmenu -i -p "Select secondary display:") direction=$(printf "left\\nright" | \ @@ -89,3 +89,5 @@ fi ~/bin/wallpaper.sh # Re-remap keys if keyboard added (for laptop bases) #remaps +# Restart dunst to ensure proper location on screen +pgrep -x dunst >/dev/null && killall dunst && setsid dunst &