mirror of
https://github.com/JorySeverijnse/dotfiles.git
synced 2026-01-29 12:28:36 +00:00
156 lines
5.6 KiB
Plaintext
156 lines
5.6 KiB
Plaintext
include /etc/sway/config.d/*
|
|
set $mod Mod4
|
|
|
|
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
|
|
exec hash dbus-update-activation-environment 2>/dev/null && \
|
|
exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
|
exec ffplay ~/.config/sway/win95.wav
|
|
exec swaybg -i "$(fd -e jpg -e png -e jpeg . /home/someone/.config/sway/pics/ | shuf -n 1)" -m fill
|
|
exec copyq
|
|
exec dunst
|
|
exec gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
|
|
for_window [tiling] border pixel 0
|
|
|
|
output DP-3 mode 1920x1080
|
|
#adaptive_sync
|
|
#on @165.003hz
|
|
# Font for window titles. Will also be used by the bar unless a different font
|
|
# is used in the bar {} block below.
|
|
font pango:JetBrainsMono NF 11
|
|
|
|
|
|
# Use pactl to adjust volume in PulseAudio.
|
|
bindsym --locked XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5%
|
|
bindsym --locked XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5%
|
|
bindsym --locked XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
|
|
bindsym --locked XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
|
bindsym --locked XF86AudioPlay exec playerctl play-pause
|
|
bindsym --locked XF86AudioNext exec playerctl next
|
|
bindsym --locked XF86AudioPrev exec playerctl previous
|
|
bindsym --locked XF86MonBrightnessUp exec --no-startup-id brightnessctl set +5
|
|
bindsym --locked XF86MonBrightnessDown exec --no-startup-id brightnessctl set 5-
|
|
floating_modifier $mod
|
|
|
|
set $screenshot grim -g "$(slurp)" - | swappy -f - -o "/home/someone/Pictures/screenshot_$(date +"%Y%m%d_%H%M%S").png"
|
|
set $win-vm virsh --connect qemu:///system start win10-2 && virt-manager --connect qemu:///system --show-domain-console win10-2
|
|
set $record wf-recorder -g "$(slurp)" -f "/home/someone/Videos/recording_$(date +"%Y%m%d_%H%M%S").mkv"
|
|
|
|
bindsym $mod+w exec $win-vm
|
|
bindsym Print exec $screenshot
|
|
bindsym $mod+r exec $record
|
|
bindsym $mod+Shift+r exec killall -s SIGINT wf-recorder
|
|
bindsym $mod+Return workspace number 2; exec alacritty
|
|
bindsym $mod+b workspace number 1; exec floorp
|
|
bindsym $mod+Space exec ~/.config/rofi/launchers/type-2/launcher.sh
|
|
bindsym $mod+q kill
|
|
bindsym $mod+v exec virt-manager
|
|
bindsym $mod+m exec sh -c "fd . /mnt/opslag/Album/Album -e flac -t f -0 | shuf -z | while IFS= read -r -d '' f; do ffplay -autoexit -- \"\$f\"; done &"
|
|
bindsym $mod+Shift+m exec pkill -f 'ffplay -autoexit'
|
|
bindsym ctrl+alt+p exec poe-auto-trigger
|
|
|
|
|
|
bindsym $mod+Left focus left
|
|
bindsym $mod+Down focus down
|
|
bindsym $mod+Up focus up
|
|
bindsym $mod+Right focus right
|
|
|
|
bindsym $mod+Shift+Left move left
|
|
bindsym $mod+Shift+Down move down
|
|
bindsym $mod+Shift+Up move up
|
|
bindsym $mod+Shift+Right move right
|
|
|
|
# enter fullscreen mode for the focused container
|
|
bindsym $mod+f fullscreen toggle
|
|
|
|
# change container layout (stacked, tabbed, toggle split)
|
|
#bindsym $mod+s layout stacking
|
|
bindsym $mod+s layout tabbed
|
|
bindsym $mod+d layout toggle split
|
|
|
|
# toggle tiling / floating
|
|
bindsym $mod+Shift+space floating toggle
|
|
|
|
set $ws1 1
|
|
set $ws2 2
|
|
set $ws3 3
|
|
set $ws4 4
|
|
set $ws5 5
|
|
set $ws6 6
|
|
set $ws7 7
|
|
set $ws8 8
|
|
set $ws9 9
|
|
set $ws10 10
|
|
|
|
# switch to workspace
|
|
bindsym $mod+1 workspace number $ws1
|
|
bindsym $mod+2 workspace number $ws2
|
|
bindsym $mod+3 workspace number $ws3
|
|
bindsym $mod+4 workspace number $ws4
|
|
bindsym $mod+5 workspace number $ws5
|
|
bindsym $mod+6 workspace number $ws6
|
|
bindsym $mod+7 workspace number $ws7
|
|
bindsym $mod+8 workspace number $ws8
|
|
bindsym $mod+9 workspace number $ws9
|
|
|
|
# move focused container to workspace
|
|
bindsym $mod+Shift+1 move container to workspace $ws1
|
|
bindsym $mod+Shift+2 move container to workspace $ws2
|
|
bindsym $mod+Shift+3 move container to workspace $ws3
|
|
bindsym $mod+Shift+4 move container to workspace $ws4
|
|
bindsym $mod+Shift+5 move container to workspace $ws5
|
|
bindsym $mod+Shift+6 move container to workspace $ws6
|
|
bindsym $mod+Shift+7 move container to workspace $ws7
|
|
bindsym $mod+Shift+8 move container to workspace $ws8
|
|
bindsym $mod+Shift+9 move container to workspace $ws9
|
|
|
|
#tell programs where to open
|
|
assign [class="floorp"] → $ws1
|
|
assign [class="ffplay"] → $ws3
|
|
assign [app_id="Alacritty"] → $ws2
|
|
|
|
for_window [class=Floating] floating enable, border normal
|
|
for_window [app_id=pavucontrol] floating enable, border normal
|
|
for_window [app_id=com.github.hluk.copyq] floating enable, border normal
|
|
for_window [title="Bitwig*"] floating enable
|
|
|
|
for_window [class="Conky"] floating enable
|
|
for_window [class="Conky"] sticky enable
|
|
|
|
gaps inner 5
|
|
gaps outer 5
|
|
|
|
# Only enable outer gaps when there is exactly one window or split container on the workspace.
|
|
smart_gaps on
|
|
|
|
# reload the configuration file
|
|
bindsym $mod+Shift+c reload
|
|
# lock screen
|
|
bindsym $mod+Shift+p exec ~/.config/rofi/powermenu/type-3/powermenu.sh
|
|
# resize window (you can also use the mouse for that)
|
|
#bindsym $mod+a mode "resize"
|
|
mode "resize" {
|
|
|
|
# same bindings, but for the arrow keys
|
|
bindsym Left resize shrink width 10 px or 10 ppt
|
|
bindsym Down resize grow height 10 px or 10 ppt
|
|
bindsym Up resize shrink height 10 px or 10 ppt
|
|
bindsym Right resize grow width 10 px or 10 ppt
|
|
|
|
# back to normal: Enter or Escape or $mod+r
|
|
bindsym Return mode "default"
|
|
bindsym Escape mode "default"
|
|
}
|
|
|
|
# class border backgr. text indicator child_border
|
|
client.focused #1a1a1a #1a1a1a #e6c07b #292d2e #242429
|
|
client.focused_inactive #1a1a1a #1a1a1a #888888 #292d2e #242429
|
|
client.unfocused #1a1a1a #1a1a1a #888888 #292d2e #242529
|
|
client.urgent #2f343a #e06c75 #282c34 #292d2e #242529
|
|
client.placeholder #1a1a1a #1a1a1a #888888 #292d2e #242529
|
|
|
|
client.background #1a1a1a
|
|
|
|
bar {
|
|
swaybar_command waybar
|
|
}
|