tvl-depot/emacs/.emacs.d/wpc
William Carroll d81f31107d Support cycling through display configurations
Today when I opened my laptop, I wasn't sure if it was powered off or on because
the display was blank. Thankfully the volume was muted and the LED indicator was
on, which informed me that the laptop was powered on. This saved me from
unnecessarily rebooting.

What happened was that last night I was working from home and using my external
monitor. Usually I enable my external display and disable my laptop display. But
when I left for work this morning, I unplugged the HDMI cable from my laptop
without disabling the external display or enabling the laptop display.

I noticed a XF86 button on my laptop entitled XF86Display. I figured that this
could be a nice place to bind a key to toggle my laptop display on or off. At
the last minute, I had the idea to just cycle through all possible display
configurations that I use; there are only three anyways. When dealing with more
than two states, I realized I should use a cycle to model the configuration
states. Now I'm thinking that I should be using cycles to model toggles as well
- instead of just using a top-level variable that I `setq` over. I haven't
refactored existing toggles to be cycles, but I am excited about this new
keybinding.

This commit additionally:
- Moves keybindings out of display.el and into keybindings.el
- Conditionally sets KBDs if using work laptop
2020-02-11 13:56:10 +00:00
..
alist.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
bag.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
bills.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
bookmark.el Rename dotfiles -> briefcase 2020-01-31 15:27:48 +00:00
buffer.el Blacklist additional non-source-code modes 2020-02-02 18:31:33 +00:00
bytes.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
cache.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
chrome.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
clipboard.el Remove assertions that prelude/executable-exists? 2020-02-07 11:01:24 +00:00
colorscheme.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
constants.el Rename dotfiles -> briefcase 2020-01-31 15:27:48 +00:00
cycle.el Support cycle/{append,remove} 2020-02-10 10:06:33 +00:00
device.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
display.el Support cycling through display configurations 2020-02-11 13:56:10 +00:00
do.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
dotfiles.el Rename dotfiles -> briefcase 2020-01-31 15:27:48 +00:00
dotted.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
email.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
entr.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
enum.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
finance.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
fonts.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
fs.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
functions.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
graph.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
imdb.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
irc.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
iso.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
ivy-clipmenu.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
ivy-helpers.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
kaomoji.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
kbd.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
keybindings.el Support cycling through display configurations 2020-02-11 13:56:10 +00:00
keyboard.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
keymap.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
laptop-battery.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
list.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
list.nix Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
macros.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
math.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
maybe.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
me-seconds.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
monoid.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
number.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
org-helpers.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
playback.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
polymorphism.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
prelude.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
prelude.nix Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
pulse-audio.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
pushover.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
random.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
region.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
scheduler.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
scope.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
screen-brightness.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
scrot.el Remove assertions that prelude/executable-exists? 2020-02-07 11:01:24 +00:00
sequence.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
series.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
set.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
ssh.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
stack.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
string.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
string.nix Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
struct.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
symbol.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
terminator-themes.json Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
terminator.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
themes.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
timestring.el Support timestring.el 2020-02-02 18:31:32 +00:00
todo.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
tree.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
tuple.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
vector.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
vterm-mgt.el Support vterm-mgt.el 2020-02-10 10:06:40 +00:00
wallpaper.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
window-manager.el Disable ido-mode 2020-02-10 11:35:27 +00:00
window.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
wpc-clojure.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
wpc-company.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
wpc-dired.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
wpc-docker.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
wpc-elixir.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
wpc-flycheck.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
wpc-golang.el Remove assertions that prelude/executable-exists? 2020-02-07 11:01:24 +00:00
wpc-haskell.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
wpc-java.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
wpc-javascript.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
wpc-keybindings.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
wpc-lisp.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
wpc-misc.el Add KBDs to vterm 2020-02-02 18:31:39 +00:00
wpc-nix.el Support emacs fn for rebuilding wpcarros-emacs 2020-02-02 18:31:33 +00:00
wpc-ocaml.el Remove assertions that prelude/executable-exists? 2020-02-07 11:01:24 +00:00
wpc-org.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
wpc-package.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
wpc-prolog.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
wpc-python.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
wpc-reasonml.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
wpc-rust.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
wpc-shell.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
wpc-terminal.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
wpc-ui.el Support C-k for upward movement in ivy-switch-buffer-map 2020-02-10 11:36:09 +00:00
wpgtk.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
ynab.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00
zle.el Move move .emacs.d out of configs/shared 2020-01-30 16:00:29 +00:00