diff --git a/.config/environment.d/10-sway.conf b/.config/environment.d/10-sway.conf new file mode 100644 index 0000000..94ff663 --- /dev/null +++ b/.config/environment.d/10-sway.conf @@ -0,0 +1,5 @@ +SDL_VIDEODRIVER=wayland +_JAVA_AWT_WM_NONREPARENTING=1 +QT_QPA_PLATFORM=wayland +XDG_CURRENT_DESKTOP=sway +XDG_SESSION_DESKTOP=sway diff --git a/.config/sway/config b/.config/sway/config index d1c2aca..9e3a4d7 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -15,7 +15,7 @@ bindsym $mod+Shift+q kill bindsym $mod+d exec $menu bindsym $mod+Shift+n exec swaync-client -t -sw #bindsym --release Print+Control exec --no-startup-id swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | slurp | grim -g - - | swappy -f - -bindsym Print exec grim -g "$(slurp)" - | wl-copy +bindsym Print exec flameshot gui bindsym $mod+v exec clipman pick --tool=CUSTOM --tool-args="fuzzel -d" bindsym $mod+l exec swaylock -ef bindsym $mod+Shift+r reload @@ -82,17 +82,14 @@ bindsym --locked $mod+Shift+Prior exec playerctl previous exec swaync exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec wl-paste -t text --watch clipman store --no-persist -exec systemctl --user set-environment XDG_CURRENT_DESKTOP=sway -exec systemctl --user import-environment DISPLAY SWAYSOCK WAYLAND_DISPLAY XDG_CURRENT_DESKTOP -exec hash dbus-update-activation-environment 2>/dev/null -exec dbus-update-activation-environment --systemd DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=sway WAYLAND_DISPLAY - exec_always nm-applet --indicator output HDMI-A-1 mode 1920x1080 pos 0 0 output DP-1 mode 1920x1080 pos 1920 0 -output * bg ~/.config/sway/bg.jpg fill +output * bg ~/.config/sway/bg.jpg fill + +for_window [app_id="flameshot"] border pixel 0, floating enable, fullscreen disable, move absolute position 0 0 bar { swaybar_command waybar diff --git a/.config/xdg-desktop-portal/sway-portals.conf b/.config/xdg-desktop-portal/sway-portals.conf new file mode 100644 index 0000000..75a76ac --- /dev/null +++ b/.config/xdg-desktop-portal/sway-portals.conf @@ -0,0 +1,6 @@ +[preferred] +# use xdg-desktop-portal-gtk for every portal interface +default=gtk +# except for the xdg-desktop-portal-wlr supplied interfaces +org.freedesktop.impl.portal.Screencast=wlr +org.freedesktop.impl.portal.Screenshot=wlr diff --git a/.zshrc b/.zshrc index 937aeed..9d43e74 100644 --- a/.zshrc +++ b/.zshrc @@ -99,3 +99,4 @@ source $ZSH/oh-my-zsh.sh # Example aliases alias neofetch="fastfetch" alias sudo="run0 --background=" +