Compare commits
4 Commits
57ebe092ba
...
5f6bcbe072
Author | SHA1 | Date |
---|---|---|
John Mertz | 5f6bcbe072 | |
John Mertz | fbf1e353fa | |
John Mertz | f0ea056531 | |
John Mertz | 285fde9b6c |
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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' => {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue