From aa71dc576a00e7d36774f851c7396f437e27f115 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Fri, 9 Aug 2024 22:28:04 +0200 Subject: [PATCH] flutter path, fix screenshots --- .config/fish/conf.d/tty.fish | 14 ++++++++++++++ .config/fish/config.fish | 2 +- .config/sway/keys.swayconf | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .config/fish/conf.d/tty.fish diff --git a/.config/fish/conf.d/tty.fish b/.config/fish/conf.d/tty.fish new file mode 100644 index 0000000..d35c34d --- /dev/null +++ b/.config/fish/conf.d/tty.fish @@ -0,0 +1,14 @@ +if test (tty) = "/dev/tty1" + set -x XDG_SESSION_TYPE wayland + set -x XDG_SESSION_DESKTOP sway + set -x XDG_CURRENT_DESKTOP sway + + set -x VK_DRIVER_FILES /usr/share/vulkan/icd.d/radeon_icd.x86_64.json + + # Wayland stuff + set -x QT_QPA_PLATFORM wayland + set -x SDL_VIDEODRIVER wayland + set -x _JAVA_AWT_WM_NONREPARENTING 1 + + exec dbus-launch sway --unsupported-gpu $argv +end diff --git a/.config/fish/config.fish b/.config/fish/config.fish index f8361f8..e49f206 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -5,4 +5,4 @@ alias cat="bat" alias s="kitten ssh" -fish_add_path -g ~/.bun/bin ~/.local/bin ~/go/bin ~/.wakatime ~/.rbenv/shims ~/.moon/bin ~/.cargo/bin +fish_add_path -g ~/.bun/bin ~/.local/bin ~/go/bin ~/.wakatime ~/.rbenv/shims ~/.moon/bin ~/.cargo/bin ~/.fvm_flutter/bin diff --git a/.config/sway/keys.swayconf b/.config/sway/keys.swayconf index f58e057..9267f1c 100644 --- a/.config/sway/keys.swayconf +++ b/.config/sway/keys.swayconf @@ -22,7 +22,7 @@ bindsym XF86MonBrightnessUp exec xbacklight -inc 10 bindsym XF86MonBrightnessDown exec xbacklight -dec 10 # capture screen -bindsym Mod4+Shift+s exec grim -g "$(slurp)" '/tmp/$(date +%F_%T)_${WIDTH}x${HEIGHT}.png' && wl-copy < '/tmp/$(date +%F_%T)_${WIDTH}x${HEIGHT}.png' +bindsym Mod4+Shift+s exec sh -c 'filename="/tmp/$(date +%F_%T).png"; grim -g "$(slurp)" "$filename" && wl-copy < "$filename"' # kill, reload bindsym {