summaryrefslogtreecommitdiff
path: root/dotfiles/system
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/system')
-rw-r--r--dotfiles/system/.config/sway/config70
1 files changed, 32 insertions, 38 deletions
diff --git a/dotfiles/system/.config/sway/config b/dotfiles/system/.config/sway/config
index 3ea3ef2..bb92798 100644
--- a/dotfiles/system/.config/sway/config
+++ b/dotfiles/system/.config/sway/config
@@ -5,22 +5,21 @@ input * xkb_rules evdev
### Variables
set $mod Mod4
-# Home row direction keys, like vim
+
+set $term foot
+set $menu fuzzel
+set $browser chrome
+set $altbrowser firefox
+
+# vim keybindings
set $left h
set $down j
set $up k
set $right l
-set $term foot # terminal
-set $menu fuzzel # application menu
-set $browser chrome # browser
-set $altbrowser firefox # another browser
-
-# use stacking layout by default
+# default layout (monocle)
workspace_layout stacking
-#gaps inner 5
-#gaps outer 5
focus_follows_mouse no
### Output configuration
@@ -29,8 +28,6 @@ output * bg /usr/local/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png
# scaling for framework laptop
output eDP-1 scale 1.8
-# You can get the names of your outputs by running: swaymsg -t get_outputs
-
### Idle configuration
#
# Example configuration:
@@ -45,18 +42,12 @@ output eDP-1 scale 1.8
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
-#
-# Example configuration:
-#
-# input "2:14:SynPS/2_Synaptics_TouchPad" {
-# dwt enabled
-# tap enabled
-# natural_scroll enabled
-# middle_emulation enabled
-# }
-#
-# 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.
+
+input type:touchpad {
+ dwt enabled
+ tap disabled
+ natural_scroll disabled
+}
### Key bindings
#
@@ -74,7 +65,7 @@ output eDP-1 scale 1.8
bindsym $mod+b exec calibre
# audio volume
- bindsym $mod+a exec $term mixertui
+ bindsym $mod+a exec foot mixertui
# Kill focused window
bindsym $mod+Shift+c kill
@@ -93,7 +84,8 @@ output eDP-1 scale 1.8
bindsym $mod+Shift+r reload
# Exit sway (logs you out of your Wayland session)
- bindsym $mod+Shift+q exec swaynag -t warning -m 'Exit?' -B 'Yes' 'swaymsg exit'
+ # bindsym $mod+Shift+q exec swaynag -t warning -m 'Exit?' -B 'Yes' 'swaymsg exit'
+ bindsym $mod+Shift+q exec sway exit
#
# Moving around:
#
@@ -156,8 +148,8 @@ output eDP-1 scale 1.8
# Switch the current container between different layout styles
bindsym $mod+Shift+m layout stacking # (monacle-view)
- bindsym $mod+Shift+t layout tabbed
- bindsym $mod+Shift+i layout toggle split
+ bindsym $mod+Shift+t layout toggle split
+ # bindsym $mod+Shift+i layout toggle split
# Make the current focus fullscreen
bindsym $mod+Shift+f fullscreen
@@ -206,6 +198,7 @@ mode "resize" {
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
+
#
# Utilities:
#
@@ -221,21 +214,22 @@ bindsym $mod+r mode "resize"
bindsym Print exec grim
#
-# Status Bar:
+# Waybar
#
-# Read `man 5 sway-bar` for more information about this section.
+
bar {
+ swaybar_command waybar
position top
+}
- # When the status_command prints a new line to stdout, swaybar updates.
- # The default just shows the current date and time.
- status_command while date +'%Y-%m-%d %X'; do sleep 1; done
+#
+# Window Title Bar
+#
- colors {
- statusline #ffffff
- background #323232
- inactive_workspace #32323200 #32323200 #5c5c5c
- }
-}
+ # don't display titlebar unless > 1 window in monocle mode
+ default_border none
+ hide_edge_borders --i3 smart
+ smart_borders smart
+ titlebar_border_thickness 0
include /usr/local/etc/sway/config.d/*