config/sway: misc changes

master
Taeyeon Mori 3 years ago
parent a599ed0745
commit ff027b8390
  1. 41
      config/sway/config
  2. 15
      config/sway/local@hikage
  3. 17
      config/sway/status.toml@hikage

@ -24,6 +24,12 @@ bindsym $mod+right focus right
bindsym --no-repeat $mod+space focus mode_toggle
# Swayr
bindsym Mod1+Tab exec swayr prev-window current-workspace
bindsym Mod1+Shift+Tab exec swayr next-window current-workspace
bindsym Mod4+Tab exec swayr prev-window-of-same-layout current-workspace
bindsym Mod4+Shift+Tab exec swayr next-window-of-same-layout current-workspace
# Layout
bindsym $mod+b splith
bindsym $mod+v splitv
@ -77,14 +83,14 @@ bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@
bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
bindsym --locked --no-repeat XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym --no-repeat XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
bindsym XF86MonBrightnessUp exec brightnessctl set 5%+
bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
bindsym --locked --no-repeat XF86AudioPlay exec playerctl play-pause
bindsym --locked XF86AudioNext exec playerctl next
bindsym --locked XF86AudioPrev exec playerctl previous
# Apps
bindsym --no-repeat Mod1+Space exec krunner
bindsym --no-repeat Mod1+Space exec qdbus org.kde.krunner /App display
# ===================== Input/Output =======================
@ -99,12 +105,10 @@ input type:touchpad {
middle_emulation enable
}
xwayland disable
# ===================== Status Bar =========================
bar 1 {
mode dock
font pango:Noto Sans Mono, Font Awesome 5 Free, Font Awesome 5 Brands 16
font pango:Noto Sans Mono, Font Awesome 6 Free, Font Awesome 5 Free, 16
status_command i3status-rs ~/.config/sway/status.toml
colors {
separator #666666
@ -113,19 +117,38 @@ bar 1 {
}
}
# ===================== Window Rules =======================
# Dialogs
for_window [app_id="org.kde.dolphin" title="(Extracting Files|File Already Exists|Moving|Compressing .* files) .*" tiling] floating enable
for_window [app_id="org.kde.ark" title="(Extracting .* files|File Already Exists|Loading archive) .*" tiling] floating enable
for_window [app_id="org.kde.*" title="Save file as..." tiling] floating enable
for_window [app_id="pcmanfm" title="Execute File" tiling] floating enable
for_window [app_id="org.keepassxc.KeePassXC" title="KeePassXC - Browser Access Request" tiling] floating enable
# KRunner and Klipper
for_window [app_id="org.kde.krunner"] floating enable
for_window [app_id="org.kde.klipper"] floating enable
# ====================== Autostart =========================
exec /usr/lib/geoclue-2.0/demos/agent
exec gammastep
exec fcitx5 -d
exec krunner -d --replace
exec klipper
exec /usr/lib/pam_kwallet_init
exec dunst
exec swayrd
bindsym --no-repeat $mod+k exec 'swaymsg "output * dpms on"'
bindsym --no-repeat $mod+Shift+k exec 'swaymsg "output * dpms off"'
bindsym --no-repeat $mod+l exec 'swaylock -i ~/.config/sway/wallpaper'
exec swayidle -w \
timeout 300 'swaylock' \
timeout 330 'swaymsg "output * dpms off"' \
timeout 600 'swaylock -f -i ~/.config/sway/wallpaper' \
timeout 150 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock'
before-sleep 'swaylock -f -i ~/.config/sway/wallpaper' \
after-resume 'swaymsg "output * dpms on"'
# ======================= Include ===========================

@ -1,3 +1,4 @@
# kak: filetype=i3
# Sway insists on following the config file symlink for relative paths in bg clause
# so have to give full path here.
output * bg ~/.config/sway/wallpaper fill
@ -5,7 +6,21 @@ output * bg ~/.config/sway/wallpaper fill
bar 1 {
output eDP-1
font pango:Noto Sans Mono, Font Awesome 5 Free, Font Awesome 5 Brands 12
# Breeze is broken as of 2022-01-18
icon_theme "Adwaita"
}
bindsym --no-repeat $mod+Shift+w exec ensure-lvup /opt/virt-session/viewer Windows
bindsym --no-repeat $mod+Shift+1 output eDP-1 mode 1920x1080
bindsym --no-repeat $mod+Shift+2 output eDP-1 mode --custom 1280x720
bindsym --no-repeat --inhibited $mod+Shift+z seat - shortcuts_inhibitor toggle
bindsym --no-repeat $mod+Shift+Return exec wezterm
for_window [app_id="virt-viewer"] inhibit_idle open
# Chromium < 98 broken with wlroots >= 0.15. This includes any Electron < 17 app
# and presumably NW.js as well.
xwayland enable

@ -4,6 +4,7 @@ icons = "awesome5"
[[block]]
block = "networkmanager"
on_click = "alacritty -e nmtui"
interface_name_exclude = ['br0', 'wg0', 'vnet*']
[[block]]
block = "memory"
@ -33,7 +34,7 @@ alert = 10.0
[[block]]
block = "time"
interval = 5
format = "%a %d/%m %R"
format = "%a %m/%d %R"
#[[block]]
#block = "hueshift"
@ -47,7 +48,21 @@ block = "backlight"
[[block]]
block = "battery"
device = "BAT0"
interval = 30
good = 70
info = 45
warning = 25
critical = 15
[[block]]
block = "battery"
device = "BAT1"
interval = 30
good = 70
info = 45
warning = 25
critical = 15
[[block]]
block = "notify"

Loading…
Cancel
Save