modify i3wm config, add more custom stuff to polybar MacAir7,2

This commit is contained in:
toniiz
2024-07-24 23:32:33 -07:00
parent 483f1dc083
commit e28a37efd3
5 changed files with 137 additions and 17 deletions

View File

@@ -4,6 +4,11 @@ set $mod Mod4
# is used in the bar {} block below.
font pango:Maple Mono NF 8
# Monitors
set $pm eDP-1
set $sm HDMI-1
set $dm DP-1
# Start autotiling
exec_always --no-startup-id autotiling
@@ -125,6 +130,30 @@ bindsym $mod+a focus parent
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
# Monitor eDP1 (Internal Display)
workspace 1 output $pm
workspace 2 output $pm
workspace 3 output $pm
workspace 4 output $pm
workspace 5 output $pm
workspace 6 output $pm
workspace 7 output $pm
workspace 8 output $pm
workspace 9 output $pm
workspace 10 output $pm
# Monitor DP-1 (External DP Cable Only)
workspace 11 output $dm
workspace 12 output $dm
workspace 13 output $dm
workspace 14 output $dm
workspace 15 output $dm
workspace 16 output $dm
workspace 17 output $dm
workspace 18 output $dm
workspace 19 output $dm
workspace 20 output $dm
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
@@ -136,7 +165,18 @@ set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
# switch to workspace
set $ws11 "11"
set $ws12 "12"
set $ws13 "13"
set $ws14 "14"
set $ws15 "15"
set $ws16 "16"
set $ws17 "17"
set $ws18 "18"
set $ws19 "19"
set $ws20 "20"
# switch to workspace (Internal Display)
bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3
@@ -148,7 +188,20 @@ bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10
# move focused container to workspace
# DP-1 Display
bindsym Mod1+1 workspace number $ws11
bindsym Mod1+2 workspace number $ws12
bindsym Mod1+3 workspace number $ws13
bindsym Mod1+4 workspace number $ws14
bindsym Mod1+5 workspace number $ws15
bindsym Mod1+6 workspace number $ws16
bindsym Mod1+7 workspace number $ws17
bindsym Mod1+8 workspace number $ws18
bindsym Mod1+9 workspace number $ws19
bindsym Mod1+0 workspace number $ws20
# move focused container to workspace (Internal Display)
bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3
@@ -160,6 +213,18 @@ bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10
# move focused container to workspace (DP-1 Display)
bindsym Mod1+Shift+1 move container to workspace number $ws11
bindsym Mod1+Shift+2 move container to workspace number $ws12
bindsym Mod1+Shift+3 move container to workspace number $ws13
bindsym Mod1+Shift+4 move container to workspace number $ws14
bindsym Mod1+Shift+5 move container to workspace number $ws15
bindsym Mod1+Shift+6 move container to workspace number $ws16
bindsym Mod1+Shift+7 move container to workspace number $ws17
bindsym Mod1+Shift+8 move container to workspace number $ws18
bindsym Mod1+Shift+9 move container to workspace number $ws19
bindsym Mod1+Shift+0 move container to workspace number $ws20
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)

View File

@@ -0,0 +1 @@
# Display Port

View File

@@ -0,0 +1,46 @@
# Monitor HDMI-1 (External HDMI Cable only)
workspace 11 output $sm
workspace 12 output $sm
workspace 13 output $sm
workspace 14 output $sm
workspace 15 output $sm
workspace 16 output $sm
workspace 17 output $sm
workspace 18 output $sm
workspace 19 output $sm
workspace 20 output $sm
set $ws11 "11"
set $ws12 "12"
set $ws13 "13"
set $ws14 "14"
set $ws15 "15"
set $ws16 "16"
set $ws17 "17"
set $ws18 "18"
set $ws19 "19"
set $ws20 "20"
bindsym Mod1+1 workspace number $ws11
bindsym Mod1+2 workspace number $ws12
bindsym Mod1+3 workspace number $ws13
bindsym Mod1+4 workspace number $ws14
bindsym Mod1+5 workspace number $ws15
bindsym Mod1+6 workspace number $ws16
bindsym Mod1+7 workspace number $ws17
bindsym Mod1+8 workspace number $ws18
bindsym Mod1+9 workspace number $ws19
bindsym Mod1+0 workspace number $ws20
# move focused container to workspace (HDMI-1 Display)
bindsym Mod1+Shift+1 move container to workspace number $ws11
bindsym Mod1+Shift+2 move container to workspace number $ws12
bindsym Mod1+Shift+3 move container to workspace number $ws13
bindsym Mod1+Shift+4 move container to workspace number $ws14
bindsym Mod1+Shift+5 move container to workspace number $ws15
bindsym Mod1+Shift+6 move container to workspace number $ws16
bindsym Mod1+Shift+7 move container to workspace number $ws17
bindsym Mod1+Shift+8 move container to workspace number $ws18
bindsym Mod1+Shift+9 move container to workspace number $ws19
bindsym Mod1+Shift+0 move container to workspace number $ws20

View File

@@ -21,8 +21,9 @@ white = #FFFFFF
;------------------------------------------------------------------------
[bar/barra1]
[bar/main]
#width = 98.8%
monitor = eDP-1
width = 100%
height = 24pt
radius = 10
@@ -33,7 +34,7 @@ dpi = 95
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3pt
border-size = 2pt
border-size = 1pt
border-color = ${colors.secondary}
padding-left = 2
padding-right = 2
@@ -43,8 +44,8 @@ separator-foreground = ${colors.white}
font-0 = "Iosevka Nerd Font:style=Medium:size=13;2"
modules-left = i3 Space backlight pulseaudio Space
modules-right = battery memory temp cpu power_menu
modules-left = i3 backlight
modules-right = systray pulseaudio battery memory temp cpu power_menu
modules-center = date
cursor-click = pointer
cursor-scroll = ns-resize
@@ -54,6 +55,11 @@ override-redirect = false
;------------------------------------------------------------------------
[module/systray]
type = internal/tray
format-margin = 8pt
tray-spacing = 6pt
[module/i3]
type = internal/i3
show-urgent = true
@@ -62,14 +68,16 @@ enable-click = true
fuzzy-match = true
pin-workspaces = true
ws-icon-0 = 1;
ws-icon-1 = 2;
ws-icon-2 = 3;
ws-icon-3 = 4;
ws-icon-4 = 5;
ws-icon-5 = 6;
ws-icon-6 = 7;
ws-icon-7 = 8;
ws-icon-0 = 1;1
ws-icon-1 = 2;2
ws-icon-2 = 3;3
ws-icon-3 = 4;4
ws-icon-4 = 5;5
ws-icon-5 = 6;6
ws-icon-6 = 7;7
ws-icon-7 = 8;8
ws-icon-8 = 9;9
ws-icon-9 = 10;10
format = <label-state> <label-mode>
label-mode = %mode%

View File

@@ -8,7 +8,7 @@ polybar-msg cmd quit
# Launch bar1 and bar2
echo "---" | tee -a /tmp/polybar1.log # /tmp/polybar2.log
polybar barra1 2>&1 | tee -a /tmp/polybar1.log & disown
# polybar bar2 2>&1 | tee -a /tmp/polybar2.log & disown
polybar main 2>&1 | tee -a /tmp/polybar1.log & disown
#polybar secondary 2>&1 | tee -a /tmp/polybar2.log & disown
echo "Bars launched..."
#echo "Bars launched..."