swayconfig: add autotiling,batsignal;fix polkit
and a couple more updates: * don't run wofi -f (fork?) because it's failing * fix exec/exec_always behaviour - order mattered * switch to lxpolkit because gnome the one just won't work * default border is now 1, looks ok * add flags to chromium keybind * run waybar the old way as the new one seems to be more expensive on the cpu
This commit is contained in:
parent
e4d4f426bc
commit
ca7c0d8368
@ -9,9 +9,10 @@ set
|
||||
$lock exec ~/utils/bin/swaylock-wrapper
|
||||
$lockt exec ~/utils/bin/sway-locker -t
|
||||
$term KITTY_ENABLE_WAYLAND=1 kitty # qterminal alacritty
|
||||
$menu wofi -f --show drun
|
||||
$menu wofi --show drun
|
||||
$numenu kitty --class 'launcher' bash -c 'compgen -c | sort -u | fzf | xargs -r swaymsg -t command exec'
|
||||
$nutermmenu kitty --class 'launcher' bash -c 'compgen -c | sort -u | fzf | xargs -r kitty'
|
||||
$dashpls nwggrid
|
||||
# $bg "~/Pictures/apod/2019-January-2-The-Orion-Nebula-in-Infrared-from-WISE.jpg fit #000000"
|
||||
# $bg "~/Pictures/apod/2020-April-29-The-Ion-Tail-of-New-Comet-SWAN.jpg fit #000000"
|
||||
$bg "~/Pictures/apod/2020-August-11-Churning-Clouds-on-Jupiter.jpg"
|
||||
@ -19,14 +20,12 @@ set
|
||||
$gtk_theme "Mint-Y-Dark-Blue"
|
||||
$icon_theme "Flat-Remix-Blue-Dark"
|
||||
$laptop_screen "eDP-1"
|
||||
$ext_screen "DP-3"
|
||||
# $pri DP-3
|
||||
# $sec eDP-1
|
||||
$ext_screen "DP-2"
|
||||
$pri $laptop_screen
|
||||
$sec $ext_screen
|
||||
}
|
||||
|
||||
default_border pixel 2
|
||||
default_border pixel 1
|
||||
default_floating_border normal
|
||||
hide_edge_borders smart
|
||||
# works also for non-floating windows
|
||||
@ -40,15 +39,6 @@ gaps inner 5
|
||||
|
||||
font pango:Cantarell 14px
|
||||
|
||||
exec --no-startup-id {
|
||||
nm-applet --indicator
|
||||
fusuma -d -c ~/.config/fusuma/config-wl.yml
|
||||
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
/usr/bin/gnome-keyring-daemon --replace --components=secrets,ssh,pkcs11
|
||||
dbus-update-activation-environment DISPLAY XAUTHORITY
|
||||
eval $(/usr/bin/gnome-keyring-daemon --start --components=secrets,ssh,pkcs11)
|
||||
mako
|
||||
}
|
||||
exec_always --no-startup-id
|
||||
{
|
||||
pkill swayidle
|
||||
@ -59,15 +49,37 @@ exec_always --no-startup-id
|
||||
gsettings set org.gnome.desktop.interface gtk-theme '$gtk_theme'
|
||||
gsettings set org.gnome.desktop.interface icon-theme '$icon_theme'
|
||||
~/utils/docker-tray/docker-tray
|
||||
# TODO add ~/.asdf/shims to PATH
|
||||
pkill fusuma; ~/.asdf/shims/fusuma -d -c ~/.config/fusuma/config-wl.yml
|
||||
pkill waybar; waybar
|
||||
# autotiling -w 6 7 8
|
||||
pkill autotiling; autotiling
|
||||
pkill batsignal; batsignal '-d -w 15 -c 9 -d 5'
|
||||
swayidle -w timeout 3600 "$lock" \
|
||||
timeout 3610 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' \
|
||||
before-sleep "$lockt"
|
||||
}
|
||||
|
||||
exec --no-startup-id {
|
||||
waybar
|
||||
nm-applet --indicator
|
||||
lxpolkit
|
||||
dbus-update-activation-environment DISPLAY XAUTHORITY
|
||||
eval $(/usr/bin/gnome-keyring-daemon --start --components=secrets\,ssh\,pkcs11)
|
||||
export SSH_AUTH_SOCK
|
||||
mako
|
||||
# TODO add ~/.asdf/shims to PATH
|
||||
~/.asdf/shims/fusuma -d -c ~/.config/fusuma/config-wl.yml
|
||||
autotiling
|
||||
batsignal '-d -w 15 -c 9 -d 5'
|
||||
}
|
||||
|
||||
bindsym ctrl+alt+l exec --no-startup-id $lock
|
||||
bindsym $mod+grave exec $lock
|
||||
output $laptop_screen pos 0 0 res 1920x1080
|
||||
output $ext_screen pos 1920 0 res 1920x1200
|
||||
# output $ext_screen toggle
|
||||
bindswitch --reload --locked lid:on exec --no-startup-id '$(swaymsg set $med $pri ; swaymsg set $pri $sec; swaymsg set $sec $med ; swaymsg output $laptop_screen disable)'
|
||||
bindswitch --reload --locked lid:off exec --no-startup-id '$(swaymsg set $med $sec ; swaymsg set $sec $pri ; swaymsg set $pri $med; swaymsg output $laptop_screen enable)'
|
||||
exec --no-startup-id swaymsg focus output $pri
|
||||
@ -102,10 +114,11 @@ bindsym
|
||||
$mod+ctrl+Shift+t exec qterminal
|
||||
$mod+Shift+q kill
|
||||
alt+F1 exec $menu
|
||||
alt+Shift+F1 exec $dashpls
|
||||
alt+F2 exec $numenu
|
||||
alt+Shift+F2 exec $nutermmenu
|
||||
$mod+ctrl+k exec QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_QPA_PLATFORMTHEME=wayland keepassxc
|
||||
$mod+ctrl+t exec telegram-desktop
|
||||
$mod+ctrl+t exec QT_QPA_PLATFORMTHEME=wayland telegram-desktop
|
||||
$mod+ctrl+v exec QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_QPA_PLATFORMTHEME=wayland VirtualBox
|
||||
$mod+shift+m exec swaymsg output $(swaymsg -p -t get_outputs | grep Output | head -n2 | tail -n1 | sed -e 's/Output //g' -e 's/ ''.*$//g') toggle
|
||||
}
|
||||
@ -192,7 +205,7 @@ bindsym
|
||||
$mod+Shift+w exec MOZ_USE_XINPUT2=1 MOZ_ENABLE_WAYLAND=1 ~/Downloads/firefox-dev/firefox --private-window
|
||||
$mod+Shift+g exec MOZ_USE_XINPUT2=1 MOZ_ENABLE_WAYLAND=1 firefox --private-window
|
||||
$mod+Shift+v exec ferdi
|
||||
$mod+Shift+a exec chromium-freeworld --incognito
|
||||
$mod+Shift+a exec chromium-freeworld --incognito --enable-features=UseOzonePlatform --ozone-platform=wayland
|
||||
--locked $mod+Escape exec systemctl suspend -i
|
||||
$mod+Shift+o exec kitty bash -c 'sudo cpupower frequency-set -g powersave;figlet powersave;sleep 2'
|
||||
$mod+Shift+p exec kitty bash -c 'sudo cpupower frequency-set -g performance;figlet performance;sleep 2'
|
||||
|
Loading…
Reference in New Issue
Block a user