aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config/sway
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-01-19 14:55:07 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-01-19 14:55:07 +0300
commit2ff5cd984f82e6f38be04546263531d7031d2233 (patch)
tree2db3106cd54ddd39ddc64d9257fe1d450418be9a /dotfiles/.config/sway
parentd53c46e1824dce3aeeef5ccad52cf1cb315e84ef (diff)
downloadswayrice-2ff5cd984f82e6f38be04546263531d7031d2233.tar.gz
swayrice-2ff5cd984f82e6f38be04546263531d7031d2233.zip
Separate sway config by hostname
Diffstat (limited to 'dotfiles/.config/sway')
-rw-r--r--dotfiles/.config/sway/config82
-rw-r--r--dotfiles/.config/sway/desktopslav20
-rw-r--r--dotfiles/.config/sway/thinkslav6
3 files changed, 64 insertions, 44 deletions
diff --git a/dotfiles/.config/sway/config b/dotfiles/.config/sway/config
index cba44d1..74d1272 100644
--- a/dotfiles/.config/sway/config
+++ b/dotfiles/.config/sway/config
@@ -107,25 +107,28 @@ for_window [title="^ddterminal$"] floating enable, sticky enable
bindswitch --reload --locked lid:on exec "swaysession suspend"
# Trackpoint (Thinkpad)
-input 2:10:TPPS/2_IBM_TrackPoint pointer_accel 1
+input 2:10:TPPS/2_IBM_TrackPoint {
+ accel_profile flat
+ pointer_accel 0.7
+}
+
+# Trackpoint (Thinkpad Compact Keyboard (External))
+input 6127:24647:Lenovo_ThinkPad_Compact_USB_Keyboard_with_TrackPoint {
+ accel_profile flat
+ pointer_accel 1
+}
# Desktop mouse
-input 6127:24766:GamingMouseI_Gaming_Mouse {
+input 1118:2083:Microsoft_Microsoft___Classic_IntelliMouse__ {
accel_profile flat
- pointer_accel -0.5
+ pointer_accel 0.5
}
-# Outputs
+# Default wallpaper
output "*" background ~/.config/wall1.png fill
-output "HDMI-A-2" background ~/.config/wall2.png fill
-# Laptop display
-output "eDP-1" scale 1.6 pos 0 0 scale_filter linear
-# Two monitor layout
-output "HDMI-A-1" pos 0 0
-output "HDMI-A-2" pos 1920 0
# Keymaps
-input type:keyboard {
+input * {
xkb_layout "us,es,ru"
xkb_options "lv3:ralt_switch,grp:alt_shift_toggle,misc:typo,caps:escape,grp_led:scroll"
}
@@ -165,28 +168,6 @@ bindsym --to-code {
$mod+Ctrl+space exec "makoctl dismiss"
$mod+Ctrl+Shift+space exec "makoctl restore"
- # Screen brightness controls
- XF86MonBrightnessUp exec "xbacklight -inc 5"
- XF86MonBrightnessDown exec "xbacklight -dec 5"
- $mod+Ctrl+Up exec "xbacklight -inc 5"
- $mod+Ctrl+Down exec "xbacklight -dec 5"
-
- # Media keys
- XF86AudioPrev exec --no-startup-id "lmc prev"
- XF86AudioPlay exec --no-startup-id "lmc toggle"
- XF86AudioNext exec --no-startup-id "lmc next"
- XF86AudioRaiseVolume exec --no-startup-id lmc up 5
- XF86AudioLowerVolume exec --no-startup-id lmc down 5
- XF86AudioMute exec --no-startup-id lmc mute
-
- $mod+Shift+F5 exec mpc seek -10
- $mod+F5 exec lmc prev
- $mod+F6 exec lmc toggle
- $mod+F7 exec lmc next
- $mod+Shift+F7 exec mpc seek +10
- $mod+F8 exec mpc single
- $mod+Shift+F8 exec mpc repeat
-
# Start Applications
$mod+Shift+w exec --no-startup-id $browser
$mod+Ctrl+w exec --no-startup-id chromium
@@ -390,16 +371,29 @@ bindsym --to-code {
$mod+Ctrl+v exec clipremote paste
}
-# bar {
- # position top
- # separator_symbol "|"
+##### Bindsyms (layout-independent lock-screen-independent) #####
+bindsym --to-code --locked {
+ # Screen brightness controls
+ XF86MonBrightnessUp exec "xbacklight -inc 5"
+ XF86MonBrightnessDown exec "xbacklight -dec 5"
+ $mod+Ctrl+Up exec "xbacklight -inc 5"
+ $mod+Ctrl+Down exec "xbacklight -dec 5"
+
+ # Media keys
+ XF86AudioPrev exec --no-startup-id "lmc prev"
+ XF86AudioPlay exec --no-startup-id "lmc toggle"
+ XF86AudioNext exec --no-startup-id "lmc next"
+ XF86AudioRaiseVolume exec --no-startup-id lmc up 5
+ XF86AudioLowerVolume exec --no-startup-id lmc down 5
+ XF86AudioMute exec --no-startup-id lmc mute
- # status_command i3blocks
+ $mod+Shift+F5 exec mpc seek -10
+ $mod+F5 exec lmc prev
+ $mod+F6 exec lmc toggle
+ $mod+F7 exec lmc next
+ $mod+Shift+F7 exec mpc seek +10
+ $mod+F8 exec mpc single
+ $mod+Shift+F8 exec mpc repeat
+}
- # colors {
- # statusline #ffffff
- # background #000000AA
- # active_workspace #689d6a #323232 #689d6a
- # focused_workspace #8ec07c #689d6a #ffffff
- # }
-# }
+include "~/.config/sway/`uname -n`"
diff --git a/dotfiles/.config/sway/desktopslav b/dotfiles/.config/sway/desktopslav
new file mode 100644
index 0000000..1c76233
--- /dev/null
+++ b/dotfiles/.config/sway/desktopslav
@@ -0,0 +1,20 @@
+# vim: filetype=i3
+
+# Configuration specific to my desktop computer
+
+# Outputs
+output "HDMI-A-2" background ~/.config/wall2.png fill
+output "HDMI-A-1" pos 0 0
+output "HDMI-A-2" pos 1920 0
+
+# Workspaces
+workspace $ws1 output HDMI-A-1
+workspace $ws2 output HDMI-A-1
+workspace $ws3 output HDMI-A-1
+workspace $ws4 output HDMI-A-1
+workspace $ws5 output HDMI-A-1
+workspace $ws6 output HDMI-A-1
+workspace $ws7 output HDMI-A-2
+workspace $ws8 output HDMI-A-2
+workspace $ws9 output HDMI-A-2
+workspace $ws10 output HDMI-A-2
diff --git a/dotfiles/.config/sway/thinkslav b/dotfiles/.config/sway/thinkslav
new file mode 100644
index 0000000..de15c86
--- /dev/null
+++ b/dotfiles/.config/sway/thinkslav
@@ -0,0 +1,6 @@
+# vim: filetype=i3
+
+# Configuration specific to my laptop computer
+
+# Outputs
+output "eDP-1" scale 1.6 pos 0 0 scale_filter linear