This commit is contained in:
Hactarus 2024-09-29 17:36:23 +02:00
parent 1ff03eb4ca
commit fe0993358b
10 changed files with 515 additions and 88 deletions

View file

@ -41,6 +41,10 @@ bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
bindsym XF86AudioPlay exec "spotifycli --playpause && spotifycli --statusshort > /var/log/scripts/spotify.log"
bindsym XF86AudioNext exec "spotifycli --next && spotifycli --statusshort > /var/log/scripts/spotify.log"
bindsym XF86AudioPrev exec "spotifycli --prev && spotifycli --statusshort > /var/log/scripts/spotify.log"
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
@ -116,16 +120,16 @@ bindsym $mod+q 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.
set $ws1 "1 󰯊 "
set $ws2 "2 󰙯 "
set $ws3 "3 "
set $ws4 "4 "
set $ws5 "5 󰕧 "
set $ws6 "6 󰭹 "
set $ws7 "7 "
set $ws8 "8 󰈮 "
set $ws9 "9  "
set $ws10 "10 "
set $ws1 "1:󰖟 "
set $ws2 "2: "
set $ws3 "3:󰈮 "
set $ws4 "4: "
set $ws5 "5:󰕧 "
set $ws6 "6:󰺵 "
set $ws7 "7:󰭹 "
set $ws8 "8:󰙯 "
set $ws9 "9: "
set $ws10 "10:󰕧 "
# switch to workspace
bindsym $mod+ampersand workspace number $ws1
@ -151,6 +155,21 @@ 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
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
@ -185,11 +204,14 @@ mode "resize" {
bindsym $mod+r mode "resize"
client.focused #6272A4 #6272A4 #F8F8F2 #6272A4 #6272A4
client.focused_inactive #44475A #44475A #F8F8F2 #44475A #44475A
client.unfocused #282A36 #282A36 #BFBFBF #282A36 #282A36
client.urgent #44475A #FF5555 #F8F8F2 #FF5555 #FF5555
client.placeholder #282A36 #282A36 #F8F8F2 #282A36 #282A36
include ~/.config/i3/config.d/*.conf
client.focused #6272A4 #6272A4 #F8F8F2 #6272A4 #6272A4
client.focused_inactive #44475A #44475A #F8F8F2 #44475A #44475A
client.unfocused #282A36 #282A36 #BFBFBF #282A36 #282A36
client.urgent #44475A #FF5555 #F8F8F2 #FF5555 #FF5555
client.placeholder #282A36 #282A36 #F8F8F2 #282A36 #282A36
client.background #F8F8F2
bar {
@ -207,4 +229,5 @@ bar {
binding_mode #FF5555 #FF5555 #F8F8F2
}
}
exec --no-startup-id feh --bg-fill ~/.dotfiles/i3/.wallpapers/mr-robot-hacker-10000x5625-15768.png
exec --no-startup-id feh --bg-fill ~/.dotfiles/i3/.wallpapers/mr-robot-hacker-10000x5625-15768.png

View file

@ -0,0 +1,25 @@
# set $ws1 "1:󰖟 "
# set $ws2 "2: "
# set $ws3 "3:󰈮 "
# set $ws4 "4: "
# set $ws5 "5:󰕧 "
# set $ws6 "6:󰺵 "
# set $ws7 "7:󰭹 "
# set $ws8 "8:󰙯 "
# set $ws9 "9: "
# set $ws10 "10:󰕧 "
assign [class="firefox"] $ws1
assign [class="chromium-browser"] $ws8
assign [class="chromium"] $ws8
assign [class="Thunderbird"] $ws7
assign [class="vscodium"] $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
for_window [class="Alert"] floating enable
for_window [class="dunst"] floating enable

View file

@ -3,13 +3,10 @@ theme = "dracula"
[icons]
icons = "material-nf"
[icons.overrides]
bat = [
"| |",
"|¼|",
"|½|",
"|¾|",
"|X|",
]
bat_charging = "|^|"
[general]
colors = true
color_good = "#a3be8c"
color_degraded = "#ebcb8b"
color_bad = "#bf616a"
interval = 1
separator = "*"

View file

@ -1,45 +1,60 @@
general {
output_format = "i3bar"
colors = true
color_good = "#50FA7B"
color_degraded = "#F1FA8C"
color_bad = "#FF5555"
interval = 5
// output_format = "i3bar"
colors = true
color_good = "#50FA7B"
color_degraded = "#F1FA8C"
color_bad = "#FF5555"
interval = 5
separator = "󰭆"
}
order += "ipv6"
// order += "ipv6"
order += "volume master"
order += "read_file spotify"
order += "disk /"
order += "run_watch DHCP"
order += "run_watch VPNC"
order += "path_exists VPN"
order += "wireless wlan0"
order += "ethernet eth0"
order += "disk /nix"
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 += "battery 0"
#order += "cpu_temperature 0"
order += "cpu_temperature 0"
order += "memory"
order += "load"
order += "tztime local"
order += "tztime berlin"
order += "tztime paris"
wireless wlan0 {
format_up = "W: (%quality at %essid, %bitrate) %ip"
format_down = "W: down"
wireless wlp2s0 {
format_up = " (%quality at %essid, %bitrate) %ip"
format_down = "󱚵 "
}
ethernet eth0 {
format_up = "E: %ip (%speed)"
format_down = "E: down"
ethernet enp0s31f6 {
format_up = "󰈀 %ip"
format_down = "󰈀 "
}
ethernet enp0s20f0u3c2 {
format_up = "󰈁 %ip"
format_down = "󰈁 "
}
battery 0 {
format = "%status %percentage %remaining %emptytime"
format_down = "No battery"
status_chr = "⚡ CHR"
status_bat = "🔋 BAT"
status_unk = "? UNK"
status_full = "☻ FULL"
format = "%status %percentage %remaining"
format_down = ""
last_full_capacity = true
integer_battery_capacity = true
low_threshold = 11
threshold_type = percentage
hide_seconds = true
status_chr = " ⚡ "
status_bat = " 🪫 "
status_unk = " 🔌 "
status_full = " 🔋 "
path = "/sys/class/power_supply/BAT%d/uevent"
low_threshold = 10
}
run_watch DHCP {
@ -57,34 +72,65 @@ path_exists VPN {
}
tztime local {
format = "%Y-%m-%d %H:%M:%S"
format = "📅 %V %a 󰃭 %Y-%m-%d %H:%M:%S %Z"
hide_if_equals_localtime = true
}
tztime berlin {
format = "%Y-%m-%d %H:%M:%S %Z"
timezone = "Europe/Berlin"
tztime paris {
format = "📅 %V %a 󰃭 %Y-%m-%d %H:%M:%S %Z"
timezone = "Europe/Paris"
}
load {
format = "%5min"
format = "%5min"
}
cpu_temperature 0 {
format = "T: %degrees °C"
path = "/sys/devices/platform/coretemp.0/temp1_input"
format = "🌡️ %degrees"
path = "/sys/devices/platform/coretemp.0/hwmon/hwmon5/temp1_input"
}
memory {
format = "%used"
format = "%used"
threshold_degraded = "10%"
format_degraded = "MEMORY: %free"
}
disk "/" {
format = "%free"
format = " / %free"
prefix_type = custom
low_threshold = 20
threshold_type = percentage_avail
}
disk "/nix" {
format = "💻 /nix %free"
prefix_type = custom
low_threshold = 15
threshold_type = percentage_avail
}
disk "/home" {
format = "💾 /home %free"
prefix_type = custom
low_threshold = 10
threshold_type = percentage_avail
}
read_file uptime {
path = "/proc/uptime"
}
}
volume master {
format = "%volume 󰕾 "
format_muted = "󰖁 "
// device = "pulse:1"pavuc
device = "default"
mixer = "Master"
mixer_idx = 0
}
read_file spotify {
format = "🔊%content"
path = "~/.config/i3status/spotify.log"
}

View file