aboutsummaryrefslogtreecommitdiff
path: root/.config/sway
diff options
context:
space:
mode:
Diffstat (limited to '.config/sway')
-rw-r--r--.config/sway/config21
1 files changed, 14 insertions, 7 deletions
diff --git a/.config/sway/config b/.config/sway/config
index bf807cb..af9926b 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -1,8 +1,4 @@
# vi: ft=sh
-# Default config for sway
-#
-# Copy this to ~/.config/sway/config and edit it to your liking.
-#
# Read `man 5 sway` for a complete reference.
### Variables
@@ -65,8 +61,13 @@ set $term $(which foot || which alacritty)
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu wofi --show drun -Iai -w 3
-set $screenshot grim /dev/stdout | wl-copy
-set $toggle_layout input "2821:6228:Asus_Keyboard" xkb_switch_layout next
+#set $screenshot grim /dev/stdout | wl-copy
+set $screenshot slurp \
+ | grim -l 0 -g - /dev/stdout \
+ | wl-copy
+#set $screenshot flameshot gui
+
+set $toggle_layout input "type:keyboard" xkb_switch_layout next
set $lock swaylock
set $toggle_bar killall -SIGUSR1 waybar
@@ -91,7 +92,7 @@ exec swayidle -w \
before-sleep 'swaylock -f -c 000000'
### Input configuration
-input "2821:6228:Asus_Keyboard" xkb_layout us,no
+input "2821:6228:Asus_Keyboard" xkb_layout us,no,ro
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
@@ -288,6 +289,8 @@ exec dunst
exec nm-applet --indicator
exec blueman-applet
exec thunar --daemon
+#exec pipewire
+#exec pipewire-pulse
exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
@@ -295,6 +298,10 @@ exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
+#exec pactl load-module module-null-sink media.class=Audio/Sink sink_name=my-sink channel_map=surround-51
+#exec pactl load-module module-null-sink media.class=Audio/Source/Virtual sink_name="my-source" channel_map=front-left,front-right
+#exec pactl load-module module-null-sink media.class=Audio/Duplex sink_name="Main thing" audio.position=FL,FR,RL,RR
+
exec export SDL_VIDEODRIVER=wayland
exec export _JAVA_AWT_WM_NONREPARENTING=1
exec export QT_QPA_PLATFORM=wayland