diff options
| -rw-r--r-- | .config/sway/hibiki | 25 | ||||
| -rw-r--r-- | .config/sway/input.conf | 22 |
2 files changed, 26 insertions, 21 deletions
diff --git a/.config/sway/hibiki b/.config/sway/hibiki index 8658494..2363366 100644 --- a/.config/sway/hibiki +++ b/.config/sway/hibiki @@ -1,5 +1,9 @@ # vim: ft=i3 +set $laptop eDP-1 +set $desk "Dell Inc. DELL U2518D 3C4YP87AAK3L" +set $side "Samsung Electric Company SyncMaster H9XQ502424" + output * scale 1 output * bg $HOME/.background fill @@ -12,7 +16,8 @@ for_window [app_id=firefox] max_render_time 3 input "1:1:AT_Translated_Set_2_keyboard" { xkb_options 'caps:hyper,lvl3:ralt_switch_multikey,grp:alt_space_toggle,eurosign:5' } -input "2:7:SynPS/2_Synaptics_TouchPad" { +set $trackpad "2:7:SynPS/2_Synaptics_TouchPad" +input $trackpad { natural_scroll enabled dwt enabled tap enabled @@ -34,12 +39,12 @@ bar { exec redshift -l 52.52:13.40 exec mako exec kanshi -exec swayidle \ - timeout 540 'notify-send swayidle "screen off in 60s"' \ - timeout 600 'sway output * dpms off' \ - resume 'sway output * dpms on' \ - timeout 800 suspend \ - before-sleep lock - -bindswitch --locked lid:on output $laptop disable; exec notify-send clamshell-mode enabled -bindswitch --locked lid:off output $laptop enable; exec notify-send clamshell-mode disabled +exec swayidle -w \ + timeout 540 'lock' \ + timeout 600 'swaymsg "output * dpms off"' \ + resume 'swaymsg "output * dpms on"' \ + before-sleep 'swaylock -f -c 000000' \ + lock lock + +bindswitch --locked lid:on output $laptop disable +bindswitch --locked lid:off output $laptop enable diff --git a/.config/sway/input.conf b/.config/sway/input.conf index 42b959b..5e42c3b 100644 --- a/.config/sway/input.conf +++ b/.config/sway/input.conf @@ -16,20 +16,20 @@ input "1149:8264:Primax_Kensington_Eagle_Trackball" { } # pen + tablet -input "10429:148:XP-PEN_STAR_G640_Pen" { - click_method clickfinger - middle_emulation disabled - accel_profile flat - drag enabled +set $pen "10429:148:XP-PEN_STAR_G640" +input $pen { + drag disabled + drag_lock disabled tap enabled + accel_profile flat + # middle_emulation disabled # 331 lower pen button # 332 upper pen button - scroll_method on_button_down - scroll_button 274 - - map_to_output HDMI-A-1 + # scroll_method on_button_down + # scroll_button 274 + # map_to_output DP-6 map_from_region 0.0x0.0 0.3x0.3 } -input "10429:148:XP-PEN_STAR_G640_Mouse" events disabled -input "10429:148:XP-PEN_STAR_G640_Keyboard" events disabled +#input "10429:148:XP-PEN_STAR_G640_Mouse" events disabled +#input "10429:148:XP-PEN_STAR_G640_Keyboard" events disabled |