|
||
---|---|---|
scripts | ||
themes | ||
config.ron | ||
LICENSE | ||
readme.md | ||
up |
Table of Contents
LeftWM Configuration
LeftWM: https://github.com/leftwm/leftwm
This configuration uses leftwm 0.5.3
.
Requirements
GitHub
gh auth refresh -h github.com -s notifications
Hotkeys
Launchers
mod+shift+enter
: open alacrittymod+p
: rofi runmod+space
: rofi drunmod+shift+p
: power menumod+/
: tag selectormod+shift+l
: layout selector
Layouts
mod+[
: decrease main widthmod+]
: increase main widthmod+ctrl+j
: next layout (cycle)mod+ctrl+k
: previous layout (cycle)
Windows
mod+j
: focus window down / nextmod+k
: focus window up / previousmod+m
: focus main windowmod+enter
: move window to topmod+shift+j
: move window downmod+shift+k
: move window upmod+f
: toggle full screen modemod+shift+f
: toggle floating modemod+shift+t
: toggle sticky mode
mod+shift+f
and mod+shift+t
together is the perfect way to watch something
in the background in the corner. It will be a floating window that follows you
across tags.
Tags
mod+NUM
: go to tagmod+shift+NUM
: move window to tagmod+w
: swap tags (between workspaces)mod+grave
: return to last tag
mod+ctrl+Left
: Previous tagmod+ctrl+Right
: Next tag
Workspaces
mod+l
: next workspacemod+h
: previous workspace
Scratch Pads
mod+s
: alacritty (mostly runningmprocs
withneomutt
,iamb
,spt
, etc.)
Mouse Actions
Mouse key is mod
.
mod+LMB
: move window (activated floating mode)mod+RMB
: resize window (activated floating mode)
Screenshot
Clipboard:
mod+Print
: selection to clipboardshift+Print
: window to clipboardctrl+shift+Print
: delayed selection to clipboard
File:
Save location: ${HOME}/Sync/Photos/Screenshot/oooomen
(defined in .efbin/screenshot
)
Print
: selection to filectrl+Print
: window to file
Screenshot script:
#!/usr/bin/env zsh
screenshotDir="${HOME}/Sync/Photos/Screenshot/oooomen"
case $1 in
selection-to-file)
maim -s -u "${screenshotDir}/$(date '+%Y-%m-%d_%I%M%S%P').png"
;;
window-to-file)
winid=$(~/.efbin/current-window-id)
maim -i "${winid}" -u "${screenshotDir}/asd-$(date '+%Y-%m-%d_%I%M%S%P').png"
;;
selection-to-clipboard)
maim -s -u | xclip -selection clipboard -t image/png -i
;;
window-to-clipboard)
winid=$(~/.efbin/current-window-id)
maim -i "${winid}" -u | xclip -selection clipboard -t image/png -i
;;
delayed-selection-to-clipboard)
maim -d 5 -s -u \
| xclip -selection clipboard -t image/png -i \
&& notify-send 'Screenshot is on clipboard'
;;
*)
list=$(cat $0 | grep '^ [a-z\-]*)$' | sed -e 's/^ //' -e 's/)$//')
echo "$0 <${list//$'\n'/ | }>"
exit 1;
;;
esac
Others
mod+shift+r
: soft reload LeftWMmod+shift+q
: close windowmod+shift+x
: logout / kill session (in case rofi power menu does not show up)mod+ctrl+l
: lock screen
Special Configuration Options
Floating Alacritty
I use a special window to terminals in the middle of the screen for example open
pacman
updates.
The wrapper script:
#!/usr/bin/env bash
args=(
--class="FloatingAlacritty"
--option="window.dimensions.lines=38"
--option="window.dimensions.columns=160"
)
for opt in "$@"; do
case $opt in
--hold)
args+=(--hold)
shift
;;
esac
done
hlcolor=$(tput setaf 5)
reset=$(tput sgr0)
alacritty \
${args[*]} \
--command $SHELL -c \
"$*; echo -e '\n${hlcolor} -- Done --${reset}'"
Example:
$HOME/.efbin/open-floating-terminal --hold sudo pacman -Syu
Extra resources / credits
pink-sky.png
The Pink Sky background (used in rofi menus):
- https://star-plasma.tumblr.com/post/156710941092/cherry-blossom-sky-20-mins
- https://www.instagram.com/p/BVpWWa4j6wv/
trans-background-by-efertone.png
This image is free to use, share, or do whatever you want, I made it with Krita.
If you want I have the .kri
file somewhere.
Theme
This theme is based on
di-effe/catppuccin, but I change a lot
of things over time, that's why I changed the name. It has still similarities,
but as the project was not updated when LeftWM got new releases, I had to hack
it, and over time, well with all the changes to make it more comfortable, it's
not catppuccin
anymore.