mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
update i3
This commit is contained in:
parent
a9b3406ffd
commit
92d7361472
1 changed files with 37 additions and 22 deletions
59
i3/config
59
i3/config
|
|
@ -18,14 +18,16 @@ set_from_resource $color_magenta i3wm.color5 #F5C2E7
|
|||
set_from_resource $color_gray0 i3wm.colorGray0 #383a43
|
||||
set_from_resource $color_gray1 i3wm.colorGray1 #404754
|
||||
|
||||
set_from_resource $color_win_focus_fg i3wm.foreground #f1f1f1
|
||||
set_from_resource $color_win_focus_bg i3wm.colorGray1 #131521
|
||||
set_from_resource $color_win_unfocus_fg i3wm.foreground #f1f1f1
|
||||
set_from_resource $color_win_unfocus_bg i3wm.colorGray0 #0E1019
|
||||
set_from_resource $color_win_urgent_fg i3wm.foreground #f1f1f1
|
||||
set_from_resource $color_win_focus_fg i3wm.foreground #eceef4
|
||||
set_from_resource $color_win_focus_bg i3wm.colorGray1 #1a1c2d
|
||||
set_from_resource $color_win_unfocus_fg i3wm.foreground #eceef4
|
||||
set_from_resource $color_win_unfocus_bg i3wm.colorGray0 #1a1c2d
|
||||
set_from_resource $color_win_urgent_fg i3wm.foreground #eceef4
|
||||
set_from_resource $color_win_urgent_bg i3wm.color1 #cc817f
|
||||
|
||||
set_from_resource $color_border i3wm.colorOverlay0 #131521
|
||||
set_from_resource $color_border i3wm.colorOverlay0 #1a1c2d
|
||||
|
||||
set $background_image /usr/share/backgrounds/majestic-mountain-peak-reflected-flowing-blue-water-generative-ai.jpg
|
||||
|
||||
set $mod Mod4
|
||||
set $super Shift
|
||||
|
|
@ -40,14 +42,23 @@ set $ws7 "7"
|
|||
set $ws8 "8"
|
||||
set $ws9 "9"
|
||||
|
||||
#set $second_monitor eDP-1
|
||||
set $second_monitor HDMI-0
|
||||
|
||||
## Startup programs
|
||||
|
||||
# Needed for gnome-keyring to start.
|
||||
exec --no-startup-id dbus-update-activation-environment --all
|
||||
#exec --no-startup-id gnome-keyring-daemon --start --components=secrets
|
||||
|
||||
|
||||
exec --no-startup-id dex-autostart --autostart --environment i3
|
||||
exec --no-startup-id feh --bg-scale $background_image
|
||||
#exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock -c $color_bg --nofork
|
||||
#exec --no-startup-id xautolock -time 1 -locker ~/.config/i3/blurlock.sh
|
||||
#exec --no-startup-id xset dpms 300 # Turn of monitors after 5 min
|
||||
#exec --no-startup-id nm-applet
|
||||
#exec --no-startup-id telegram
|
||||
exec --no-startup-id firefox
|
||||
|
||||
## Config
|
||||
|
||||
|
|
@ -125,13 +136,13 @@ workspace $ws2 output primary
|
|||
workspace $ws3 output primary
|
||||
workspace $ws4 output primary
|
||||
workspace $ws5 output primary
|
||||
#for second screen
|
||||
#workspace $ws6 output $second_monitor gaps inner 0
|
||||
workspace $ws6 output primary
|
||||
workspace $ws7 output primary
|
||||
workspace $ws8 output primary
|
||||
workspace $ws9 output primary
|
||||
|
||||
#for second screen
|
||||
workspace $ws9 output $second_monitor gaps inner 0
|
||||
#workspace $ws9 output primary
|
||||
|
||||
# switch to workspace
|
||||
bindsym $mod+1 workspace number $ws1
|
||||
|
|
@ -165,10 +176,9 @@ bindsym $mod+$super+e exec "i3-nagbar -t warning -m 'You pressed the exit shortc
|
|||
|
||||
# Assignments
|
||||
|
||||
assign [class="^Vivaldi"] $ws2
|
||||
assign [window_role="browser"] $ws2
|
||||
assign [class="^Code$"] $ws3
|
||||
assign [class="^Telegram"] $ws6
|
||||
|
||||
assign [class="^Telegram"] $ws9
|
||||
|
||||
for_window [window_role="pop-up"] floating enable
|
||||
for_window [window_role="bubble"] floating enable
|
||||
|
|
@ -176,6 +186,7 @@ for_window [window_role="task_dialog"] floating enable
|
|||
for_window [window_role="Preferences"] floating enable
|
||||
for_window [window_type="dialog"] floating enable
|
||||
for_window [window_type="menu"] floating enable
|
||||
for_window [class="nm-connection-editor"] floating enable
|
||||
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
|
|
@ -209,17 +220,21 @@ mode "resize" {
|
|||
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
default_border pixel 1
|
||||
# No border. I do borders with compositor instead
|
||||
default_border none
|
||||
|
||||
# but i do want them on floating windows.
|
||||
default_floating_border normal
|
||||
|
||||
# COLORS
|
||||
|
||||
client.background $color_bg
|
||||
|
||||
# class border bground text indicator child_border
|
||||
client.focused $color_win_focus_bg $color_win_focus_bg $color_win_focus_fg $color_win_focus_bg $color_border
|
||||
client.focused_inactive $color_win_unfocus_bg $color_win_unfocus_bg $color_win_unfocus_fg $color_win_unfocus_bg $color_border
|
||||
client.unfocused $color_win_unfocus_bg $color_win_unfocus_bg $color_win_unfocus_fg $color_win_unfocus_bg $color_border
|
||||
client.urgent $color_win_urgent_bg $color_win_urgent_bg $color_win_urgent_fg $color_win_urgent_bg $color_border
|
||||
client.focused $color_border $color_win_focus_bg $color_win_focus_fg $color_win_focus_bg $color_border
|
||||
client.focused_inactive $color_border $color_win_unfocus_bg $color_win_unfocus_fg $color_win_unfocus_bg $color_border
|
||||
client.unfocused $color_border $color_win_unfocus_bg $color_win_unfocus_fg $color_win_unfocus_bg $color_border
|
||||
client.urgent $color_border $color_win_urgent_bg $color_win_urgent_fg $color_win_urgent_bg $color_border
|
||||
client.placeholder $color_bg $color_bg $color_fg $color_bg $color_bg
|
||||
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||
|
|
@ -228,8 +243,8 @@ bar {
|
|||
output primary
|
||||
status_command i3status
|
||||
separator_symbol " | "
|
||||
padding 0 0
|
||||
tray_padding 4
|
||||
padding 0 8 0 0
|
||||
tray_padding 6
|
||||
|
||||
# font pango:DejaVu Sans Mono, FontAwesome 12
|
||||
font pango:JetBrainsMono NF SemiBold 14
|
||||
|
|
@ -239,8 +254,8 @@ bar {
|
|||
|
||||
colors {
|
||||
background $color_bg
|
||||
statusline $color_white
|
||||
separator $color_white
|
||||
statusline $color_fg
|
||||
separator $color_fg
|
||||
|
||||
focused_workspace $color_blue $color_blue $color_bg
|
||||
active_workspace $color_yellow $color_yellow $color_bg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue