Compare commits

...

4 Commits

Author SHA1 Message Date
John Mertz 5f6bcbe072 Don't use custom path to toolbox export 2023-10-05 18:40:05 +00:00
John Mertz fbf1e353fa I have a new yoga, need disambiguation
Also add an 'all' which supports eDP-1 and Both
2023-10-05 18:39:09 +00:00
John Mertz f0ea056531 Remove absolute path
Allows usage with distrobox-export path
2023-10-05 18:37:31 +00:00
John Mertz 285fde9b6c Allow usage in Distrobox 2023-10-05 18:36:53 +00:00
4 changed files with 46 additions and 14 deletions

View File

@ -1,8 +0,0 @@
#!/bin/sh
# distrobox_binary
# name: toolbox
if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then
/usr/bin/distrobox-enter -n toolbox -- /usr/bin/nvim "$@"
else
/usr/bin/nvim "$@"
fi

View File

@ -18,6 +18,8 @@ sudo apt update
if grep -Pq '^arm' <<< $(uname -m); then
sudo apt install -y wireguard wireguard-dkms wireguard-tools raspberrypi-kernel raspberrypi-kernel-headers resolvconf
elif [ -f "/run/.containerenv" ]; then
sudo apt install -y wireguard wireguard-tools resolvconf
else
sudo apt install -y wireguard wireguard-tools linux-headers-$(uname -r) resolvconf
fi

View File

@ -55,7 +55,8 @@ my $active_outputs = "$ENV{'HOME'}/.spool/active_outputs";
my %outputs = (
'DENON-AVAMP' => 'TV',
'Paperlike253' => 'eInk',
'0x4140' => 'yoga'
'0x4140' => 'x1',
'0x1305' => 'x13'
);
########################################################################
@ -67,7 +68,7 @@ my %outputs = (
# Third-level are the actual settings for that display
my %configs = (
'Both' => {
'yoga' => {
'x1' => {
'on' => 0
},
'eInk' => {
@ -94,8 +95,45 @@ my %configs = (
'bg' => "$ENV{HOME}/wallpapers/wallpaper.png"
},
},
'all' => {
'x13' => {
'on' => 1,
'width' => 2560,
'height' => 1440,
'x' => 3680,
'y' => 0,
'rotate' => 0,
'scale' => 1.5,
'waybar' => 'bottom',
'fallback' => '#010101',
'bg' => "$ENV{HOME}/wallpapers/wallpaper.png"
},
'eInk' => {
'on' => 1,
'width' => 3200,
'height' => 1800,
'x' => 2880,
'y' => 0,
'rotate' => 90,
'scale' => 2,
'waybar' => 'top',
'fallback' => '#010101',
},
'TV' => {
'on' => 1,
'width' => 3840,
'height' => 2160,
'x' => 0,
'y' => 0,
'rotate' => 0,
'scale' => 1.33333,
'waybar' => 'top',
'fallback' => '#010101',
'bg' => "$ENV{HOME}/wallpapers/wallpaper.png"
},
},
'detached' => {
'yoga' => {
'x1' => {
'on' => 1,
'width' => 2560,
'height' => 1440,
@ -115,7 +153,7 @@ my %configs = (
}
},
'eInk' => {
'yoga' => {
'x1' => {
'on' => 0
},
'eInk' => {
@ -135,7 +173,7 @@ my %configs = (
},
},
'TV' => {
'yoga' => {
'x1' => {
'on' => 0
},
'TV' => {

View File

@ -1,4 +1,4 @@
#!/bin/bash
HEIGHT=$(swaymsg -t get_outputs | tr '\n' ' ' | sed -e 's/ */ /g' | sed -e 's/\(.*"focused": [a-z]*\),/\1\n/' | less | grep '"focused": true' | sed -e 's/.*"rect": {[^}]*"height": \([0-9]*\).*/\1/')
/usr/bin/tofi-drun --prompt-text "$ " --height $HEIGHT --config ${HOME}/.dotfiles/tofi/sidebar.toml
tofi-drun --prompt-text "$ " --height $HEIGHT --config ${HOME}/.dotfiles/tofi/sidebar.toml