From 33d65cd5f358590e768f04b5ae821b3785727cf4 Mon Sep 17 00:00:00 2001 From: rafa_99 Date: Tue, 2 Nov 2021 22:36:27 +0000 Subject: Updated mpv to run with yt-dlp and added switchLayout script --- scripts/.local/bin/switchLayout | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/.local/bin/switchLayout (limited to 'scripts/.local/bin') diff --git a/scripts/.local/bin/switchLayout b/scripts/.local/bin/switchLayout new file mode 100755 index 0000000..b19706b --- /dev/null +++ b/scripts/.local/bin/switchLayout @@ -0,0 +1,11 @@ +#!/bin/sh + +CURRENTLAYOUT=$(setxkbmap -print | awk -F"+" '/xkb_symbols/ {print $2}') + +case "$CURRENTLAYOUT" in + pt) + setxkbmap us + ;; + us) + setxkbmap pt +esac -- cgit v1.2.3