aboutsummaryrefslogtreecommitdiff
path: root/.config/sway
diff options
context:
space:
mode:
Diffstat (limited to '.config/sway')
-rw-r--r--.config/sway/config156
1 files changed, 156 insertions, 0 deletions
diff --git a/.config/sway/config b/.config/sway/config
new file mode 100644
index 0000000..5199cd2
--- /dev/null
+++ b/.config/sway/config
@@ -0,0 +1,156 @@
+# _______ _______ _______ ___ ___
+# | _ | Y | _ | Y |
+# | 1___|. | |. 1 | |
+# |____ |. / \ |. _ |\ 1 /
+# |: 1 |: |: | | |: |
+# |::.. . |::.|:. |::.|:. | |::.|
+# `------ `--- ---`--- ---` `---'
+######### ######### by: fivepixels
+
+# for screen-sharing
+exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
+
+# keybinds/vim everywhere
+set $mod Mod4
+set $alt Mod1
+set $left h
+set $down j
+set $up k
+set $right l
+set $screenshot grim -g "$(slurp -d)" - | wl-copy
+floating_modifier $mod normal
+
+
+# display config
+output * bg ~/wallpapers/colorado1.jpg fill
+output * mode 2560x1440@143.999Hz
+output * subpixel none
+output DP-1 pos 0 0
+output DP-1 scale 1.0
+output HDMI-A-1 pos 2560 0
+
+
+# autolock
+exec swayidle -w \
+ timeout 300 'swaylock -f -c 292929' \
+ timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
+ before-sleep 'swaylock -f -c 292929'
+
+# keyboard
+input type:keyboard {
+ xkb_layout us
+ xkb_numlock enable
+ repeat_delay 200
+ repeat_rate 50
+}
+
+# G303 config
+input "1133:49280:Logitech_Gaming_Mouse_G303" {
+ accel_profile flat
+ pointer_accel -0.84
+}
+
+# keyboard mapping
+bindsym XF86AudioPlay exec playerctl play-pause
+bindsym XF86AudioNext exec playerctl next
+bindsym XF86AudioPrev exec playerctl previous
+bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +1000
+bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -1000
+bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
+
+
+bindsym $mod+Return exec kitty
+bindsym $mod+d exec rofi -show drun -modi drun
+bindsym $mod+Shift+s exec $screenshot
+bindsym $mod+s exec $screenshot
+bindsym $mod+Shift+q kill
+bindsym $mod+Shift+x exec /usr/bin/lock
+bindsym $mod+Shift+c reload
+bindsym $mod+Shift+e exec swaymsg exit
+
+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
+
+bindsym $mod+1 workspace number 1
+bindsym $mod+2 workspace number 2
+bindsym $mod+3 workspace number 3
+bindsym $mod+4 workspace number 4
+bindsym $mod+5 workspace number 5
+bindsym $mod+6 workspace number 6
+bindsym $mod+7 workspace number 7
+bindsym $mod+8 workspace number 8
+bindsym $mod+9 workspace number 9
+bindsym $mod+0 workspace number 10
+bindsym $mod+Shift+1 move container to workspace number 1
+bindsym $mod+Shift+2 move container to workspace number 2
+bindsym $mod+Shift+3 move container to workspace number 3
+bindsym $mod+Shift+4 move container to workspace number 4
+bindsym $mod+Shift+5 move container to workspace number 5
+bindsym $mod+Shift+6 move container to workspace number 6
+bindsym $mod+Shift+7 move container to workspace number 7
+bindsym $mod+Shift+8 move container to workspace number 8
+bindsym $mod+Shift+9 move container to workspace number 9
+bindsym $mod+Shift+0 move container to workspace number 10
+
+bindsym $alt+Left exec ~/.config/scripts/change_workspace.sh prev
+bindsym $alt+Right exec ~/.config/scripts/change_workspace.sh next
+
+bindsym $mod+b splith
+bindsym $mod+v splitv
+bindsym $mod+f fullscreen
+bindsym $mod+Shift+space floating toggle
+bindsym $mod+space focus mode_toggle
+bindsym $mod+a focus parent
+bindsym $mod+Shift+f focus parent; fullscreen toggle
+bindsym $mod+Shift+minus move scratchpad
+bindsym $mod+minus scratchpad show
+bindsym $mod+control+$left move container to workspace next, workspace next
+bindsym $mod+control+$right move container to workspace prev, workspace next
+
+mode "resize" {
+ bindsym $left resize shrink width 10px
+ bindsym $down resize grow height 10px
+ bindsym $up resize shrink height 10px
+ bindsym $right resize grow width 10px
+
+ bindsym Return mode "default"
+ bindsym Escape mode "default"
+}
+
+bindsym $mod+r mode "resize"
+
+client.focused #c0c0c0 #c0c0c0 #c0c0c0 #c0c0c0 #c0c0c0
+client.focused_inactive #303030 #303030 #303030 #303030 #303030
+client.unfocused #303030 #303030 #303030 #303030 #303030
+
+# gaps outer 30
+# gaps inner 30
+default_border none
+default_floating_border none
+
+# start swaybar
+bar {
+ swaybar_command waybar
+}
+
+set $gnome-schema org.gnome.desktop.interface
+exec_always {
+# gsettings set $gnome-schema cursor-theme 'macOSBigSur'
+ /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
+ wlsunset -l 36.97079921573341 -L -93.7182216186478
+}
+
+# desktop notifications
+exec dunst
+
+
+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