summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2021-12-05 13:44:24 +0000
committerdavidovski <david@davidovski.xyz>2021-12-05 13:44:24 +0000
commitbcdb3419af4a28135e2e668cd61b49db72e95796 (patch)
tree618b5b94a282edce95f48782924fd61460c1ad09 /scripts
parentd2d7738d65dd7337d0b37801f26d832d46f4fe06 (diff)
added extra configurations
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/fzf_menu.sh3
-rwxr-xr-xscripts/start-mpd1
-rwxr-xr-xscripts/tablet9
3 files changed, 9 insertions, 4 deletions
diff --git a/scripts/fzf_menu.sh b/scripts/fzf_menu.sh
new file mode 100755
index 0000000..8f6238f
--- /dev/null
+++ b/scripts/fzf_menu.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+file=$(fzf $@)
+xdg-open $file &
diff --git a/scripts/start-mpd b/scripts/start-mpd
index 29e2791..aef21c2 100755
--- a/scripts/start-mpd
+++ b/scripts/start-mpd
@@ -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
diff --git a/scripts/tablet b/scripts/tablet
index 6702ace..3b49064 100755
--- a/scripts/tablet
+++ b/scripts/tablet
@@ -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