From 5eb78c5fc8ee50707f3c18ab60b57fd89f1d489e Mon Sep 17 00:00:00 2001 From: spv Date: Thu, 2 Oct 2025 18:47:49 -0400 Subject: mein klein dockd --- src/sh/undocked/_undocked_polybar.sh | 3 +++ src/sh/undocked/undocked_00layout.sh | 2 ++ src/sh/undocked/undocked_10feh.sh | 3 +++ src/sh/undocked/undocked_20polybar.sh | 6 ++++++ 4 files changed, 14 insertions(+) create mode 100755 src/sh/undocked/_undocked_polybar.sh create mode 100755 src/sh/undocked/undocked_00layout.sh create mode 100755 src/sh/undocked/undocked_10feh.sh create mode 100755 src/sh/undocked/undocked_20polybar.sh (limited to 'src/sh/undocked') diff --git a/src/sh/undocked/_undocked_polybar.sh b/src/sh/undocked/_undocked_polybar.sh new file mode 100755 index 0000000..639fd70 --- /dev/null +++ b/src/sh/undocked/_undocked_polybar.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env zsh + +polybar bar diff --git a/src/sh/undocked/undocked_00layout.sh b/src/sh/undocked/undocked_00layout.sh new file mode 100755 index 0000000..fdc7b0b --- /dev/null +++ b/src/sh/undocked/undocked_00layout.sh @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output VGA-1 --off --output DP-1 --off --output HDMI-1 --off --output DP-2 --off --output HDMI-2 --off --output DP-2-1 --off --output DP-2-2 --off --output DP-2-3 --off diff --git a/src/sh/undocked/undocked_10feh.sh b/src/sh/undocked/undocked_10feh.sh new file mode 100755 index 0000000..2f13c02 --- /dev/null +++ b/src/sh/undocked/undocked_10feh.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env zsh + +feh --bg-scale ~/.local/share/backgrounds/bg.png diff --git a/src/sh/undocked/undocked_20polybar.sh b/src/sh/undocked/undocked_20polybar.sh new file mode 100755 index 0000000..aeaced5 --- /dev/null +++ b/src/sh/undocked/undocked_20polybar.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env zsh + +SCRIPT_DIR=$(dirname $(realpath $0)) + +pkill -9 polybar +i3-msg exec $SCRIPT_DIR/_undocked_polybar.sh # _ prevents from running in loop -- cgit v1.2.3