aboutsummaryrefslogtreecommitdiff
path: root/Common/sway
diff options
context:
space:
mode:
Diffstat (limited to 'Common/sway')
-rw-r--r--Common/sway/autostart33
-rw-r--r--Common/sway/config48
-rw-r--r--Common/sway/hid (renamed from Common/sway/touchpad)14
-rw-r--r--Common/sway/keyboard7
-rw-r--r--Common/sway/outputs0
-rw-r--r--Common/sway/pointer5
l---------Common/sway/sway1
-rw-r--r--Common/sway/variables6
-rw-r--r--Common/sway/workspaces0
9 files changed, 48 insertions, 66 deletions
diff --git a/Common/sway/autostart b/Common/sway/autostart
index 9adfafc..faece20 100644
--- a/Common/sway/autostart
+++ b/Common/sway/autostart
@@ -1,12 +1,23 @@
-#exec rm /tmp/nwg-shell-check-update.lock
-#exec wlsunset -l 59.9614 -L 10.925 -t 4500 -T 6500 -g 1.0
-#exec swaync -s /home/jakob/.config/swaync/preset-1.css
+# screen locking
+exec swayidle timeout 1200 physlock \
+ timeout 1800 'swaymsg "output * dpms off"' \
+ resume 'swaymsg "output * dpms on"'
+
+# notification centre
+exec swaync
+
+# system tray applets
+exec blueman-applet
+exec udiskie
exec nm-applet --indicator
-#exec_always nwg-autotiling
-#exec_always nwg-drawer -r -c 6 -is 64 -fscol 2 -s preset-1.css -term foot
-#exec_always nwg-dock -d -p bottom -a center -i 48 -hd 20 -s preset-1.css
-#exec_always nwg-panel -c preset-1 -s preset-1.css
-#exec_always nwg-shell-check-updates
-exec swayidle timeout 1200 nwg-lock timeout 1800 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"'
-#exec nwg-update-indicator
-#exec nwg-shell-config
+
+# Wayland Overlay Bar, volume/brigtness bar
+set $WOBSOCK $XDG_RUNTIME_DIR/wob.sock
+exec rm -f $WOBSOCK && mkfifo $WOBSOCK && tail -f $WOBSOCK | wob
+
+# use clipman for clipboard management
+exec wl-paste -t text --watch clipman store --no-persist
+
+# Nice color hues in the evenings
+exec wlsunset -l 59.9614 -L 10.925 -t 4500 -T 6500 -g 1.0
+
diff --git a/Common/sway/config b/Common/sway/config
index 7520ba8..763b828 100644
--- a/Common/sway/config
+++ b/Common/sway/config
@@ -1,15 +1,5 @@
-# The files we include below will be created / overwritten by nwg-shell tools
-#
-include variables
-include outputs
include autostart
-include workspaces
-include keyboard
-include pointer
-include touchpad
-
-# nwg-shell sway config
-# Read `man 5 sway` for reference.
+include hid
# border & title
for_window [title="^.*"] border none, title_format "<b> %class >> %title </b>"
@@ -35,24 +25,10 @@ set $down k
set $left j
set $right semicolon
-############### wob ##################
-set $WOBSOCK $XDG_RUNTIME_DIR/wob.sock
-exec rm -f $WOBSOCK && mkfifo $WOBSOCK && tail -f $WOBSOCK | wob
-
-############### Autostart ##################
-
-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 /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
-exec ~/.azotebg
-exec blueman-applet
-exec udiskie
-
### Turn off screen on lid closed
-# set $laptop eDP-1
-# bindswitch lid:on output $laptop disable
-# bindswitch lid:off output $laptop enable
+set $laptop eDP-1
+bindswitch lid:on output $laptop disable
+bindswitch lid:off output $laptop enable
############# Bindings ##################
@@ -61,18 +37,15 @@ bindsym $Mod+Shift+q kill
bindsym Mod1+F4 kill
# core applications
-bindsym $Mod+Return exec $term
-bindsym $Mod+s exec nwg-shell-config
-bindsym $Mod+w exec $browser
-bindsym $Mod+f exec $filemanager
+bindsym $Mod+Return exec alacritty
+bindsym $Mod+w exec firefox
+bindsym $Mod+f exec thunar
bindsym $Mod+c exec swaync-client -t
-bindsym Mod1+l exec nwg-lock
-bindsym $Mod+F1 exec nwg-shell-help
+bindsym Mod1+l exec physlock
bindsym $Mod+d exec wofi --show=drun
-#bindsym $Mod+d exec rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-mode -columns 3 -font 'Noto Sans 8'
# Exit menu
-bindsym $Mod+p exec $exit
+bindsym $Mod+p exec wlogout
# Exit sway (default way to log 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'
@@ -275,4 +248,7 @@ for_window [title="(?i)(?:Cssh|cssh)"] border none floating enable
for_window [app_id="(?i)(?:Cssh|cssh)"] floating enable
for_window [title="CSSH"] floating enable
+# Make it easier to spot X11 windows
+for_window [shell="xwayland"] title_format "[XWayland] %title"
+
popup_during_fullscreen smart
diff --git a/Common/sway/touchpad b/Common/sway/hid
index 2cdb7bf..7ef3f70 100644
--- a/Common/sway/touchpad
+++ b/Common/sway/hid
@@ -1,3 +1,11 @@
+input "type:keyboard" {
+ xkb_layout us,no
+ repeat_delay 300
+ repeat_rate 40
+ xkb_capslock disabled
+ xkb_numlock disabled
+}
+
input "type:touchpad" {
pointer_accel 0.0
natural_scroll disabled
@@ -11,3 +19,9 @@ input "type:touchpad" {
dwt enabled
middle_emulation enabled
}
+
+input "type:pointer" {
+ natural_scroll disabled
+ scroll_factor 1.0
+ left_handed disabled
+}
diff --git a/Common/sway/keyboard b/Common/sway/keyboard
deleted file mode 100644
index 6b2c442..0000000
--- a/Common/sway/keyboard
+++ /dev/null
@@ -1,7 +0,0 @@
-input "type:keyboard" {
- xkb_layout us,no
- repeat_delay 300
- repeat_rate 40
- xkb_capslock disabled
- xkb_numlock disabled
-}
diff --git a/Common/sway/outputs b/Common/sway/outputs
deleted file mode 100644
index e69de29..0000000
--- a/Common/sway/outputs
+++ /dev/null
diff --git a/Common/sway/pointer b/Common/sway/pointer
deleted file mode 100644
index db6e52f..0000000
--- a/Common/sway/pointer
+++ /dev/null
@@ -1,5 +0,0 @@
-input "type:pointer" {
- natural_scroll disabled
- scroll_factor 1.0
- left_handed disabled
-}
diff --git a/Common/sway/sway b/Common/sway/sway
deleted file mode 120000
index f217ee1..0000000
--- a/Common/sway/sway
+++ /dev/null
@@ -1 +0,0 @@
-/home/jakob/_code/dotfiles/Common/sway \ No newline at end of file
diff --git a/Common/sway/variables b/Common/sway/variables
deleted file mode 100644
index 934265d..0000000
--- a/Common/sway/variables
+++ /dev/null
@@ -1,6 +0,0 @@
-set $term alacritty
-set $browser google-chrome-stable --enable-features=UseOzonePlatform --ozone-platform=wayland
-set $filemanager thunar
-set $editor emacs
-set $launcher nwg-drawer
-set $exit nwg-bar -p center -a middle -i 48 -s preset-1.css
diff --git a/Common/sway/workspaces b/Common/sway/workspaces
deleted file mode 100644
index e69de29..0000000
--- a/Common/sway/workspaces
+++ /dev/null