Some wayland-related changes

This commit is contained in:
Nise Void 2023-12-07 10:26:44 +01:00
parent b3e83db50b
commit 06cbd8fba9
3 changed files with 9 additions and 2 deletions

2
kshrc
View File

@ -8,7 +8,9 @@ alias gca='git commit --amend --no-edit'
alias gpf='git push --force-with-lease' alias gpf='git push --force-with-lease'
alias gs='git show' alias gs='git show'
alias gd='git diff' alias gd='git diff'
alias gds='gd --staged'
alias gl='git log --pretty=format:"%C(auto)%h %>|(23)%C(blue)%ad%C(auto) %s" --date=relative' alias gl='git log --pretty=format:"%C(auto)%h %>|(23)%C(blue)%ad%C(auto) %s" --date=relative'
alias sway='dbus-launch --exit-with-session sway'
if [ -e "$HOME/.kshrc_private" ]; then if [ -e "$HOME/.kshrc_private" ]; then
. "$HOME/.kshrc_private" . "$HOME/.kshrc_private"

View File

@ -2,9 +2,11 @@ export PATH="$HOME/.LinuxConfig/bin:${PATH}:$HOME/go/bin"
export EDITOR=/usr/bin/nvim export EDITOR=/usr/bin/nvim
export PAGER=/bin/less export PAGER=/bin/less
export SDL_VIDEODRIVER=wayland export SDL_VIDEODRIVER=wayland
export QT_QPA_PLATFORM=wayland-egl export QT_QPA_PLATFORM=wayland
export ELM_DISPLAY=wl export ELM_DISPLAY=wl
export WLR_RENDERER=vulkan export WLR_RENDERER=vulkan
export MOZ_ENABLE_WAYLAND=1
export XDG_CURRENT_DESKTOP=sway
# SSH agent # SSH agent
if [ ! -S ~/.ssh/ssh_auth_sock ]; then if [ ! -S ~/.ssh/ssh_auth_sock ]; then

5
sway
View File

@ -1,5 +1,8 @@
default_border pixel 1 default_border pixel 1
### Hacks
for_window [title="Bevy.App"] floating enable
### Variables ### Variables
# Logo key. Use Mod1 for Alt. # Logo key. Use Mod1 for Alt.
@ -46,7 +49,7 @@ bindsym $mod+space exec $menu
bindsym $mod+grave exec $term -e song bindsym $mod+grave exec $term -e song
bindsym Print exec grim -g "$(slurp)" -t png - | wl-copy -n -t image/png bindsym Print exec grim -g "$(slurp)" -t png - | wl-copy -n -t image/png
bindsym $mod+b exec MOZ_ENABLE_WAYLAND=1 firefox bindsym $mod+b exec firefox
bindsym $mod+Shift+b exec chromium --incognito --ozone-platform=wayland bindsym $mod+Shift+b exec chromium --incognito --ozone-platform=wayland
# Change focus # Change focus