QoL hack around 65% keyboard
This commit is contained in:
parent
5183b34e75
commit
6488c458f8
3 changed files with 18 additions and 7 deletions
|
@ -59,9 +59,6 @@ headphones_indicator = true
|
||||||
block = "keyboard_layout"
|
block = "keyboard_layout"
|
||||||
driver = "sway"
|
driver = "sway"
|
||||||
format = "{layout}"
|
format = "{layout}"
|
||||||
[block.mappings]
|
|
||||||
"English (US)" = "UWU"
|
|
||||||
"Russian (N/A)" = "ЪУЪ"
|
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "battery"
|
block = "battery"
|
||||||
|
|
|
@ -52,15 +52,16 @@ exec swayidle -w \
|
||||||
#
|
#
|
||||||
# Example configuration:
|
# Example configuration:
|
||||||
#
|
#
|
||||||
input "1739:52840:SYNA8019:00_06CB:CE68_Touchpad" {
|
input type:touchpad {
|
||||||
accel_profile adaptive
|
accel_profile adaptive
|
||||||
click_method clickfinger
|
click_method clickfinger
|
||||||
dwt enabled
|
dwt enabled
|
||||||
|
dwtp enabled
|
||||||
middle_emulation enabled
|
middle_emulation enabled
|
||||||
}
|
}
|
||||||
|
|
||||||
input * {
|
input type:keyboard {
|
||||||
xkb_layout "us,ru"
|
xkb_layout "65-percent-en-us,ru"
|
||||||
xkb_options "caps:ctrl_modifier,grp:alt_space_toggle"
|
xkb_options "caps:ctrl_modifier,grp:alt_space_toggle"
|
||||||
}
|
}
|
||||||
#
|
#
|
||||||
|
@ -114,7 +115,9 @@ seat * hide_cursor 5000
|
||||||
bindsym --to-code $mod+Delete exec $lock
|
bindsym --to-code $mod+Delete exec $lock
|
||||||
# Screenshots
|
# Screenshots
|
||||||
bindsym --to-code Print exec 'grim -g "$(slurp)" - | wl-copy'
|
bindsym --to-code Print exec 'grim -g "$(slurp)" - | wl-copy'
|
||||||
|
bindsym --to-code $mod+p exec 'grim -g "$(slurp)" - | wl-copy'
|
||||||
bindsym --to-code $mod+Print exec 'grim -g "$(slurp)" ~/Pictures/$(date +"%Y-%m-%d-%H-%M-%S").png'
|
bindsym --to-code $mod+Print exec 'grim -g "$(slurp)" ~/Pictures/$(date +"%Y-%m-%d-%H-%M-%S").png'
|
||||||
|
bindsym --to-code $mod+Mod1+p exec 'grim -g "$(slurp)" ~/Pictures/$(date +"%Y-%m-%d-%H-%M-%S").png'
|
||||||
# Notifications
|
# Notifications
|
||||||
bindsym --to-code $mod+m exec 'makoctl dismiss -a'
|
bindsym --to-code $mod+m exec 'makoctl dismiss -a'
|
||||||
bindsym --to-code $mod+Shift+m exec 'makoctl restore'
|
bindsym --to-code $mod+Shift+m exec 'makoctl restore'
|
||||||
|
@ -296,11 +299,13 @@ default_border pixel 2
|
||||||
# Set font
|
# Set font
|
||||||
font pango:JuliaMono 8
|
font pango:JuliaMono 8
|
||||||
|
|
||||||
|
# bindsym --to-code $mod+t input type:touchpad toggle
|
||||||
|
|
||||||
# Startup applications
|
# Startup applications
|
||||||
exec nextcloud --background
|
exec nextcloud --background
|
||||||
exec iwgtk -i
|
exec iwgtk -i
|
||||||
exec blueman-applet
|
exec blueman-applet
|
||||||
#exec wlsunset -l 51 -L 14
|
exec wlsunset -l 52 -L 5
|
||||||
|
|
||||||
# window rules
|
# window rules
|
||||||
# floating
|
# floating
|
||||||
|
@ -319,7 +324,10 @@ for_window [app_id="zoom" title="^(Zoom|About)$"] border pixel, floating enable
|
||||||
for_window [app_id="zoom" title="Settings"] floating enable, floating_minimum_size 960 x 700
|
for_window [app_id="zoom" title="Settings"] floating enable, floating_minimum_size 960 x 700
|
||||||
# Open Zoom Meeting windows on a new workspace (a bit hacky)
|
# Open Zoom Meeting windows on a new workspace (a bit hacky)
|
||||||
for_window [app_id="zoom" title="Zoom Meeting(.*)?"] workspace next_on_output --create, move container to workspace current, floating disable, inhibit_idle open
|
for_window [app_id="zoom" title="Zoom Meeting(.*)?"] workspace next_on_output --create, move container to workspace current, floating disable, inhibit_idle open
|
||||||
|
# kill firefox sharing indicator
|
||||||
for_window [app_id="firefox" title="Firefox — Sharing Indicator"] kill
|
for_window [app_id="firefox" title="Firefox — Sharing Indicator"] kill
|
||||||
|
# fix picture-in-picture behaviour
|
||||||
|
for_window [app_id="firefox" title="Picture-in-Picture"] floating enable, sticky enable, border none
|
||||||
|
|
||||||
include ./config.d/*
|
include ./config.d/*
|
||||||
include /etc/sway/config.d/*
|
include /etc/sway/config.d/*
|
||||||
|
|
6
xkb/.xkb/symbols/65-percent-en-us
Normal file
6
xkb/.xkb/symbols/65-percent-en-us
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
default partial alphanumeric_keys
|
||||||
|
xkb_symbols "basic" {
|
||||||
|
include "us(basic)"
|
||||||
|
name[Group1] = "English 65% tilde";
|
||||||
|
key <ESC> {[ Escape, asciitilde ]};
|
||||||
|
};
|
Loading…
Add table
Reference in a new issue