flutter path, fix screenshots

This commit is contained in:
Jozef Steinhübl 2024-08-09 22:28:04 +02:00
parent 7e92fdb4cb
commit aa71dc576a
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F
3 changed files with 16 additions and 2 deletions

View file

@ -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

View file

@ -5,4 +5,4 @@ alias cat="bat"
alias s="kitten ssh" 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

View file

@ -22,7 +22,7 @@ bindsym XF86MonBrightnessUp exec xbacklight -inc 10
bindsym XF86MonBrightnessDown exec xbacklight -dec 10 bindsym XF86MonBrightnessDown exec xbacklight -dec 10
# capture screen # 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 # kill, reload
bindsym { bindsym {