mirror of
https://github.com/eoli3n/dotfiles
synced 2024-11-23 15:32:01 +01:00
207 lines
6.0 KiB
Django/Jinja
207 lines
6.0 KiB
Django/Jinja
# Sway config file
|
|
|
|
# configure keyboard
|
|
input * xkb_layout "fr"
|
|
input * xkb_variant "oss"
|
|
input * xkb_options "grp:win_space_toggle"
|
|
input "MANUFACTURER1 Keyboard" xkb_model "pc101"
|
|
|
|
# mod key
|
|
set $mod Mod4
|
|
|
|
# fonts
|
|
font pango: hack, FontAwesome5Free, FontAwesome5Brands 10
|
|
|
|
# gaps
|
|
default_border none
|
|
hide_edge_borders --i3 both
|
|
smart_borders off
|
|
smart_gaps on
|
|
gaps inner 4
|
|
gaps outer -4
|
|
|
|
# start a terminal
|
|
bindsym $mod+Return exec termite
|
|
|
|
# start drofi dmenu
|
|
bindsym $mod+Tab exec --no-startup-id rofi -show window
|
|
bindsym $mod+Shift+d exec --no-startup-id rofi -show run
|
|
bindsym $mod+d exec --no-startup-id rofi -modi drun -show drun
|
|
|
|
# Use Mouse+$mod to drag floating windows to their wanted position
|
|
floating_modifier $mod
|
|
|
|
# kill focused window
|
|
bindsym $mod+Shift+a kill
|
|
|
|
# change focus
|
|
bindsym $mod+j focus left
|
|
bindsym $mod+k focus down
|
|
bindsym $mod+l focus up
|
|
bindsym $mod+m focus right
|
|
|
|
# alternatively, you can use the cursor keys:
|
|
bindsym $mod+Left focus left
|
|
bindsym $mod+Down focus down
|
|
bindsym $mod+Up focus up
|
|
bindsym $mod+Right focus right
|
|
|
|
# move focused window
|
|
bindsym $mod+Shift+j move left
|
|
bindsym $mod+Shift+k move down
|
|
bindsym $mod+Shift+l move up
|
|
bindsym $mod+Shift+m move right
|
|
|
|
# alternatively, you can use the cursor keys:
|
|
bindsym $mod+Shift+Left move left
|
|
bindsym $mod+Shift+Down move down
|
|
bindsym $mod+Shift+Up move up
|
|
bindsym $mod+Shift+Right move right
|
|
|
|
# split in horizontal orientation
|
|
bindsym $mod+h split h
|
|
|
|
# split in vertical orientation
|
|
bindsym $mod+v split v
|
|
|
|
# enter fullscreen mode for the focused container
|
|
bindsym $mod+f fullscreen toggle
|
|
|
|
# change container layout (stacked, tabbed, toggle split)
|
|
bindsym $mod+s layout stacking
|
|
bindsym $mod+z layout tabbed
|
|
bindsym $mod+e layout toggle split
|
|
|
|
# toggle tiling / floating
|
|
bindsym $mod+Shift+space floating toggle
|
|
|
|
# change focus between tiling / floating windows
|
|
#bindsym $mod+space focus mode_toggle
|
|
|
|
# focus the parent container
|
|
bindsym $mod+q focus parent
|
|
|
|
# focus the child container
|
|
#bindsym $mod+d focus child
|
|
|
|
#scratchpad
|
|
bindsym $mod+twosuperior scratchpad show
|
|
bindsym $mod+Shift+twosuperior move scratchpad
|
|
|
|
#Swith with same key to precedent workspace
|
|
workspace_auto_back_and_forth yes
|
|
|
|
# set workspace names
|
|
set $tag1 "1:"
|
|
set $tag2 "2:"
|
|
set $tag3 "3:"
|
|
set $tag4 "4:"
|
|
set $tag5 "5:"
|
|
set $tag6 "6:"
|
|
set $tag7 "7:"
|
|
set $tag8 "8:"
|
|
set $tag9 "9:"
|
|
set $tag10 "10:"
|
|
|
|
#colors
|
|
# class border backgr. text indicator child_border
|
|
client.focused #222222 #5A5A5A #E1E1E1 #000000 #000000
|
|
client.focused_inactive #222222 #5A5A5A #E1E1E1 #484e50 #000000
|
|
client.unfocused #222222 #323232 #888888 #292d2e #222222
|
|
client.urgent #2f343a #900000 #ffffff #900000 #900000
|
|
client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
|
|
|
|
#rofi_power menu
|
|
bindsym $mod+Shift+q exec ~/.config/rofi/powermenu.sh
|
|
|
|
# apps
|
|
bindsym $mod+Control+t exec nautilus
|
|
bindsym $mod+Control+n exec connman-gtk
|
|
bindsym $mod+Control+p exec pavucontrol
|
|
|
|
# switch to workspace
|
|
bindsym $mod+ampersand workspace $tag1
|
|
bindsym $mod+eacute workspace $tag2
|
|
bindsym $mod+quotedbl workspace $tag3
|
|
bindsym $mod+apostrophe workspace $tag4
|
|
bindsym $mod+parenleft workspace $tag5
|
|
bindsym $mod+minus workspace $tag6
|
|
bindsym $mod+egrave workspace $tag7
|
|
bindsym $mod+underscore workspace $tag8
|
|
bindsym $mod+ccedilla workspace $tag9
|
|
bindsym $mod+agrave workspace $tag10
|
|
|
|
# move focused container to workspace
|
|
bindsym $mod+Shift+ampersand move container to workspace $tag1
|
|
bindsym $mod+Shift+eacute move container to workspace $tag2
|
|
bindsym $mod+Shift+quotedbl move container to workspace $tag3
|
|
bindsym $mod+Shift+apostrophe move container to workspace $tag4
|
|
bindsym $mod+Shift+5 move container to workspace $tag5
|
|
bindsym $mod+Shift+minus move container to workspace $tag6
|
|
bindsym $mod+Shift+egrave move container to workspace $tag7
|
|
bindsym $mod+Shift+underscore move container to workspace $tag8
|
|
bindsym $mod+Shift+ccedilla move container to workspace $tag9
|
|
bindsym $mod+Shift+agrave move container to workspace $tag10
|
|
|
|
# floatings
|
|
for_window [class="XTerm"] floating enable, border normal
|
|
for_window [class="feh"] floating enable, border normal
|
|
for_window [class="Gpick"] floating enable, border pixel 1
|
|
for_window [title="Images de Variety"] floating enable, border pixel 1, move left 647px
|
|
|
|
# assigns focus
|
|
assign [class="Connman-gtk"] $tag10
|
|
for_window [class="Connman-gtk"] focus
|
|
assign [class="Transmission-gtk"] $tag9
|
|
assign [title=".*mail.*"] $tag3
|
|
assign [class="Google-chrome"] $tag1
|
|
assign [class="spotify"] $tag5
|
|
for_window [class="spotify"] focus
|
|
assign [class="Code"] $tag6
|
|
for_window [class="Code"] focus
|
|
for_window [title=".*mail.*"] fullscreen disable, border none
|
|
|
|
# bindsym spotify
|
|
bindsym $mod+less exec playerctl previous
|
|
bindsym $mod+Shift+less exec playerctl next
|
|
bindsym $mod+space exec playerctl play-pause
|
|
|
|
# move workspace between screens
|
|
bindsym $mod+Prior move workspace to output left
|
|
bindsym $mod+Next move workspace to output right
|
|
|
|
{% include 'by_host/' + ansible_hostname + '/config.j2' ignore missing %}
|
|
|
|
{% include 'by_os/' + ansible_distribution|lower + '/config.j2' ignore missing %}
|
|
|
|
# reload the configuration file
|
|
bindsym $mod+Shift+r reload
|
|
|
|
# resize window (you can also use the mouse for that)
|
|
mode "resize" {
|
|
bindsym j resize shrink width 10 px or 10 ppt
|
|
bindsym k resize grow height 10 px or 10 ppt
|
|
bindsym l resize shrink height 10 px or 10 ppt
|
|
bindsym m resize grow width 10 px or 10 ppt
|
|
|
|
bindsym Left resize shrink width 10 px or 10 ppt
|
|
bindsym Down resize grow height 10 px or 10 ppt
|
|
bindsym Up resize shrink height 10 px or 10 ppt
|
|
bindsym Right resize grow width 10 px or 10 ppt
|
|
|
|
# back to normal: Enter or Escape
|
|
bindsym Return mode "default"
|
|
bindsym Escape mode "default"
|
|
}
|
|
|
|
bindsym $mod+r mode "resize"
|
|
|
|
# waybar exec
|
|
exec_always ~/.config/waybar/waybar.sh
|
|
|
|
# set gtk theme
|
|
exec_always ~/.config/sway/import-gsettings \
|
|
gtk-theme:gtk-theme-name \
|
|
icon-theme:gtk-icon-theme-name \
|
|
cursor-theme:gtk-cursor-theme-name
|