added extra configurations

This commit is contained in:
davidovski 2021-12-05 13:44:24 +00:00
parent d2d7738d65
commit bcdb3419af
13 changed files with 30 additions and 12 deletions

3
scripts/fzf_menu.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
file=$(fzf $@)
xdg-open $file &

View file

@ -1,3 +1,4 @@
#!/bin/sh
[ ! -s ~/.config/mpd/pid ] && mpd .config/mpd/mpd.conf
[ -s ~/.config/mpd/pid ] && mpdscribble --conf .config/mpdscribble/mpdscribble.conf
[ -s ~/.config/mpd/pid ] && mpd-rpc --no-idle --fork

View file

@ -9,9 +9,10 @@ tablet_ratio = (lambda s: float(s[0]) / float(s[1]))(sys.argv[4].split(":")) if
#Layout of screens: (x, y, w, h)
screens = [
(0,0, 1080, 1920),
(1080, 0, 2560, 1440),
(3640, 208, 1280, 1024),
(3840, 0, 1080, 1920),
(1280, 0, 2560, 1440),
(4920, 0, 1080, 1920),
(0, 0, 1280, 1024),
]
#TODO find this with xrandr
@ -24,7 +25,7 @@ offsety = target[1]
#Size of the full screen areas
sh = 1920
sw = 1280 + 2560 + 1080
sw = 1280 + 2560 + 1080 + 1080
#TODO calculate using list of screens
#Aspect ratio of the tablet, to avoid weird scaling problems