225 lines
7.0 KiB
Plaintext
225 lines
7.0 KiB
Plaintext
# vim: ft=i3config
|
||
#
|
||
# 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 http://i3wm.org/docs/userguide.html for a complete reference!
|
||
|
||
set $mod Mod1
|
||
set $win Mod4
|
||
|
||
# Before i3 v4.8, we used to recommend this one as the default:
|
||
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
|
||
# The font above is very space-efficient, that is, it looks good, sharp and
|
||
# clear in small sizes. However, its unicode glyph coverage is limited, the old
|
||
# X core fonts rendering does not support right-to-left and this being a bitmap
|
||
# font, it doesn’t scale on retina/hidpi displays.
|
||
|
||
force_xinerama no
|
||
|
||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||
floating_modifier $mod
|
||
new_window pixel 2
|
||
new_float pixel 2
|
||
hide_edge_borders smart
|
||
focus_follows_mouse yes
|
||
|
||
# i3 gaps
|
||
# smart_borders on
|
||
# gaps inner 5
|
||
# gaps outer 5
|
||
|
||
# kill focused window
|
||
bindsym $mod+Shift+q kill
|
||
bindsym $mod+F4 kill
|
||
bindsym --whole-window $win+button1 kill
|
||
|
||
# change focus
|
||
bindsym $win+Left focus left
|
||
bindsym $win+Down focus down
|
||
bindsym $win+Up focus up
|
||
bindsym $win+Right focus right
|
||
|
||
# move focused window
|
||
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+t layout tabbed
|
||
bindsym $mod+e layout toggle split
|
||
bindsym $mod+o layout toggle
|
||
|
||
# toggle tiling / floating
|
||
bindsym $mod+space floating toggle
|
||
|
||
# change focus between tiling / floating windows
|
||
bindsym $mod+Shift+space focus mode_toggle
|
||
|
||
# focus the parent container
|
||
bindsym $mod+a focus parent
|
||
|
||
# focus the child container
|
||
bindsym $mod+z focus child
|
||
|
||
# border changing
|
||
bindsym $mod+b border toggle
|
||
|
||
# switch to workspace
|
||
bindsym $mod+Tab workspace back_and_forth
|
||
workspace_auto_back_and_forth yes
|
||
bindsym $mod+Right workspace next_on_output
|
||
bindsym $mod+Left workspace prev_on_output
|
||
bindsym $mod+1 workspace 1
|
||
bindsym $mod+2 workspace 2
|
||
bindsym $mod+3 workspace 3
|
||
bindsym $mod+4 workspace 4
|
||
bindsym $mod+5 workspace 5
|
||
bindsym $mod+6 workspace 6
|
||
bindsym $mod+7 workspace 7
|
||
bindsym $mod+8 workspace 8
|
||
bindsym $mod+9 workspace 9
|
||
bindsym $mod+0 workspace 10
|
||
bindsym $mod+minus workspace 11
|
||
bindsym $mod+equal workspace 12
|
||
|
||
# move focused container to workspace
|
||
bindsym $mod+Shift+1 move container to workspace 1
|
||
bindsym $mod+Shift+2 move container to workspace 2
|
||
bindsym $mod+Shift+3 move container to workspace 3
|
||
bindsym $mod+Shift+4 move container to workspace 4
|
||
bindsym $mod+Shift+5 move container to workspace 5
|
||
bindsym $mod+Shift+6 move container to workspace 6
|
||
bindsym $mod+Shift+7 move container to workspace 7
|
||
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
|
||
bindsym $mod+Shift+minus move container to workspace 11
|
||
bindsym $mod+Shift+equal move container to workspace 12
|
||
|
||
# focus output
|
||
bindsym $mod+Ctrl+Left focus output left
|
||
bindsym $mod+Ctrl+Right focus output right
|
||
bindsym $mod+Ctrl+Up focus output up
|
||
bindsym $mod+Ctrl+Down focus output down
|
||
|
||
# reload the configuration file
|
||
bindsym $mod+Shift+c exec "~/.config/i3/i3_build_conf.sh reload"
|
||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||
bindsym $mod+Shift+r exec "~/.config/i3/i3_build_conf.sh restart"
|
||
# exit i3 (logs you out of your X session)
|
||
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg 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’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 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+d mode "resize"
|
||
|
||
bindsym $mod+shift+w [floating title="Webex"] move scratchpad
|
||
|
||
for_window [class="KeePassXC"] floating enable
|
||
for_window [class="KeePassXC"] resize set 1024 768
|
||
|
||
exec --no-startup-id "/usr/bin/dunst"
|
||
exec --no-startup-id "/usr/bin/enpass"
|
||
exec --no-startup-id "/usr/bin/nm-applet"
|
||
exec --no-startup-id "/usr/bin/udiskie -t"
|
||
exec --no-startup-id "/usr/bin/xfce4-power-manager"
|
||
exec --no-startup-id "solaar -w hide"
|
||
|
||
exec_always --no-startup-id "setxkbmap -layout us -variant altgr-intl"
|
||
|
||
# fn keys
|
||
bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 2%- && pkill -SIGRTMIN+10 i3blocks
|
||
bindsym XF86AudioRaiseVolume exec amixer -D pulse sset Master 2%+ && pkill -SIGRTMIN+10 i3blocks
|
||
bindsym XF86AudioMute exec amixer -D pulse sset Master toggle && pkill -SIGRTMIN+10 i3blocks
|
||
|
||
# pip3 install spotify-cli-linux --user
|
||
bindsym XF86AudioStop exec notify-send "$(~/.local/bin/spotifycli --status)" && pkill -SIGRTMIN+11 i3blocks
|
||
bindsym XF86AudioPlay exec ~/.local/bin/spotifycli --playpause && pkill -SIGRTMIN+11 i3blocks
|
||
bindsym XF86AudioNext exec ~/.local/bin/spotifycli --next && pkill -SIGRTMIN+11 i3blocks
|
||
bindsym XF86AudioPrev exec ~/.local/bin/spotifycli --prev && pkill -SIGRTMIN+11 i3blocks
|
||
|
||
bindsym Ctrl+Shift+l exec --no-startup-id ~/.config/i3/scripts/i3lock_blur.sh
|
||
bindsym $mod+q exec ~/.config/i3/scripts/i3_exit.sh
|
||
|
||
|
||
#######
|
||
#THEME#
|
||
#######
|
||
|
||
# set primary gruvbox colorscheme colors
|
||
set $white #ffffff
|
||
set $bg #282828
|
||
set $gray #ddc7a1
|
||
set $darkgray #1d2021
|
||
set $red #ea6962
|
||
set $green #d8a657
|
||
set $yellow #dccdab
|
||
set $blue #7daea3
|
||
set $purple #d3869b
|
||
set $aqua #89b482
|
||
|
||
# font used by i3 for titles and bars
|
||
font pango:DejaVuSansM Nerd Font Propo Bold 9
|
||
|
||
bar {
|
||
position top
|
||
status_command i3blocks
|
||
tray_padding 5
|
||
#i3-min-version-check# height 30
|
||
colors {
|
||
# bar background color
|
||
background $bg
|
||
# text color used for blocks that do not have a color specified.
|
||
statusline $gray
|
||
# workspaces section
|
||
# border backgr. text
|
||
focused_workspace $aqua $aqua $darkgray
|
||
inactive_workspace $darkgray $darkgray $gray
|
||
active_workspace $darkgray $darkgray $gray
|
||
urgent_workspace $red $red $white
|
||
}
|
||
}
|
||
|
||
# class border|backgr|text|indicator
|
||
client.focused $aqua $aqua $darkgray $purple
|
||
client.focused_inactive $darkgray $darkgray $gray $purple
|
||
client.unfocused $darkgray $darkgray $gray $purple
|
||
client.urgent $red $red $white $red
|
||
|
||
|
||
# END BASE.CONFIG
|