update i3 conf

This commit is contained in:
Jeff Lance 2023-05-05 21:14:47 +02:00
parent 19526c9931
commit 3362107fc1
4 changed files with 186 additions and 25 deletions

View File

@ -27,7 +27,7 @@ set_from_resource $color15 color15
# My colors
client.background $background
client.focused $foreground $background $foreground $color2 $color2
client.focused $foreground $background $foreground #e60053 #e60053
client.unfocused $foreground $background $foreground $color4 $color4
client.focused_inactive $foreground $background $foreground $color4 $color4
client.urgent $foreground $background $foreground $color4 $color4

View File

@ -20,7 +20,7 @@ bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOU
# 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"
bindsym $mod+space exec "rofi -show drun"
bindsym $mod+space exec ".config/rofi/launchers/type-3/launcher.sh"
# 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
@ -115,8 +115,8 @@ bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10
bindsym $mod+Control+Left workspace prev
bindsym $mod+Control+Right workspace next
bindsym $alt+Control+Left workspace prev
bindsym $alt+Control+Right workspace next
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number $ws1
@ -130,8 +130,8 @@ 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
# bindsym $mod+Shift+Left move container to workspace prev
# bindsym $mod+Shift+Right move container to workspace next
bindsym $alt+Shift+Left move container to workspace prev
bindsym $alt+Shift+Right move container to workspace next
# reload the configuration file
bindsym $mod+Shift+c reload

View File

@ -13,7 +13,7 @@ exec --no-startup-id start-pulseaudioi-x11
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork --image=/usr/share/backgrounds/cynicalteam/0143.jpg -t
exec --no-startup-id nm-applet

View File

@ -43,9 +43,10 @@ alert = #bd2c40
[bar/main]
;monitor = ${env:MONITOR:HDMI-1}
monitor = DP-0.8
monitor-fallback = HDMI-0
width = 100%
height = 27
height = 28
;offset-x = 1%
;offset-y = 1%
radius = 6.0
@ -66,13 +67,14 @@ padding-right = 2
module-margin-left = 1
module-margin-right = 2
font-0 = "Monofur Nerd Font Mono:size=12:weight=bold"
font-1 = "FontAwesome:size=12"
font-0 = "FantasqueSansMono Nerd Font Mono:style=Bold"
; font-0 = "Monofur Nerd Font Mono:size=12:weight=bold"
font-1 = "FontAwesome:size=12"
; modules-left = publicip filesystem
modules-left = filesystem
modules-center = mpd
modules-right = pulseaudio
modules-left = i3
modules-center = date
modules-right = mpd pulseaudio
tray-position = right
tray-padding = 2
@ -83,6 +85,33 @@ cursor-scroll = ns-resize
enable-ipc = true
locale = fr_FR.UTF-8
[module/ewmh]
type = internal/xworkspaces
; Only show workspaces defined on the same output as the bar
;
; Useful if you want to show monitor specific workspaces
; on different bars
;
; Default: false
pin-workspaces = true
; Create click handler used to focus desktop
; Default: true
enable-click = false
; Create scroll handlers used to cycle desktops
; Default: true
enable-scroll = false
; Reverse the scroll direction
; Default: false
; New in version 3.6.0
reverse-scroll = true
[module/filesystem]
@ -90,6 +119,9 @@ type = internal/fs
interval = 25
mount-0 = /
mount-1 = /home
spacing = 4
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
label-unmounted = %mountpoint% not mounted
@ -145,21 +177,150 @@ format-disconnected =
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
; [module/date]
; type = internal/date
; interval = 5
; date =
; date-alt = " %Y-%m-%d"
; time = %H:%M
; time-alt = %H:%M:%S
[module/date]
type = internal/date
interval = 5
; format-prefix = 
; format-prefix-foreground = ${colors.foreground-alt}
; format-underline = #0a6cf5
; date = %d/%m/%Y
date = %A, %d %b %Y
date-alt = %A, %d %b %Y
; label = %date% %time%
time = %H:%M
time-alt = %H:%M:%S
format-prefix =
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #0a6cf5
label = %date% %time%
[module/i3]
type = internal/i3
; Only show workspaces defined on the same output as the bar
;
; Useful if you want to show monitor specific workspaces
; on different bars
;
; Default: false
pin-workspaces = true
; Show urgent workspaces regardless of whether the workspace is actually hidden
; by pin-workspaces.
;
; Default: false
; New in version 3.6.0
show-urgent = true
; This will split the workspace name on ':'
; Default: false
strip-wsnumbers = true
; Sort the workspaces by index instead of the default
; sorting that groups the workspaces by output
; Default: false
index-sort = true
; Create click handler used to focus workspace
; Default: true
enable-click = false
; Create scroll handlers used to cycle workspaces
; Default: true
enable-scroll = false
; Wrap around when reaching the first/last workspace
; Default: true
wrapping-scroll = false
; Set the scroll cycle direction
; Default: true
reverse-scroll = false
; Use fuzzy (partial) matching on labels when assigning
; icons to workspaces
; Example: code;♚ will apply the icon to all workspaces
; containing 'code' in the label
; Default: false
fuzzy-match = true
; ws-icon-[0-9]+ = <label>;<icon>
; NOTE: The <label> needs to match the name of the i3 workspace
; Neither <label> nor <icon> can contain a semicolon (;)
ws-icon-0 = 1;♚
ws-icon-1 = 2;♛
ws-icon-2 = 3;♜
ws-icon-3 = 4;♝
ws-icon-4 = 5;♞
ws-icon-default =
; NOTE: You cannot skip icons, e.g. to get a ws-icon-6
; you must also define a ws-icon-5.
; NOTE: Icon will be available as the %icon% token inside label-*
; Available tags:
; <label-state> (default) - gets replaced with <label-(focused|unfocused|visible|urgent)>
; <label-mode> (default)
format = <label-state> <label-mode>
; Available tokens:
; %mode%
; Default: %mode%
label-mode = %mode%
label-mode-padding = 2
label-mode-background = #e60053
; Available tokens:
; %name%
; %icon%
; %index%
; %output%
; Default: %icon% %name%
label-focused = %index%
label-focused-foreground = #ffffff
; label-focused-background = #3f3f3f
label-focused-background = #000
label-focused-underline = #e60053
label-focused-padding = 2
; Available tokens:
; %name%
; %icon%
; %index%
; %output%
; Default: %icon% %name%
label-unfocused = %index%
label-unfocused-padding = 2
; Available tokens:
; %name%
; %icon%
; %index%
; %output%
; Default: %icon% %name%
label-visible = %index%
label-visible-underline = #555555
label-visible-padding = 2
; Available tokens:
; %name%
; %icon%
; %index%
; %output%
; Default: %icon% %name%
label-urgent = %index%
label-urgent-foreground = #000000
label-urgent-background = #bd2c40
label-urgent-padding = 2
; Separator in between workspaces
label-separator = |
label-separator-padding = 2
label-separator-foreground = #ffb52a
; label-separator-foreground = #3f3f3f