add settings for sway
This commit is contained in:
71
sway/config
71
sway/config
@@ -23,14 +23,15 @@ set $menu wofi --show drun
|
||||
### Output configuration
|
||||
#
|
||||
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
||||
#output * bg /data/sync/images/wallpapers/stonebeach.jpg fill
|
||||
output * bg /usr/share/wallpapers/openSUSEdefault/contents/images/default-dark.png fill
|
||||
|
||||
set $bg /data/sync/images/wallpapers/0002.png
|
||||
set $screenlock 'swaylock --config /etc/swaylock/openSUSEway.conf'
|
||||
set $images $(xdg-user-dir PICTURES)/$(date +'%s_grim.png')
|
||||
#
|
||||
|
||||
exec --no-startup-id swaybg -m fill -i $bg
|
||||
# Example configuration:
|
||||
#
|
||||
output HDMI-A-1 resolution 1920x1080@120hz position 1920,0
|
||||
#output HDMI-A-1 resolution 1920x1080@120hz position 1920,0
|
||||
#
|
||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
||||
|
||||
@@ -69,26 +70,31 @@ input "2:7:SynPS/2_Synaptics_TouchPad" {
|
||||
events disabled_on_external_mouse
|
||||
}
|
||||
|
||||
#exec --no-startup-id /usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh
|
||||
exec --no-startup-id kwalletd6
|
||||
exec --no-startup-id fcitx5
|
||||
exec --no-startup-id blueman-applet
|
||||
#exec --no-startup-id feh --bg-fill '/data/sync/images/wallpapers/stonebeach.jpg'
|
||||
#exec --no-startup-id blueman-applet
|
||||
exec --no-startup-id owncloud
|
||||
exec --no-startup-id waybar
|
||||
exec --no-startup-id nm-applet --indicator
|
||||
#exec --no-startup-id nohup gentoo-pipewire-launcher restart >/dev/null 2>&1 &
|
||||
exec --no-startup-id nohup gentoo-pipewire-launcher restart >/dev/null 2>&1 &
|
||||
exec --no-startup-id xset m 1/1 0
|
||||
exec --no-startup-id /usr/lib/pam_kwallet_init
|
||||
|
||||
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||
bindcode $mod+60 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
|
||||
bindcode $mod+59 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
|
||||
bindcode $mod+61 exec playerctl play-pause
|
||||
# Use pactl to adjust volume in PulseAudio.
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02+ --limit 1 && $refresh_i3status
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02- --limit 0 && $refresh_i3status
|
||||
bindsym XF86AudioMute exec --no-startup-id wpctl set-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||
bindsym XF86AudioMicMute exec --no-startup-id wpctl set-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||
bindsym $mod+slash exec --no-startup-id wpctl set-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||
bindsym $mod+period exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02+ --limit 1 && $refresh_i3status
|
||||
bindsym $mod+comma exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 0.02- --limit 0 && $refresh_i3status
|
||||
|
||||
bindsym $mod+Shift+comma exec playerctl previous
|
||||
bindsym $mod+Shift+period exec playerctl next
|
||||
|
||||
# Brightness key bindings
|
||||
bindsym XF86MonBrightnessUp exec brightnessctl set +5%
|
||||
bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
|
||||
|
||||
# Media player key bindings (need media-sound/playerctl for playerctl.)
|
||||
bindsym XF86AudioPlay exec playerctl play
|
||||
@@ -96,9 +102,12 @@ bindsym XF86AudioPause exec playerctl pause
|
||||
bindsym XF86AudioNext exec playerctl next
|
||||
bindsym XF86AudioPrev exec playerctl previous
|
||||
|
||||
# Brightness key bindings
|
||||
bindsym XF86MonBrightnessUp exec brightnessctl set +5%
|
||||
bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
|
||||
bindsym $mod+Shift+comma exec playerctl previous
|
||||
bindsym $mod+Shift+period exec playerctl next
|
||||
bindsym $mod+Shift+slash exec playerctl play-pause
|
||||
|
||||
bindsym Print exec grim -g "$(slurp)" - | wl-copy
|
||||
bindsym $mod+Print exec grim -o $images
|
||||
### Key bindings
|
||||
#
|
||||
# Basics:
|
||||
@@ -126,7 +135,7 @@ bindsym $mod+Shift+c reload
|
||||
# Exit sway (logs you out of your Wayland session)
|
||||
#bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
|
||||
bindsym $mod+Shift+p exec systemctl poweroff
|
||||
bindsym $mod+Shift+e exec swaymsg exit
|
||||
bindsym $mod+Shift+l exec swaymsg exit
|
||||
#
|
||||
# Moving around:
|
||||
#
|
||||
@@ -137,10 +146,10 @@ bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
|
||||
# move focused window
|
||||
bindsym $mod+Shift+j move left
|
||||
bindsym $mod+Shift+k move down
|
||||
bindsym $mod+Shift+l move up
|
||||
bindsym $mod+Shift+semicolon move right
|
||||
#bindsym $mod+Shift+j move left
|
||||
#bindsym $mod+Shift+k move down
|
||||
#bindsym $mod+Shift+l move up
|
||||
#bindsym $mod+Shift+semicolon move right
|
||||
|
||||
# alternatively, you can use the cursor keys:
|
||||
bindsym $mod+Shift+Left move left
|
||||
@@ -188,10 +197,10 @@ bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
|
||||
# Make the current focus fullscreen
|
||||
bindsym $mod+f fullscreen
|
||||
bindsym $mod+Shift+space fullscreen
|
||||
|
||||
# Toggle the current focus between tiling and floating mode
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
bindsym $mod+f floating toggle
|
||||
|
||||
# Swap focus between the tiling area and the floating area
|
||||
bindsym $mod+space focus mode_toggle
|
||||
@@ -249,8 +258,14 @@ bar {
|
||||
for_window [class="^.*"] border pixel 1
|
||||
|
||||
#floating
|
||||
for_window [class="Signal"] floating enable
|
||||
for_window [class="Gajim"] floating enable
|
||||
for_window [app_id="signal"] floating enable
|
||||
for_window [app_id="fluffychat"] floating enable
|
||||
for_window [app_id="im.dino.Dino"] floating enable
|
||||
for_window [app_id="desktopclient.owncloud.com.owncloud"] floating enable
|
||||
for_window [app_id="firefox-bin"] move to workspace 1
|
||||
for_window [app_id="thunderbird"] move container to workspace 4
|
||||
for_window [app_id="thunar"] move container to workspace 3
|
||||
for_window [title="wtui"] floating enable
|
||||
include ~./config/sway/*
|
||||
|
||||
#include /etc/sway/config.d/*
|
||||
|
Reference in New Issue
Block a user