migrate to kanshi

This commit is contained in:
thek4n 2026-04-28 19:42:59 +03:00
parent d734944be7
commit ffc4b57d13
5 changed files with 15 additions and 42 deletions

View File

@ -12,7 +12,7 @@ ssh:
git:.config/git .local/bin/ga
ranger:.config/ranger
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:
bat:.config/bat
font:

View 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
}

View File

@ -7,8 +7,7 @@ exec swayidle -w \
resume 'swaymsg "output * power on"' \
before-sleep 'swaylock -f'
# Screen layout
exec_always ~/.screenlayout/default
exec kanshi
output * bg "$(find ~/.wallpaper -type f | shuf -n 1)" fill

View File

@ -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

View File

@ -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}"