2020-09-14 10:18:35 +02:00
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
# Variables
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
set $mod Mod4
|
|
|
|
|
|
|
|
|
|
set $color_bg_focused #1f222d
|
|
|
|
|
set $color_bg_unfocused #252936
|
|
|
|
|
set $color_fg_unfocused #7780a1
|
|
|
|
|
set $color_fg_focused #ffffff
|
|
|
|
|
set $color_indicator #fcc09e
|
|
|
|
|
|
|
|
|
|
set $color_red #ff5400
|
|
|
|
|
set $color_yellow #ffd400
|
|
|
|
|
set $color_green #a8ff00
|
|
|
|
|
set $color_blue #5ac8fa
|
|
|
|
|
|
|
|
|
|
set $font Roboto Regular 14
|
|
|
|
|
|
2020-09-14 12:40:03 +02:00
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
# Inputs
|
|
|
|
|
# ------------------------------------------------------------------------------
|
2020-09-14 10:18:35 +02:00
|
|
|
|
input * {
|
2020-09-14 12:40:03 +02:00
|
|
|
|
xkb_layout "de,us"
|
|
|
|
|
xkb_variant "nodeadkeys,"
|
|
|
|
|
xkb_options grp:win_space_toggle
|
2020-09-14 10:18:35 +02:00
|
|
|
|
}
|
|
|
|
|
|
2020-09-14 12:40:03 +02:00
|
|
|
|
input 9456:311:Metadot_-_Das_Keyboard_Das_Keyboard_Model_S xkb_model "pc105"
|
|
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
# Outputs
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
output eDP-1 pos 0 0 res 3840x2400 scale 2
|
|
|
|
|
output DP-3 pos 1920 0 res 1920x120
|
2020-09-14 15:53:25 +02:00
|
|
|
|
|
2020-09-14 12:40:03 +02:00
|
|
|
|
output * bg /usr/share/backgrounds/custom/mountain.jpg fill
|
2020-09-14 10:18:35 +02:00
|
|
|
|
|
2020-09-14 15:53:25 +02:00
|
|
|
|
bindswitch --reload --locked lid:on output eDP-1 disable
|
|
|
|
|
bindswitch --reload --locked lid:off output eDP-1 enable
|
|
|
|
|
|
2020-09-14 10:18:35 +02:00
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
# Font
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
font pango:$font
|
|
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
# Launcher
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
bindsym $mod+d exec --no-startup-id rofi -show drun
|
|
|
|
|
bindsym $mod+x exec --no-startup-id rofi -show run
|
|
|
|
|
bindsym $mod+y exec --no-startup-id rofi -show window
|
|
|
|
|
bindsym $mod+o exec --no-startup-id rofi-pass
|
|
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
# Window management
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
# terminate the active window
|
|
|
|
|
bindsym $mod+Shift+q kill
|
|
|
|
|
|
|
|
|
|
# floating modifier
|
|
|
|
|
floating_modifier $mod
|
|
|
|
|
|
|
|
|
|
# change focus
|
|
|
|
|
bindsym $mod+j focus left
|
|
|
|
|
bindsym $mod+k focus down
|
|
|
|
|
bindsym $mod+l focus up
|
|
|
|
|
bindsym $mod+odiaeresis focus right
|
|
|
|
|
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+odiaeresis move right
|
|
|
|
|
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+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
|
|
|
|
|
|
|
|
|
|
# focus the child container
|
|
|
|
|
#bindsym $mod+d focus child
|
|
|
|
|
|
|
|
|
|
# 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’s width.
|
|
|
|
|
# Pressing right will grow the window’s width.
|
|
|
|
|
# Pressing up will shrink the window’s height.
|
|
|
|
|
# Pressing down will grow the window’s 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 odiaeresis 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
|
|
|
|
|
bindsym Return mode "default"
|
|
|
|
|
bindsym Escape mode "default"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bindsym $mod+r mode "resize"
|
|
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
# Workspaces
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
set $workspace1 "1"
|
|
|
|
|
set $workspace2 "2"
|
|
|
|
|
set $workspace3 "3"
|
|
|
|
|
set $workspace4 "4"
|
|
|
|
|
set $workspace5 "5"
|
|
|
|
|
set $workspace6 "6"
|
|
|
|
|
set $workspace7 "7…"
|
|
|
|
|
|
|
|
|
|
# switch to workspace
|
|
|
|
|
bindsym $mod+1 workspace $workspace1
|
|
|
|
|
bindsym $mod+2 workspace $workspace2
|
|
|
|
|
bindsym $mod+3 workspace $workspace3
|
|
|
|
|
bindsym $mod+4 workspace $workspace4
|
|
|
|
|
bindsym $mod+5 workspace $workspace5
|
|
|
|
|
bindsym $mod+6 workspace $workspace6
|
|
|
|
|
bindsym $mod+7 workspace $workspace7
|
|
|
|
|
bindsym $mod+8 workspace 8
|
|
|
|
|
bindsym $mod+9 workspace 9
|
|
|
|
|
bindsym $mod+0 workspace 10
|
|
|
|
|
|
|
|
|
|
# move focused container to workspace
|
|
|
|
|
bindsym $mod+Shift+1 move container to workspace $workspace1
|
|
|
|
|
bindsym $mod+Shift+2 move container to workspace $workspace2
|
|
|
|
|
bindsym $mod+Shift+3 move container to workspace $workspace3
|
|
|
|
|
bindsym $mod+Shift+4 move container to workspace $workspace4
|
|
|
|
|
bindsym $mod+Shift+5 move container to workspace $workspace5
|
|
|
|
|
bindsym $mod+Shift+6 move container to workspace $workspace6
|
|
|
|
|
bindsym $mod+Shift+7 move container to workspace $workspace7
|
|
|
|
|
bindsym $mod+Shift+8 move container to workspace 8
|
|
|
|
|
bindsym $mod+Shift+9 move container to workspace 9
|
|
|
|
|
bindsym $mod+Shift+0 move container to workspace 10
|
|
|
|
|
|
|
|
|
|
# move current workspace to output
|
|
|
|
|
bindsym $mod+Mod1+Right move workspace to output right
|
|
|
|
|
bindsym $mod+Mod1+Left move workspace to output left
|
|
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
2020-09-14 11:40:38 +02:00
|
|
|
|
# sway management
|
2020-09-14 10:18:35 +02:00
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
# reload the configuration file
|
|
|
|
|
bindsym $mod+Shift+c reload
|
|
|
|
|
|
2020-09-14 11:40:38 +02:00
|
|
|
|
# exit sway (logs you out of your Wayland session)
|
|
|
|
|
bindsym $mod+Shift+e exec "swaynag -f 'pango:$font' -t warning -m 'sway beenden?' -b 'Ja' 'swaymsg exit'"
|
2020-09-14 10:18:35 +02:00
|
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
# Program shortcuts
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
bindsym $mod+Return exec --no-startup-id termite
|
|
|
|
|
bindsym $mod+c exec --no-startup-id firefox
|
|
|
|
|
bindsym $mod+t exec --no-startup-id thunderbird
|
|
|
|
|
bindsym $mod+g exec --no-startup-id code
|
|
|
|
|
bindsym XF86Explorer exec --no-startup-id thunar
|
|
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
# Audio shortcuts
|
|
|
|
|
# ------------------------------------------------------------------------------
|
2020-09-14 12:40:03 +02:00
|
|
|
|
set $audio_out alsa_output.pci-0000_00_1f.3.analog-stereo
|
|
|
|
|
set $audio_in alsa_input.pci-0000_00_1f.3.analog-stereo
|
2020-09-14 10:18:35 +02:00
|
|
|
|
|
|
|
|
|
bindsym XF86AudioRaiseVolume exec --no-startup-id "pactl set-sink-volume $audio_out +5%; pkill -RTMIN+10 i3blocks"
|
|
|
|
|
bindsym XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-volume $audio_out -5%; pkill -RTMIN+10 i3blocks"
|
|
|
|
|
bindsym XF86AudioMute exec --no-startup-id "pactl set-sink-mute $audio_out toggle; pkill -RTMIN+10 i3blocks"
|
|
|
|
|
bindsym XF86AudioMicMute exec --no-startup-id "pactl set-source-mute $audio_in toggle; pkill -RTMIN+10 i3blocks"
|
|
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
# Video shortcuts
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight +10
|
|
|
|
|
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -10
|
|
|
|
|
bindsym XF86Display exec --no-startup-id /usr/local/bin/monitor
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
# Assignment of progrmans to workspaces
|
|
|
|
|
# ------------------------------------------------------------------------------
|
2020-09-14 15:53:25 +02:00
|
|
|
|
assign [app_id="^termite$"] $workspace1
|
|
|
|
|
assign [class="^code-oss$"] $workspace2
|
|
|
|
|
assign [class="^jetbrains-idea$"] $workspace2
|
|
|
|
|
assign [class="^firefox$"] $workspace3
|
2020-09-14 10:18:35 +02:00
|
|
|
|
assign [class="^Thunderbird$"] $workspace4
|
2020-09-14 15:53:25 +02:00
|
|
|
|
assign [app_id="^thunar$"] $workspace5
|
|
|
|
|
assign [class="^Slack$"] 8
|
|
|
|
|
assign [class="^Microsoft Teams - Preview$"] 9
|
2020-09-14 10:18:35 +02:00
|
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
# Screenshot shortcuts
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
bindsym Print exec --no-startup-id scrot
|
|
|
|
|
bindsym Shift+Print exec --no-startup-id scrot -u
|
|
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
# Keyboard layout shortcut
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
bindsym XF86LaunchA exec --no-startup-id xkb-switch -n && pkill -SIGRTMIN+12 i3blocks
|
|
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
# WIFI shortcut
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
bindsym XF86WLAN exec --no-startup-id pkill -SIGRTMIN+12 i3blocks
|
|
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
# Lockscreen
|
|
|
|
|
# ------------------------------------------------------------------------------
|
2020-09-14 15:53:25 +02:00
|
|
|
|
exec --no-startup-id swayidle -w \
|
|
|
|
|
timeout 300 'swaylock -f' \
|
|
|
|
|
timeout 600 'swaymsg "output * dpms off"' \
|
|
|
|
|
resume 'swaymsg "output * dpms on"' \
|
|
|
|
|
before-sleep 'swaylock -f'
|
|
|
|
|
|
|
|
|
|
bindsym control+Mod1+l exec --no-startup-id swaylock
|
|
|
|
|
|
2020-09-14 10:18:35 +02:00
|
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
# Window theming
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
# border background text indicator
|
|
|
|
|
client.focused $color_bg_focused $color_bg_focused $color_fg_focused $color_bg_focused
|
|
|
|
|
client.focused_inactive $color_bg_unfocused $color_bg_unfocused $color_fg_unfocused $color_bg_unfocused
|
|
|
|
|
client.unfocused $color_bg_unfocused $color_bg_unfocused $color_fg_unfocused $color_bg_unfocused
|
|
|
|
|
client.urgent $color_bg_unfocused $color_red $color_fg_focused $color_bg_unfocused
|
|
|
|
|
|
|
|
|
|
# do not display edge borders
|
|
|
|
|
hide_edge_borders both
|
|
|
|
|
|
|
|
|
|
# do not display a titlebar in tiled layout
|
|
|
|
|
default_border pixel 2
|
|
|
|
|
|
|
|
|
|
# gaps
|
|
|
|
|
gaps inner 10
|
|
|
|
|
# gaps outer -5
|
|
|
|
|
|
2020-09-14 11:40:38 +02:00
|
|
|
|
# applets
|
2020-09-14 12:40:03 +02:00
|
|
|
|
exec --no-startup-id nm-applet --indicator
|
2020-09-14 11:40:38 +02:00
|
|
|
|
|
2020-09-14 10:18:35 +02:00
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
# Workspace bar
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
bar {
|
|
|
|
|
font pango:$font
|
|
|
|
|
position top
|
|
|
|
|
strip_workspace_numbers yes
|
|
|
|
|
colors {
|
|
|
|
|
separator $color_fg_unfocused
|
|
|
|
|
background $color_bg_focused
|
|
|
|
|
# border background text
|
|
|
|
|
focused_workspace $color_bg_focused $color_bg_focused $color_fg_focused
|
|
|
|
|
active_workspace $color_bg_focused $color_bg_focused $color_fg_unfocused
|
|
|
|
|
inactive_workspace $color_bg_focused $color_bg_focused $color_fg_unfocused
|
|
|
|
|
urgent_workspace $color_bg_focused $color_bg_focused $color_red
|
|
|
|
|
}
|
2020-09-14 15:53:25 +02:00
|
|
|
|
|
|
|
|
|
#swaybar_command waybar
|
2020-09-14 11:40:38 +02:00
|
|
|
|
status_command i3blocks -c ~/.i3blocks.conf
|
2020-09-14 10:18:35 +02:00
|
|
|
|
}
|