migrate to kanshi
This commit is contained in:
parent
d734944be7
commit
ffc4b57d13
@ -12,7 +12,7 @@ ssh:
|
|||||||
git:.config/git .local/bin/ga
|
git:.config/git .local/bin/ga
|
||||||
ranger:.config/ranger
|
ranger:.config/ranger
|
||||||
gpg:
|
gpg:
|
||||||
sway:.config/sway .config/i3blocks .config/mako .config/mimeapps.list .config/rofi .local/bin/screenshot .config/swaylock .Xresources .local/bin/slm .local/bin/slm_rofi .local/bin/firefox_media %copypasta %pomodoro
|
sway:.config/sway .config/i3blocks .config/mako .config/mimeapps.list .config/rofi .local/bin/screenshot .config/swaylock .Xresources .config/kanshi .local/bin/firefox_media %copypasta %pomodoro
|
||||||
pomodoro:
|
pomodoro:
|
||||||
bat:.config/bat
|
bat:.config/bat
|
||||||
font:
|
font:
|
||||||
|
|||||||
13
home/user/.config/kanshi/config
Normal file
13
home/user/.config/kanshi/config
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
profile home_one {
|
||||||
|
output DP-1 mode 1920x1080 position 0,0
|
||||||
|
}
|
||||||
|
|
||||||
|
profile home {
|
||||||
|
output DP-1 mode 1920x1080 position 0,0
|
||||||
|
output HDMI-A-1 mode 1920x1080 position 450,-1080
|
||||||
|
}
|
||||||
|
|
||||||
|
profile office {
|
||||||
|
output DVI-I-1 mode 1920x1080 position 0,0
|
||||||
|
output VGA-1 mode 1920x1080 position 0,1080
|
||||||
|
}
|
||||||
@ -7,8 +7,7 @@ exec swayidle -w \
|
|||||||
resume 'swaymsg "output * power on"' \
|
resume 'swaymsg "output * power on"' \
|
||||||
before-sleep 'swaylock -f'
|
before-sleep 'swaylock -f'
|
||||||
|
|
||||||
# Screen layout
|
exec kanshi
|
||||||
exec_always ~/.screenlayout/default
|
|
||||||
|
|
||||||
output * bg "$(find ~/.wallpaper -type f | shuf -n 1)" fill
|
output * bg "$(find ~/.wallpaper -type f | shuf -n 1)" fill
|
||||||
|
|
||||||
|
|||||||
@ -1,35 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
|
|
||||||
set -eu
|
|
||||||
|
|
||||||
readonly LAYOUTS_DIR="${HOME}/.screenlayout"
|
|
||||||
|
|
||||||
|
|
||||||
if [ ! -d "${LAYOUTS_DIR}" ]; then
|
|
||||||
mkdir "${LAYOUTS_DIR}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
cmd_list() {
|
|
||||||
find "${LAYOUTS_DIR}" -type f,l -exec basename {} \;
|
|
||||||
}
|
|
||||||
|
|
||||||
cmd_load() {
|
|
||||||
if [ -z "${1:-}" ]; then
|
|
||||||
"${LAYOUTS_DIR}/default"
|
|
||||||
else
|
|
||||||
"${LAYOUTS_DIR}/${1}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
cmd_help () {
|
|
||||||
echo "slm (ls|load)" >&2
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
case "${1}" in
|
|
||||||
ls) shift; cmd_list "$@" ;;
|
|
||||||
load) shift; cmd_load "$@" ;;
|
|
||||||
*) shift; cmd_help "$@" ;;
|
|
||||||
esac
|
|
||||||
exit 0
|
|
||||||
@ -1,4 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
choosed_screen_layout="$(slm ls | rofi -dmenu -m -1 -i -p "Select screen layout")"
|
|
||||||
slm load "${choosed_screen_layout}"
|
|
||||||
Loading…
x
Reference in New Issue
Block a user