diff options
| author | Alec Goncharow <algo@cloudflare.com> | 2022-02-20 11:50:35 -0500 |
|---|---|---|
| committer | Alec Goncharow <algo@cloudflare.com> | 2022-02-20 11:50:35 -0500 |
| commit | f5abca7278f3ac0c7358e6f30db8a15da45a1e3b (patch) | |
| tree | 96889e1a2cc2367b8461414ae7c94d9050b84890 /.config/i3/config | |
| parent | 3e0c8208ccbead65cd434fe730223a7ab854c377 (diff) | |
| parent | 72cf398a6292fa56d57e82caa4d21570e5573294 (diff) | |
Merge branch 'desktop' of github.com:AlecGoncharow/dotfiles into desktop
Diffstat (limited to '.config/i3/config')
| -rw-r--r-- | .config/i3/config | 203 |
1 files changed, 114 insertions, 89 deletions
diff --git a/.config/i3/config b/.config/i3/config index 036f1b8..093d43d 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -13,34 +13,24 @@ set $mod Mod1 # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. -font pango:DeJa Vu Sans Mono 10 +font pango:JetBrains Mono 8 # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). #font pango:DejaVu Sans Mono 8 -# 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. - # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod # start a terminal -bindsym $mod+Return exec termite +set $myTerm alacritty +bindsym $mod+Return exec --no-startup-id $myTerm # kill focused window bindsym $mod+Shift+q kill # start dmenu (a program launcher) -#bindsym $mod+d exec dmenu_run -# There also is the (new) i3-dmenu-desktop which only displays applications -# shipping a .desktop file. It is a wrapper around dmenu, so you need that -# installed. -bindsym $mod+d exec --no-startup-id i3-dmenu-desktop --dmenu='rofi -dmenu -i' +bindsym $mod+d exec --no-startup-id ~/.config/rofi/bin/launcher_colorful # change focus bindsym $mod+h focus left @@ -66,13 +56,7 @@ bindsym $mod+Shift+l move right #bindsym $mod+Shift+Up move up #bindsym $mod+Shift+Right move right -# split in horizontal orientation -#bindsym $mod+Shift+v split h - -# split in vertical orientation -# bindsym $mod+v split v - -# toggle split +#Toggle split orientation bindsym $mod+v split toggle # enter fullscreen mode for the focused container @@ -95,6 +79,13 @@ bindsym $mod+a focus parent # focus the child container #bindsym $mod+d focus child +#navigate workspaces next / previous +bindsym Mod1+Tab workspace next +bindsym $mod+Ctrl+Right workspace next +bindsym $mod+Ctrl+Left workspace prev +bindsym $mod+Ctrl+l workspace next +bindsym $mod+Ctrl+h workspace prev + # 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" @@ -108,36 +99,47 @@ 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 +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 + +# Move focused container to workspace +bindsym $mod+Ctrl+1 move container to workspace $ws1 +bindsym $mod+Ctrl+2 move container to workspace $ws2 +bindsym $mod+Ctrl+3 move container to workspace $ws3 +bindsym $mod+Ctrl+4 move container to workspace $ws4 +bindsym $mod+Ctrl+5 move container to workspace $ws5 +bindsym $mod+Ctrl+6 move container to workspace $ws6 +bindsym $mod+Ctrl+7 move container to workspace $ws7 +bindsym $mod+Ctrl+8 move container to workspace $ws8 + +# Move to workspace with focused container +bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5 +bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6 +bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7 +bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8 + + # 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 i3 (logs you out of your X session) -bindsym $mod+Shift+e exec --no-startup-id "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'" +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" { @@ -167,31 +169,70 @@ mode "resize" { bindsym $mod+r mode "resize" mode "dota" { - bindsym $mod+o mode "default" + bindsym $mod+o mode "default" } bindsym $mod+o mode "dota" -# colors -# class border bground text indicator child_border -client.focused #000000 #125906 #FFFFFF #125906 #06770E -client.focused_inactive #333333 #5F676A #FFFFFF #484E50 #5F676A -client.unfocused #333333 #222222 #888888 #292D2E #222222 -client.urgent #2F343A #41DD18 #FFFFFF #39F923 #25FF03 -client.placeholder #000000 #0C0C0C #FFFFFF #000000 #0C0C0C +bindsym --release Caps_Lock exec pkill -SIGRTMIN+11 i3blocks +bindsym --release Num_Lock exec pkill -SIGRTMIN+11 i3blocks + +# Walpaper +# exec --no-startup-id feh --bg-fill ~/Pictures/wallpaper.png + +bindsym ctrl+Mod1+Tab exec --no-startup-id "xinput set-prop 'pointer:Logitech MX Master 2S' 'libinput Accel Speed' '-0.75' & /home/alec/.screenlayout/yes.sh & /home/alec/.nitrobg" + +exec --no-startup-id ~/.nitrobg +exec --no-startup-id autorandr dual + +#Picom +exec_always --no-startup-id picom --config ~/.config/picom/picom.conf + +#Polybar +#exec_always --no-startup-id ~/.config/polybar/launch.sh + +#Dunst +exec_always --no-startup-id dunst + +############################# +### settings for i3-gaps: ### +############################# + +# change inner gaps +bindsym $mod+plus gaps inner all plus 5 + +# decrease inner gap size +bindsym $mod+minus gaps inner all minus 5 -client.background #FFFFFF -# Start i3bar to display a workspace bar (plus the system information i3status -# finds out, if available) +# Theme colors +# Colors from Xresources +set $bg #00000000 +set_from_resource $fg color2 #f0f0f0 +set_from_resource $bg2 color4 #f0f0f0 +set_from_resource $fg2 color4 #f0f0f0 +set_from_resource $fg4 color5 #f0f0f0 +set_from_resource $bg3 color2 #f0f0f0 +set_from_resource $bg4 color6 #f0f0f0 +set_from_resource $bg5 color14 #f0f0f0 +set_from_resource $fg3 color7 #f0f0f0 + +#class border backgr. text indicator child_border +client.focused $bg $bg $fg $fg3 $bg +client.focused_inactive $bg $bg $fg $fg2 $bg +client.unfocused $bg $bg $fg $fg2 $bg +client.urgent $bg $bg $fg $fg4 $bg +client.placeholder $bg $bg $fg $fg2 $bg +client.background $bg + bar { status_command i3blocks #i3status # | python ~/.config/i3status/wrapper.py position top - font pango:DejaVu Sans Mono 10 + font pango:JetBrains Mono 10 colors { background #292929 - statusline #FFFFFF - separator #666666 + statusline #00FFFF + separator #FFFFFF focused_workspace #00FFFF #292929 #FFFFFF active_workspace #333333 #222222 #FFFFFF @@ -201,38 +242,22 @@ bar { } } -# alt tabbing for workspaces -bindsym Mod1+Tab workspace next -bindsym Mod1+Shift+Tab workspace prev - -# win + l opens i3lock -bindsym XF86PowerOff exec --no-startup-id "i3lock -i /home/alec/Downloads/notabug2.png" - -# fix mouse pointer speed -bindsym ctrl+Mod1+Tab exec --no-startup-id "xinput set-prop 'pointer:Logitech MX Master 2S' 'libinput Accel Speed' '-0.75' & /home/alec/.screenlayout/yes.sh & /home/alec/.nitrobg" - -# jump to urgent window -bindsym $mod+x [urgent=latest] focus - -# brightness controls -bindsym F5 exec --no-startup-id "/home/alec/.config/i3/brightness.py -d 5 && pkill -SIGRTMIN+12 i3blocks && pause 1" -bindsym F6 exec --no-startup-id "/home/alec/.config/i3/brightness.py -i 5 && pkill -SIGRTMIN+12 i3blocks" - -# volume controls -bindsym XF86AudioLowerVolume exec --no-startup-id "amixer set Master 5%- unmute && pkill -SIGRTMIN+10 i3blocks" -bindsym XF86AudioRaiseVolume exec --no-startup-id "amixer set Master 5%+ unmute && pkill -SIGRTMIN+10 i3blocks" -bindsym XF86AudioMute exec --no-startup-id "amixer set Master toggle && pkill -SIGRTMIN+10 i3blocks" - -# key indicator trigger -bindsym --release Caps_Lock exec --no-startup-id pkill -SIGRTMIN+11 i3blocks -bindsym --release Num_Lock exec --no-startup-id pkill -SIGRTMIN+11 i3blocks - -# home key combinations -#bindsym Mod1 + Left exec --no-startup-id "xdotool key Home" - -# gaps stuff +# Hide title for_window [class="^.*"] border pixel 0 + +# Set inner/outer gaps smart_gaps on smart_borders on -gaps outer -5 gaps inner 15 +gaps outer -5 +# +#exec_always --no-startup-id ~/.screenlayout/yes.sh +#exec_always --no-startup-id ~/.nitrobg +# exec_always --no-startup-id xrandr --output DP-1 --primary --mode 2560x1440 --pos 1920x1080 --rotate normal --output DP-2 --off --output DP-3 --off --output HDMI-1 --mode 1920x1080 --pos 960x0 --rotate normal --output DVI-D-1 --mode 1920x1080 --pos 0x1080 --rotate normal + +workspace 1 output DP-2 +workspace 2 output DP-4 + +# exec_always --no-startup-id xrandr --output DP-4 --scale 0.75 --left-of DP-2 --output DP-2 --primary +# screenshot +bindsym --release Print exec import ~/screenshot.png |
