update i3 config

Switch browser to qutebrowser, terminal to alacritty (copy-paste
from/to st with some other applications was broken).
Also some color changes, borders, etc.
This commit is contained in:
kageru 2020-06-02 11:06:26 +02:00
parent 3b3a0d58a7
commit 9e632f73b5
Signed by: kageru
GPG Key ID: 8282A2BEA4ADA3D2

View File

@ -32,7 +32,7 @@ bindsym XF86AudioNext exec mpc next
bind 191 exec amixer -D pulse sset Master 5%+; exec --no-startup-id notify-send "`amixer -c 1 -M -D pulse get Master| grep -o -E '[[:digit:]]+%' | uniq`" -t 300
bind 192 exec amixer -D pulse sset Master 5%-; exec --no-startup-id notify-send "`amixer -c 1 -M -D pulse get Master| grep -o -E '[[:digit:]]+%' | uniq`" -t 300
bindsym --whole-window button10 exec mpc toggle
bindsym --whole-window button15 exec mpc toggle
bindsym --whole-window button11 exec mpc next
bindsym XF86MonBrightnessUp exec xbacklight -inc 10; exec notify-send $(xbacklight -get) -t 300
bindsym XF86MonBrightnessDown exec xbacklight -dec 10; exec notify-send $(xbacklight -get) -t 300
@ -48,8 +48,8 @@ bindsym XF86AudioLowerVolume exec amixer -D pulse sset Master 5%-; exec --no-sta
# workspace_layout tabbed <stacking|tabbed>
# Configure border style <normal|1pixel|pixel xx|none|pixel>
new_window none
new_float pixel 1
new_window pixel 3
new_float pixel 3
#new_window pixel 1
#new_float normal
@ -58,19 +58,19 @@ hide_edge_borders none
# change borders
bindsym $mod+u border none
bindsym $mod+y border pixel 1
bindsym $mod+y border pixel 3
bindsym $mod+n border normal
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font xft:Noto Sans 10
font xft:Hack 10
# Use Mouse+$mod to drag floating windows
floating_modifier $mod
# start a terminal
#exec --no-startup-id urxvtd
bindsym $mod+Return exec st
bindsym $mod+Return exec alacritty
# kill focused window
bindsym $mod+Shift+q kill
@ -82,28 +82,25 @@ bindsym $mod+d exec --no-startup-id rofi -show run
## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ##
################################################################################################
#exec --no-startup-id volumeicon
#bindsym $mod+Ctrl+m exec terminal -e 'alsamixer'
exec --no-startup-id pulseaudio
exec --no-startup-id pa-applet
bindsym $mod+Ctrl+m exec pavucontrol
################################################################################################
# Start Applications
bindsym $mod+Ctrl+b exec terminal -e 'bmenu'
bindsym $mod+F2 exec chromium
bindsym $mod+F2 exec qutebrowser
#bindsym $mod+F2 exec firefox-nightly
#bindsym $mod+F3 exec cool-retro-term -e ranger
# these workarounds are necessary because I use base16 in zsh to set my terminal colors
bindsym $mod+F3 exec st -e zsh -ci ranger
bindsym $mod+F5 exec st -e zsh -ci ncmpcpp
bindsym $mod+t exec --no-startup-id pkill compton
bindsym $mod+Ctrl+t exec --no-startup-id compton -b
#bindsym $mod+F3 exec st -e zsh -ci ranger
#bindsym $mod+F5 exec st -e zsh -ci ncmpcpp
bindsym $mod+F3 exec alacritty -e ranger
bindsym $mod+F5 exec alacritty -e ncmpcpp
bindsym $mod+t exec --no-startup-id pkill picom
bindsym $mod+Ctrl+t exec --no-startup-id picom -b
bindsym $mod+Shift+d --release exec "killall dunst; exec notify-send 'restart dunst'"
bindsym Print exec --no-startup-id i3-scrot
bindsym $mod+Print --release exec --no-startup-id i3-scrot -w
bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s
#bindsym $mod+Shift+h exec xdg-open /usr/share/doc/manjaro/i3_help.pdf
bindsym $mod+Ctrl+x --release exec --no-startup-id xkill
# focus_follows_mouse no
@ -282,12 +279,17 @@ assign [class=".*discord.*"] $ws1
for_window [class="Pavucontrol"] floating enable
#for_window [class="(?i)virtualbox"] floating enable border normal
for_window [class="mpv"] floating enable
for_window [class="tModLoader.bin.x86_64"] floating enable
for_window [class="mono-sgen"] floating enable
for_window [class="feh"] floating enable
for_window [workspace=$ws12] floating enable
# switch to workspace with urgent window automatically
for_window [urgent=latest] none
#no_focus [class="Firefox"]
#no_focus [class="Nightly"]
no_focus [class="jetbrains-.*"]
no_focus [class=".*discord.*"]
# reload the configuration file
bindsym $mod+Shift+c reload
@ -346,7 +348,7 @@ bindsym $mod+9 exec --no-startup-id i3lock -i ~/Pictures/bg.png -ut
# Autostart applications
exec ~/bin/autostart
exec --no-startup-id compton -b
exec --no-startup-id picom -b
exec_always ~/bin/restart_polybar
# Color palette used for the terminal ( ~/.extend.Xresources file )
@ -395,11 +397,13 @@ set $i3_color4 #d8dee9
set $i3_color5 #e5e9f0
set $i3_color6 #eceff4
set $i3_color7 #8fbcbb
#set $i3_color8 #88c0d0
#set $i3_color9 #81a1c1
#set $i3_color10 #5e81ac
set $i3_color8 #aaaaaa
set $i3_color9 #999999
#set $i3_color8 #00ff66
#set $i3_color9 #22dd88
# split direction
set $i3_color8 #aa7934
# border
set $i3_color9 #d89a52
set $i3_color10 #666666
set $i3_color11 #bf616a
set $i3_color12 #d08770
@ -452,8 +456,8 @@ client.background $i3_background
#############################
# Set inner/outer gaps
gaps inner 0
gaps outer 0
gaps inner 15
gaps outer -5
# Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
# gaps inner|outer current|all set|plus|minus <px>
@ -461,7 +465,7 @@ gaps outer 0
# gaps outer all plus 5
# Smart gaps (gaps used if only more than one container on the workspace)
smart_gaps yes
#smart_gaps yes
# Smart borders (draw borders around container only if it is not the only container on this workspace)
# on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)