329 lines
10 KiB
Plaintext
329 lines
10 KiB
Plaintext
# This file has been auto-generated by i3-config-wizard(1).
|
|
# It will not be overwritten, so edit it as you like.
|
|
#
|
|
# Should you change your keyboard layout some time, delete
|
|
# this file and re-run i3-config-wizard(1).
|
|
#
|
|
|
|
# i3 config file (v4)
|
|
#
|
|
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
|
|
|
# set modifier keys:
|
|
# Mod4=Apple Command|Windows key
|
|
set $mod Mod4
|
|
# Mod1=Alt|option key
|
|
set $alt Mod1
|
|
|
|
# Your preferred terminal emulator
|
|
# set $term urxvt
|
|
#set $term alacritty
|
|
set $term foot
|
|
|
|
# Your preferred application launcher
|
|
# Note: it's recommended that you pass the final command to sway
|
|
#set $menu dmenu_path | dmenu | xargs swaymsg exec --
|
|
set $menu dmenu_path | wmenu | xargs swaymsg exec --
|
|
bindsym $mod+d exec $menu
|
|
|
|
bindsym --release $mod+z exec 'fn=$(date "+%Y-%m-%d-%H%M%S").png; grim -g "$(slurp)" $fn; ~/bin/mv2figs.sh $fn'
|
|
# bindsym --release $mod+z exec scrot '%Y-%m-%d_%H%M%S_$wx$h.png' -e '~/bin/mv2figs.sh $f'
|
|
bindsym --release $alt+z exec 'fn=$(date "+%Y-%m-%d-%H%M%S").png; sleep 3; grim $fn; ~/bin/mv2figs.sh $fn'
|
|
|
|
#check out wl-clipboard for wayland xclip solution https://github.com/bugaevc/wl-clipboard
|
|
bindsym $mod+Shift+z exec "date --iso-8601='seconds' | tr -d '\n' | wl-copy"
|
|
# bindsym $mod+Shift+z exec "date --iso-8601='seconds' | tr -d '\n' | xclip -selection clipboard"
|
|
|
|
#audio output kbd control- pulse audio
|
|
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
|
|
#audio output kbd control- alsa utils
|
|
#bindsym XF86AudioRaiseVolume exec amixer -q set Master 2dB+ unmute
|
|
#bindsym XF86AudioRaiseVolume exec amixer -q set Master 2dB+ unmute
|
|
#bindsym XF86AudioMute exec amixer -q set Master toggle
|
|
|
|
#display brightness
|
|
#bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
|
|
#bindsym XF86MonBrightnessUp exec brightnessctl set +5%
|
|
|
|
# Font for window titles. Will also be used by the bar unless a different font
|
|
# is used in the bar {} block below.
|
|
font pango:monospace 8
|
|
|
|
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
|
# output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
|
|
# output * bg #000000 solid_color
|
|
|
|
#Apple trackpad input device id:
|
|
#input "1452:657:bcm5974" {
|
|
# tap enabled
|
|
#}
|
|
|
|
#typematic delay and rate
|
|
input type:keyboard {
|
|
xkb_layout us
|
|
repeat_delay 600
|
|
repeat_rate 60
|
|
}
|
|
|
|
# You can get the names of your inputs by running: swaymsg -t get_inputs
|
|
# Read `man 5 sway-input` for more information about this section.
|
|
|
|
# output eDP-1 resolution 1440x900 position 1440,0
|
|
#
|
|
# Example configuration:
|
|
#
|
|
# output HDMI-A-1 resolution 1920x1080 position 1920,0
|
|
#
|
|
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
|
#
|
|
#HiDPI displays
|
|
# output <name> scale <factor>
|
|
# output eDP-1 scale 2
|
|
|
|
# Use Mouse+$mod to drag floating windows to their wanted position
|
|
floating_modifier $mod
|
|
|
|
# start a terminal
|
|
bindsym $mod+Return exec $term
|
|
|
|
# kill focused window
|
|
bindsym $mod+Shift+q kill
|
|
|
|
# bindsym $mod+j focus left
|
|
# bindsym $mod+k focus down
|
|
# bindsym $mod+l focus up
|
|
# bindsym $mod+semicolon focus right
|
|
bindsym $mod+h focus left
|
|
bindsym $mod+j focus down
|
|
bindsym $mod+k focus up
|
|
bindsym $mod+l 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+semicolon move right
|
|
bindsym $mod+Shift+h move left
|
|
bindsym $mod+Shift+j move down
|
|
bindsym $mod+Shift+k move up
|
|
bindsym $mod+Shift+l 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
|
|
bindsym $mod+Shift+v 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+w 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+a focus parent
|
|
|
|
# Define names for default workspaces for which we configure key bindings later on.
|
|
# We use variables to avoid repeating the names in multiple places.
|
|
set $ws1 "1"
|
|
set $ws2 "2"
|
|
set $ws3 "3"
|
|
set $ws4 "4"
|
|
set $ws5 "5"
|
|
set $ws6 "6"
|
|
set $ws7 "7"
|
|
set $ws8 "8"
|
|
set $ws9 "9"
|
|
set $ws10 "10"
|
|
|
|
# switch to workspace
|
|
bindsym $mod+1 workspace $ws1
|
|
bindsym $mod+2 workspace $ws2
|
|
bindsym $mod+3 workspace $ws3
|
|
bindsym $mod+4 workspace $ws4
|
|
bindsym $mod+5 workspace $ws5
|
|
bindsym $mod+6 workspace $ws6
|
|
bindsym $mod+7 workspace $ws7
|
|
bindsym $mod+8 workspace $ws8
|
|
bindsym $mod+9 workspace $ws9
|
|
bindsym $mod+0 workspace $ws10
|
|
|
|
# move focused container to workspace
|
|
bindsym $mod+Shift+1 move container to workspace $ws1
|
|
bindsym $mod+Shift+2 move container to workspace $ws2
|
|
bindsym $mod+Shift+3 move container to workspace $ws3
|
|
bindsym $mod+Shift+4 move container to workspace $ws4
|
|
bindsym $mod+Shift+5 move container to workspace $ws5
|
|
bindsym $mod+Shift+6 move container to workspace $ws6
|
|
bindsym $mod+Shift+7 move container to workspace $ws7
|
|
bindsym $mod+Shift+8 move container to workspace $ws8
|
|
bindsym $mod+Shift+9 move container to workspace $ws9
|
|
bindsym $mod+Shift+0 move container to workspace $ws10
|
|
|
|
# reload the configuration file
|
|
bindsym $mod+Shift+c reload
|
|
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
|
bindsym $mod+Shift+r restart
|
|
|
|
# Exit sway (logs you out of your Wayland session)
|
|
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
|
|
|
|
# resize window (you can also use the mouse for that)
|
|
mode "resize" {
|
|
# These bindings trigger as soon as you enter the resize mode
|
|
|
|
# Pressing left will shrink the window width.
|
|
# Pressing right will grow the window width.
|
|
# Pressing up will shrink the window height.
|
|
# Pressing down will grow the window height.
|
|
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 semicolon resize grow width 10 px or 10 ppt
|
|
|
|
# same bindings, but for the arrow keys
|
|
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 or $mod+r
|
|
bindsym Return mode "default"
|
|
bindsym Escape mode "default"
|
|
bindsym $mod+r mode "default"
|
|
}
|
|
|
|
bindsym $mod+r mode "resize"
|
|
|
|
# Start i3bar to display a workspace bar (plus the system information i3status
|
|
# finds out, if available)
|
|
#bar {
|
|
# status_command i3status
|
|
#}
|
|
|
|
#bindsym $mod+F1 exec firefox
|
|
|
|
########################################################################33
|
|
## Base16 Default Dark
|
|
# Author: Chris Kempson (http://chriskempson.com)
|
|
#
|
|
# You can use these variables anywhere in the i3 configuration file.
|
|
|
|
set $base00 #181818
|
|
set $base01 #282828
|
|
set $base02 #383838
|
|
set $base03 #585858
|
|
set $base04 #b8b8b8
|
|
set $base05 #d8d8d8
|
|
set $base06 #e8e8e8
|
|
set $base07 #f8f8f8
|
|
set $base08 #ab4642
|
|
set $base09 #dc9656
|
|
set $base0A #f7ca88
|
|
set $base0B #a1b56c
|
|
set $base0C #86c1b9
|
|
set $base0D #7cafc2
|
|
set $base0E #ba8baf
|
|
set $base0F #a16946
|
|
|
|
# Basic bar configuration using the Base16 variables.
|
|
bar {
|
|
status_command i3status
|
|
position top
|
|
|
|
mode dock
|
|
hidden_state hide
|
|
#modifier Mod1
|
|
modifier ""
|
|
|
|
colors {
|
|
background $base00
|
|
separator $base03
|
|
statusline $base04
|
|
|
|
# State Border BG Text
|
|
focused_workspace $base05 $base0D $base00
|
|
active_workspace $base05 $base03 $base00
|
|
inactive_workspace $base03 $base01 $base05
|
|
urgent_workspace $base08 $base08 $base00
|
|
binding_mode $base00 $base0A $base00
|
|
}
|
|
|
|
# colors {
|
|
# background #000000
|
|
# statusline #ffffff
|
|
# separator #666666
|
|
#
|
|
# focused_workspace #4c7899 #285577 #ffffff
|
|
# active_workspace #333333 #5f676a #ffffff
|
|
# inactive_workspace #333333 #222222 #888888
|
|
# urgent_workspace #2f343a #900000 #ffffff
|
|
# binding_mode #2f343a #900000 #ffffff
|
|
# }
|
|
|
|
}
|
|
|
|
# Toggle between dock mode and hide mode for i3 bar
|
|
bindsym $mod+Shift+b bar mode toggle
|
|
|
|
# Turn off focused window title and set minimal default border thickness
|
|
bindsym $mod+Shift+m border pixel 1
|
|
# bindsym $mod+Shift+m border toggle
|
|
|
|
# Basic color configuration using the Base16 variables for windows and borders.
|
|
# Property Name Border BG Text Indicator Child Border
|
|
#client.focused $base05 $base0D $base00 $base0D $base0D
|
|
#client.focused_inactive $base01 $base01 $base05 $base03 $base01
|
|
#client.unfocused $base01 $base00 $base05 $base01 $base01
|
|
#client.urgent $base08 $base08 $base00 $base08 $base08
|
|
#client.placeholder $base00 $base00 $base05 $base00 $base00
|
|
#client.background $base07
|
|
|
|
# disable system tray
|
|
# bar {
|
|
# tray_output none
|
|
# }
|
|
|
|
# focus windows using only keyboard
|
|
focus_follows_mouse no
|
|
|
|
# set cursor theme and size
|
|
#seat seat0 xcursor_theme Simple-and-soft 24
|
|
#seat seat0 xcursor_theme Adwaita 12
|
|
|
|
#hide mouse cursor. Either after msec of inactivity or whenever typing
|
|
#seat seat0 hide_cursor 2000
|
|
# seat seat0 hide_cursor when-typing enable
|
|
|
|
#Can use the following with custom workspace save files to reload layouts
|
|
#exec --no-startup-id "i3-msg 'workspace 1; append_layout ~/.config/i3/workspace-1.json'"
|
|
|
|
include /etc/sway/config.d/*
|
|
# exec xrdb -load ~/.Xresources
|
|
# exec mako
|
|
#exec dunst
|
|
#exec_always "systemctl --user import-environment; systemctl --user start sway-session.target"
|