155 lines
4.6 KiB
Plaintext
155 lines
4.6 KiB
Plaintext
set $mod Mod4
|
|
font pango: Product Sans 11
|
|
|
|
# locking
|
|
bindsym $mod+Ctrl+BackSpace exec --no-startup-id "lock.sh"
|
|
|
|
# Use Mouse+$mod to drag floating windows to their wanted position
|
|
floating_modifier $mod
|
|
|
|
workspace_layout stacking
|
|
|
|
### keybinds for starting
|
|
bindsym $mod+Return exec --no-startup-id "alacritty"
|
|
bindsym $mod+d exec --no-startup-id "dmenu_run"
|
|
bindsym $mod+Shift+s exec --no-startup-id "flameshot gui"
|
|
|
|
### keybinds for moving windows
|
|
bindsym $mod+Shift+BackSpace kill
|
|
|
|
# change focus
|
|
bindsym $mod+h focus left
|
|
bindsym $mod+j focus down
|
|
bindsym $mod+k focus up
|
|
bindsym $mod+l focus right
|
|
|
|
# move focused window
|
|
bindsym $mod+Shift+h move left
|
|
bindsym $mod+Shift+j move down
|
|
bindsym $mod+Shift+k move up
|
|
bindsym $mod+Shift+l move right
|
|
|
|
# enter fullscreen mode for the focused container
|
|
bindsym $mod+f fullscreen toggle
|
|
|
|
# sticky
|
|
bindsym $mod+s sticky toggle
|
|
|
|
# change container layout (stacked, tabbed, toggle split)
|
|
bindsym $mod+Tab layout toggle stacked split
|
|
|
|
# toggle tiling / floating
|
|
bindsym $mod+Shift+space floating toggle
|
|
|
|
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 number $ws1
|
|
bindsym $mod+2 workspace number $ws2
|
|
bindsym $mod+3 workspace number $ws3
|
|
bindsym $mod+4 workspace number $ws4
|
|
bindsym $mod+5 workspace number $ws5
|
|
bindsym $mod+6 workspace number $ws6
|
|
bindsym $mod+7 workspace number $ws7
|
|
bindsym $mod+8 workspace number $ws8
|
|
bindsym $mod+9 workspace number $ws9
|
|
bindsym $mod+0 workspace number $ws10
|
|
|
|
# move focused container to workspace
|
|
bindsym $mod+Shift+1 move container to workspace number $ws1
|
|
bindsym $mod+Shift+2 move container to workspace number $ws2
|
|
bindsym $mod+Shift+3 move container to workspace number $ws3
|
|
bindsym $mod+Shift+4 move container to workspace number $ws4
|
|
bindsym $mod+Shift+5 move container to workspace number $ws5
|
|
bindsym $mod+Shift+6 move container to workspace number $ws6
|
|
bindsym $mod+Shift+7 move container to workspace number $ws7
|
|
bindsym $mod+Shift+8 move container to workspace number $ws8
|
|
bindsym $mod+Shift+9 move container to workspace number $ws9
|
|
bindsym $mod+Shift+0 move container to workspace number $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
|
|
|
|
# audio and display control
|
|
bindsym XF86AudioMute exec --no-startup-id amixer -q set Master toggle
|
|
bindsym XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-volume @DEFAULT_SINK@ -2%"
|
|
bindsym XF86AudioRaiseVolume exec --no-startup-id "pactl set-sink-volume @DEFAULT_SINK@ +2%"
|
|
bindsym XF86MonBrightnessUp exec --no-startup-id light -A 5 # increase screen brightness
|
|
bindsym XF86MonBrightnessDown exec --no-startup-id light -U 5 # decrease screen brightness
|
|
|
|
# styling
|
|
default_border normal
|
|
title_align center
|
|
hide_edge_borders smart
|
|
|
|
gaps inner 10
|
|
|
|
#set $gruv_bg "#f2e5bc"
|
|
set $gruv_bg "#f9f5d7"
|
|
set $gruv_bg_1 "#fbf1c7"
|
|
#set $gruv_bg_1 "#f9f5d7"
|
|
set $gruv_fg "#282828"
|
|
#set $green "#98971a"
|
|
# actually aqua
|
|
set $green "#689d6a"
|
|
set $red "#cc242d"
|
|
set $light_red "#fb4934"
|
|
set $yellow "#d79921"
|
|
#set $yellow "#fabd2f"
|
|
|
|
# Start i3bar to display a workspace bar (plus the system information i3status
|
|
# finds out, if available)
|
|
bar {
|
|
status_command i3status
|
|
position top
|
|
separator_symbol " "
|
|
strip_workspace_numbers yes
|
|
tray_output primary
|
|
|
|
colors {
|
|
background $gruv_bg
|
|
statusline $gruv_fg
|
|
|
|
# equivalent to focused
|
|
focused_workspace $gruv_bg $green $gruv_fg
|
|
# equivalent to focused_inactive
|
|
active_workspace $grub_bg $yellow $gruv_fg
|
|
# equivalent to unfocused
|
|
inactive_workspace $gruv_bg $gruv_bg $gruv_fg
|
|
# equivalent to urgent
|
|
urgent_workspace $red $light_red $gruv_fg
|
|
# equivalent to urgent
|
|
binding_mode $red $light_red $gruv_fg
|
|
}
|
|
}
|
|
|
|
# gruvbox style window titles
|
|
# class border backgr. text indicator child_border
|
|
client.focused $green $green $gruv_fg $green $green
|
|
client.focused_inactive $yellow $yellow $gruv_fg $yellow $yellow
|
|
client.unfocused $gruv_bg_1 $gruv_bg_1 $gruv_fg $gruv_bg_1 $gruv_bg_1
|
|
client.urgent $red $light_red $gruv_fg $red $light_red
|
|
|
|
# startup
|
|
exec --no-startup-id $HOME/scripts/start_progs.sh
|
|
|
|
# set screens
|
|
exec --no-startup-id $HOME/.screenlayout/layout.sh
|
|
|
|
# set wallpaper
|
|
exec --no-startup-id $HOME/scripts/wallpaper.sh
|
|
|
|
# set keyboard
|
|
exec --no-startup-id "setxkbmap -layout eu"
|