[i3] Update i3 config

This commit is contained in:
reo6 2023-05-08 11:44:30 +03:00
parent 9e306955a8
commit a36d2ab52f

View file

@ -1,14 +1,3 @@
# 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 https://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font
@ -21,7 +10,7 @@ font pango:monospace 8
# Start XDG autostart .desktop files using dex. See also
# https://wiki.archlinux.org/index.php/XDG_Autostart
exec --no-startup-id dex --autostart --environment i3
exec --no-startup-id dex-autostart --autostart --environment i3
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
# they are included here as an example. Modify as you see fit.
@ -30,16 +19,8 @@ exec --no-startup-id dex --autostart --environment i3
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
exec --no-startup-id nm-applet
exec --no-startup-id dunst
# CUSTOM AUTOSTART
exec --no-startup-id feh --bg-scale /home/reo/Pictures/wallpapers/default.png
exec --no-startup-id /usr/bin/emacs --daemon
exec --no-startup-id feh --bg-scale /home/reo/.wallpaper
exec --no-startup-id xinput set-prop "ELAN0709:00 04F3:30A0 Touchpad" "libinput Tapping Enabled" 1
exec --no-startup-id xinput set-prop "ELAN0709:00 04F3:30A0 Touchpad" "libinput Natural Scrolling Enabled" 1
@ -60,23 +41,17 @@ floating_modifier $mod
# start a terminal
bindsym $mod+Return exec alacritty
# Start emacs
bindsym $mod+m exec emacsclient -c -a 'emacs'
# Start firefox
bindsym $mod+f exec firefox
bindsym --release $mod+s exec scrot -s -e 'xclip -selection clipboard -t image/png -i $f'
bindsym $mod+Shift+p exec scrcpy
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec --no-startup-id dmenu_run
# A more modern dmenu replacement is rofi:
# bindcode $mod+40 exec "rofi -modi drun,run -show drun"
# There also is i3-dmenu-desktop which only displays applications shipping a
# .desktop file. It is a wrapper around dmenu, so you need that installed.
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
#bindsym $mod+d exec --no-startup-id "dmenu_run -nf '#BBBBBB' -nb '#222222' -sb '#005577' -sf '#EEEEEE' -fn 'monospace-10'"
bindsym $mod+d exec --no-startup-id "/home/reo/.config/polybar/grayblocks/scripts/launcher.sh"
# change focus
bindsym $mod+h focus left
@ -103,19 +78,23 @@ bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+z split h
bindsym $mod+Shift+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
bindsym $mod+Shift+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+Control+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# Emacs
exec --no-startup-id /usr/bin/emacs --daemon
bindsym $mod+m exec emacsclient -c -a 'emacs'
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
@ -170,8 +149,8 @@ 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 "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 sh /home/reo/.config/rofi/powermenu/type-6/powermenu.sh
#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'"
bindsym $mod+Shift+e exec "/home/reo/.config/polybar/grayblocks/scripts/powermenu.sh"
# resize window (you can also use the mouse for that)
mode "resize" {
@ -199,21 +178,40 @@ mode "resize" {
}
bindsym $mod+r mode "resize"
## WINDOW STYLES
# No title and border
for_window [class="^.*"] border pixel 0
#Gaps
gaps inner 20
gaps outer 1
gaps inner 10
gaps outer 5
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
# class border bground text indicator child_border
client.focused #83CAFA #51A2DA #FFFFFF #83CAFA #51A2DA
client.focused_inactive #8C8C8C #4C4C4C #FFFFFF #4C4C4C #8C8C8C
client.unfocused #4C4C4C #222222 #888888 #292D2E #222222
client.urgent #EC69A0 #DB3279 #FFFFFF #DB3279 #DB3279
client.placeholder #000000 #0C0C0C #FFFFFF #000000 #0C0C0C
#exec --no-startup-id sh $HOME/.config/polybar/launch.sh --forest
client.background #FFFFFF
bar {
status_command i3status
}
exec --no-startup-id /home/reo/.config/polybar/launch.sh --grayblocks
# Pywal
set_from_resource $fg i3wm.color7 #f0f0f1
set_from_resource $bg i3wm.color8 #f0f0f0
# class border backgr. text indicator child_border
client.focused $bg $bg $fg $bg $bg
client.focused_inactive $bg $bg $fg $bg $bg
client.unfocused $bg $bg $fg $bg $bg
client.urgent $bg $bg $fg $bg $bg
client.placeholder $bg $bg $fg $bg $bg
client.background $bg
bindsym $mod+Shift+s sticky toggle
for_window [class="Firefox"] title_format "Mozilla Firefox"
focus_follows_mouse yes
# xset key hold speed
exec --no-startup-id "xset r rate 350 30"