add custom for i3status and adapt for work

This commit is contained in:
Quentin Godefroid 2024-10-01 15:23:13 +02:00
parent 8031a80a60
commit fa8003c15b
Signed by: hactario
GPG key ID: 688E98939E5CBE8D
8 changed files with 43 additions and 51 deletions

View file

@ -6,8 +6,8 @@ decorations = 'None'
opacity = 0.70
dynamic_title = true
[windows.class]
general = "alacritty"
# [windows.class]
# general = "alacritty"
[bell]
animation = "EaseOutQuad"

View file

@ -15,7 +15,7 @@
#
# If this option is set to mouse or keyboard, the monitor option
# will be ignored.
follow = none
follow = moouse
# The geometry of the window:
# [{width}]x{height}[+/-{x}+/-{y}]

View file

@ -51,10 +51,10 @@ floating_modifier $mod
# move tiling windows via drag & drop by left-clicking into the title bar,
# or left-clicking anywhere into the window while holding the floating modifier.
tiling_drag modifier titlebar
# tiling_drag modifier titlebar
# start a terminal
bindsym $mod+Return exec /etc/profiles/per-user/hactario/bin/alacritty
bindsym $mod+Return exec alacritty
# kill focused window
bindsym $mod+Shift+a kill
@ -155,21 +155,6 @@ bindsym $mod+Shift+exclam move container to workspace number $ws8
bindsym $mod+Shift+ccedilla move container to workspace number $ws9
bindsym $mod+Shift+agrave move container to workspace number $ws10
set $monitor_main "DP-1-1"
set $monitor_vertical "DP-2"
set $monitor_integrated "eDP-1"
workspace $ws1 output $monitor_main
workspace $ws2 output $monitor_main
workspace $ws3 output $monitor_main
workspace $ws4 output $monitor_main
workspace $ws5 output $monitor_main
workspace $ws6 output $monitor_main
workspace $ws7 output $monitor_vertical
workspace $ws8 output $monitor_vertical
workspace $ws9 output $monitor_integrated
workspace $ws10 output $monitor_integrated
bindsym $mod+x [urgent=latest] focus
# reload the configuration file
@ -233,5 +218,5 @@ bar {
bindsym --release button3 exec --no-startup-id import ~/screenshot-$(date +%F-%T).png
}
exec --no-startup-id feh --bg-fill ~/.dotfiles/i3/.wallpapers/mr-robot-hacker-10000x5625-15768.png
exec --no-startup-id feh --bg-fill ~/.wallpapers/mr-robot-hacker-10000x5625-15768.png
exec "setxkbmap -layout be"

View file

@ -14,12 +14,13 @@ assign [class="chromium-browser"] $ws8
assign [class="chromium"] $ws8
assign [class="Thunderbird"] $ws7
assign [class="vscodium"] $ws3
assign [class="code"] $ws3
assign [class="Alacritty"] $ws2
assign [class="Moonlight"] $ws6
assign [class="plex-bin"] $ws5
assign [class="vlc"] $ws5
assign [class="Spotify"] $ws9
assign [class="Spotify"] $ws9
assign [class="keepass"] $ws9
for_window [class="Alert"] floating enable
for_window [class="dunst"] floating enable

View file

@ -0,0 +1,14 @@
set $monitor_main "primary"
set $monitor_vertical "nonprimary"
set $monitor_integrated "eDP-1"
workspace $ws1 output $monitor_main
workspace $ws2 output $monitor_main
workspace $ws3 output $monitor_main
workspace $ws4 output $monitor_main
workspace $ws5 output $monitor_main
workspace $ws6 output $monitor_main
workspace $ws7 output $monitor_vertical
workspace $ws8 output $monitor_vertical
workspace $ws9 output $monitor_integrated
workspace $ws10 output $monitor_integrated

View file

@ -22,25 +22,20 @@ order += "disk /home"
// order += "run_watch DHCP"
// order += "run_watch VPNC"
// order += "path_exists VPN"
order += "wireless wlp2s0"
order += "ethernet enp0s31f6"
// order += "ethernet enp0s20f0u3c2"
order += "ethernet"
order += "wireless _first_"
order += "ethernet _first_"
order += "battery 0"
order += "cpu_temperature 0"
order += "tztime local"order += "tztime Montreal"
order += "tztime date"
order += "tztime Montreal"
order += "tztime Brussels"
wireless wlp2s0 {
wireless _first_ {
format_up = " (%quality at %essid, %bitrate) %ip"
format_down = "󱚵 "
}
ethernet enp0s31f6 {
format_up = "󰈀 %ip"
format_down = "󰈀 "
}
ethernet enp0s20f0u3c2 {
ethernet _first_ {
format_up = "󰈁 %ip"
format_down = "󰈁 "
}
@ -53,10 +48,10 @@ battery 0 {
low_threshold = 11
threshold_type = percentage
hide_seconds = true
status_chr = "⚡ "
status_bat = "🪫 "
status_unk = "🔌 "
status_full = "🔋 "
status_chr = "⚡ "
status_bat = "🪫 "
status_unk = "🔌 "
status_full = "🔋 "
path = "/sys/class/power_supply/BAT%d/uevent"
}
@ -74,17 +69,17 @@ path_exists VPN {
path = "/proc/sys/net/ipv4/conf/tun0"
}
tztime local {
format = "📅 %V %a 󰃭 %Y-%m-%d  %H:%M:%S %Z"
hide_if_equals_localtime = true
tztime date {
format = "📅 %V %a %Y-%m-%d"
}
tztime Brussels {
format = "📅 %V %a 󰃭 %Y-%m-%d  %H:%M:%S %Z"
timezone = "Europe/Brussels"
format = "🇧🇪 %H:%M:%S %Z"
timezone = "Europe/Brussels"
}
tztime Montreal {
format = " %H:%M:%S %Z"
format = "🏴󠁣󠁡󠁱󠁣󠁿 %H:%M:%S %Z"
timezone = "America/Montreal"
hide_if_equals_localtime = true
}
@ -95,7 +90,7 @@ load {
cpu_temperature 0 {
format = "🌡️ %degrees"
path = "/sys/devices/platform/coretemp.0/hwmon/hwmon5/temp1_input"
path = "/sys/devices/platform/coretemp.0/hwmon/hwmon*/temp1_input"
}
memory {
@ -125,10 +120,6 @@ disk "/home" {
threshold_type = percentage_avail
}
disk "/home" {
format = "%free"
}
read_file uptime {
path = "/proc/uptime"
}
@ -144,5 +135,5 @@ volume master {
read_file spotify {
format = "🔊%content"
path = "~/.config/i3status/spotify.log"
path = "$HOME/.config/i3status/spotify.log"
}

View file

@ -0,0 +1 @@

View file

@ -252,7 +252,7 @@ tmux
#ubuntu
#urltools
vagrant
vault
#vault
#vi-mode
#vim-interaction
#virtualenv
@ -274,7 +274,7 @@ vault
)
zstyle :omz:plugins:ssh-agent agent-forwarding on
zstyle :omz:plugins:ssh-agent identities work_201909
zstyle :omz:plugins:ssh-agent lazy yes
zstyle :omz:plugins:ssh-agent lifetime 4h
source $ZSH/oh-my-zsh.sh