dotfiles

Luke's GNU/Linux dotfiles for i3, vim, ranger, bash, mpd, etc.
git clone git@git.lukesmith.xyz:dotfiles
Log | Files | Refs | README | LICENSE

commit e75e7b680f8f5cce5a89dadc4c5514a8eee74811
parent fdc161b3fffda21a3bbe04963d4490bb13a805fd
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Mon,  9 Apr 2018 12:32:32 -0700

displayselect improved, dmenu dox added

Diffstat:
M.config/i3/i3_guide.rmd | 7++-----
M.scripts/displayselect | 6+++---
2 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/.config/i3/i3_guide.rmd b/.config/i3/i3_guide.rmd @@ -133,12 +133,9 @@ I use scrot and ffmpeg to make different recordings of the desktop and audio. Al + Print Screen -- Take a scrot screenshot + Shift+Print Screen -- Take a scrot screenshot of only selected window -+ Mod+Insert -- Begin screencast -+ Mod+ScrollLock -- Begin audio recording -+ Mod+Pause -- Begin screen recording without audio -+ Mod+Print Screen -- Turn on and off screenkey (if installed) for visual typing display ++ Mod+Print Screen -- Opens dmenu menu to select kind of audio/video recording ++ Mod+ScrollLock -- Turn on and off screenkey (if installed) for visual typing display + Mod+Delete -- kills ffmpeg, thus ending recordings -+ ThinkVantage button (on Thinkpads) -- kills ffmpeg, thus ending recordings Each of the recording scripts are located in `~/.scripts`. You can check them out or modify them if needed. diff --git a/.scripts/displayselect b/.scripts/displayselect @@ -2,8 +2,7 @@ choices="laptop\nlaptopdual\nVGA\nHDMI\nManual selection" -chosen=$(echo -e "$choices" | dmenu -i -) +chosen=$(echo -e "$choices" | dmenu -i) case "$chosen" in laptopdual) xrandr --output LVDS-1 --auto --output VGA-1 --auto --right-of LVDS-1 ;; @@ -13,4 +12,5 @@ case "$chosen" in "Manual selection") arandr ;; esac -polybar_launch +# Relaunch polybar if there was a selection. +[ "$chosen" == "" ] || polybar_launch