Configured device mappings
+ added function keys actions + enabled tap to touch ! tried adding screenshot shortcuts
This commit is contained in:
parent
7d721893c3
commit
9a74ff0cd5
32
config
32
config
@ -24,13 +24,21 @@ set $term alacritty
|
|||||||
#set $menu dmenu_path | dmenu | xargs swaymsg exec --
|
#set $menu dmenu_path | dmenu | xargs swaymsg exec --
|
||||||
set $menu j4-dmenu-desktop --dmenu='bemenu -i --tf "#04819E" --nb "#000000" --hb "#000000" --nf "#A65200" --hf "#FF7F00" --fn "pango:DejaVu Sans Mono 12"' --term='alacritty'
|
set $menu j4-dmenu-desktop --dmenu='bemenu -i --tf "#04819E" --nb "#000000" --hb "#000000" --nf "#A65200" --hf "#FF7F00" --fn "pango:DejaVu Sans Mono 12"' --term='alacritty'
|
||||||
|
|
||||||
### Output configuration
|
### Basic output configuration
|
||||||
#
|
#
|
||||||
set $bg_picture /home/main/.config/sway/background.jpg
|
set $bg_picture /home/main/.config/sway/background.jpg
|
||||||
output * bg $bg_picture fill
|
output * bg $bg_picture fill
|
||||||
|
|
||||||
set $screenlock swaylock -f -i $bg_picture -c 000000
|
set $screenlock swaylock -f -i $bg_picture -c 000000
|
||||||
|
|
||||||
|
### Basic input configuration
|
||||||
|
input * {
|
||||||
|
xkb_layout "fr"
|
||||||
|
xkb_variant "azerty"
|
||||||
|
xkb_options ""
|
||||||
|
repeat_delay 300
|
||||||
|
repeat_rate 60
|
||||||
|
}
|
||||||
|
|
||||||
### Idle configuration
|
### Idle configuration
|
||||||
exec_always swayidle -w \
|
exec_always swayidle -w \
|
||||||
timeout 70 '$screenlock' \
|
timeout 70 '$screenlock' \
|
||||||
@ -42,18 +50,6 @@ exec_always swayidle -w \
|
|||||||
# your displays after another 300 seconds, and turn your screens back on when
|
# your displays after another 300 seconds, and turn your screens back on when
|
||||||
# resumed. It will also lock your screen before your computer goes to sleep.
|
# resumed. It will also lock your screen before your computer goes to sleep.
|
||||||
|
|
||||||
### Input configuration
|
|
||||||
#
|
|
||||||
input * {
|
|
||||||
xkb_layout "fr"
|
|
||||||
xkb_variant "azerty"
|
|
||||||
xkb_options ""
|
|
||||||
repeat_delay 300
|
|
||||||
repeat_rate 60
|
|
||||||
}
|
|
||||||
|
|
||||||
input * xkb_numlock enable
|
|
||||||
|
|
||||||
### Status Bar:
|
### Status Bar:
|
||||||
#
|
#
|
||||||
# Read `man 5 sway-bar` for more information about this section.
|
# Read `man 5 sway-bar` for more information about this section.
|
||||||
@ -99,14 +95,6 @@ for_window [shell="xwayland"] title_format "%title [XWayland]"
|
|||||||
# Take a Screenshot with the region select
|
# Take a Screenshot with the region select
|
||||||
set $screenshot_select grim -t jpeg -g "$(slurp)" ~/Pictures/$(date +%Y-%m-%d_%H-%m-%s).jpg
|
set $screenshot_select grim -t jpeg -g "$(slurp)" ~/Pictures/$(date +%Y-%m-%d_%H-%m-%s).jpg
|
||||||
|
|
||||||
### Basic bindings
|
|
||||||
#
|
|
||||||
bindsym $mod+return exec $term
|
|
||||||
bindsym $mod+Shift+q kill
|
|
||||||
bindsym $mod+d exec $menu
|
|
||||||
floating_modifier $mod normal
|
|
||||||
bindsym $mod+Shift+c reload
|
|
||||||
|
|
||||||
### Other config files
|
### Other config files
|
||||||
#
|
#
|
||||||
include /etc/sway/config.d/*
|
include /etc/sway/config.d/*
|
||||||
|
|||||||
33
config.d/fly_away
Normal file
33
config.d/fly_away
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
### Inputs config
|
||||||
|
#
|
||||||
|
input 1739:0:Synaptics_TM3075-002 {
|
||||||
|
tap enabled
|
||||||
|
}
|
||||||
|
|
||||||
|
### Function keys
|
||||||
|
#
|
||||||
|
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
|
||||||
|
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
|
||||||
|
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||||
|
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||||
|
bindsym XF86MonBrightnessDown exec brightnessctl set 5%- #TODO fix that
|
||||||
|
bindsym XF86MonBrightnessUp exec brightnessctl set +5% #TODO fix that
|
||||||
|
#bindsym XF86Display nothing for now
|
||||||
|
#bindsym XF86WLAN already implemented, toggles Wifi via rfkill
|
||||||
|
#bindsym XF86Tools nothing for now
|
||||||
|
bindsym XF86Search exec firefox
|
||||||
|
bindsym XF86Explorer exec $term -e ranger
|
||||||
|
bindsym XF86Launcha exec '$screenlock'
|
||||||
|
|
||||||
|
### Screenshots
|
||||||
|
#
|
||||||
|
|
||||||
|
# Take a screenshot with all outputs and save it into screenshots
|
||||||
|
bindsym Print exec '$screeshot'
|
||||||
|
|
||||||
|
# Take a screenshot of the active window
|
||||||
|
bindsym Print+Ctrl exec '$screenshot_window'
|
||||||
|
|
||||||
|
# Take a screenshot with the region selection
|
||||||
|
bindsym Print+Alt exec '$screenshot_select'
|
||||||
|
|
||||||
@ -1,69 +0,0 @@
|
|||||||
### Function keys
|
|
||||||
#
|
|
||||||
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
|
|
||||||
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
|
|
||||||
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
|
||||||
bindsym XF86MonBrightnessDown exec brightnessctl set 5%- #TODO fix that
|
|
||||||
bindsym XF86MonBrightnessUp exec brightnessctl set +5% #TODO fix that
|
|
||||||
bindsym XF86Launcha exec '$screenlock'
|
|
||||||
|
|
||||||
### Workspaces:
|
|
||||||
#
|
|
||||||
# Switch to workspace
|
|
||||||
bindsym $mod+Next workspace next
|
|
||||||
bindsym $mod+Prior workspace prev
|
|
||||||
|
|
||||||
bindsym $mod+ampersand exec /home/main/.config/sway/scripts/wrk_select.bash "1"
|
|
||||||
bindsym $mod+eacute exec /home/main/.config/sway/scripts/wrk_select.bash "2"
|
|
||||||
bindsym $mod+quotedbl exec /home/main/.config/sway/scripts/wrk_select.bash "3"
|
|
||||||
bindsym $mod+apostrophe exec /home/main/.config/sway/scripts/wrk_select.bash "4"
|
|
||||||
bindsym $mod+parenleft exec /home/main/.config/sway/scripts/wrk_select.bash "5"
|
|
||||||
bindsym $mod+minus exec /home/main/.config/sway/scripts/wrk_select.bash "6"
|
|
||||||
bindsym $mod+egrave exec /home/main/.config/sway/scripts/wrk_select.bash "7"
|
|
||||||
bindsym $mod+underscore exec /home/main/.config/sway/scripts/wrk_select.bash "8"
|
|
||||||
bindsym $mod+ccedilla exec /home/main/.config/sway/scripts/wrk_select.bash "9"
|
|
||||||
bindsym $mod+agrave exec /home/main/.config/sway/scripts/wrk_select.bash "0"
|
|
||||||
|
|
||||||
|
|
||||||
# bindsym $mod+KP_0 workspace number 0
|
|
||||||
# bindsym $mod+KP_1 workspace number 1
|
|
||||||
# bindsym $mod+KP_2 workspace number 2
|
|
||||||
# bindsym $mod+KP_3 workspace number 3
|
|
||||||
# bindsym $mod+KP_4 workspace number 4
|
|
||||||
# bindsym $mod+KP_5 workspace number 5
|
|
||||||
# bindsym $mod+KP_6 workspace number 6
|
|
||||||
# bindsym $mod+KP_7 workspace number 7
|
|
||||||
# bindsym $mod+KP_8 workspace number 8
|
|
||||||
# bindsym $mod+KP_9 workspace number 9
|
|
||||||
|
|
||||||
# Move focused container to workspace
|
|
||||||
bindsym $mod+Ctrl+Next workspace next
|
|
||||||
bindsym $mod+Ctrl+Prior workspace prev
|
|
||||||
|
|
||||||
bindsym $mod+Ctrl+1 exec /home/main/.config/sway/scripts/wrk_move.bash "1"
|
|
||||||
bindsym $mod+Ctrl+2 exec /home/main/.config/sway/scripts/wrk_move.bash "2"
|
|
||||||
bindsym $mod+Ctrl+3 exec /home/main/.config/sway/scripts/wrk_move.bash "3"
|
|
||||||
bindsym $mod+Ctrl+4 exec /home/main/.config/sway/scripts/wrk_move.bash "4"
|
|
||||||
bindsym $mod+Ctrl+5 exec /home/main/.config/sway/scripts/wrk_move.bash "5"
|
|
||||||
bindsym $mod+Ctrl+6 exec /home/main/.config/sway/scripts/wrk_move.bash "6"
|
|
||||||
bindsym $mod+Ctrl+7 exec /home/main/.config/sway/scripts/wrk_move.bash "7"
|
|
||||||
bindsym $mod+Ctrl+8 exec /home/main/.config/sway/scripts/wrk_move.bash "8"
|
|
||||||
bindsym $mod+Ctrl+9 exec /home/main/.config/sway/scripts/wrk_move.bash "9"
|
|
||||||
bindsym $mod+Ctrl+0 exec /home/main/.config/sway/scripts/wrk_move.bash "0"
|
|
||||||
|
|
||||||
|
|
||||||
# bindsym $mod+Ctrl+KP_0 move container to workspace number 0
|
|
||||||
# bindsym $mod+Ctrl+KP_1 move container to workspace number 1
|
|
||||||
# bindsym $mod+Ctrl+KP_2 move container to workspace number 2
|
|
||||||
# bindsym $mod+Ctrl+KP_3 move container to workspace number 3
|
|
||||||
# bindsym $mod+Ctrl+KP_4 move container to workspace number 4
|
|
||||||
# bindsym $mod+Ctrl+KP_5 move container to workspace number 5
|
|
||||||
# bindsym $mod+Ctrl+KP_6 move container to workspace number 6
|
|
||||||
# bindsym $mod+Ctrl+KP_7 move container to workspace number 7
|
|
||||||
# bindsym $mod+Ctrl+KP_8 move container to workspace number 8
|
|
||||||
# bindsym $mod+Ctrl+KP_9 move container to workspace number 9
|
|
||||||
|
|
||||||
|
|
||||||
# Note: workspaces can have any name you want, not just numbers.
|
|
||||||
# We just use 1-10 as the default.
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user