Add piucom and i3 with transparency

This commit is contained in:
Hactarus 2024-09-03 15:35:42 +02:00
parent e1317d38ee
commit 1ff03eb4ca
8 changed files with 128 additions and 27 deletions

View file

@ -3,8 +3,10 @@ import = ["/home/hactario/.config/alacritty/dracula.toml", "/home/hactario/.conf
[env]
TERM = "xterm-256color"
decorations = "none"
opacity = "0.9"
startup_mode = "Maximized"
[window]
opacity = 0.70
[scrolling]
history = 100000

View file

@ -14,7 +14,7 @@ set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
#font pango:monospace 8
font 'FiraCode Nerd Font Mono' 8
font pango:Hack Nerd Font Regular 12
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
@ -29,7 +29,7 @@ exec --no-startup-id dex --autostart --environment i3
# 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 -- ~/.config/i3/lock.sh --nofork
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
@ -62,7 +62,7 @@ bindsym $mod+Shift+a kill
# 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
bindsym $mod+d exec "dmenu_run -nf '#F8F8F2' -nb '#282A36' -sb '#6272A4' -sf '#F8F8F2' -fn 'Hack-10.5' -p 'launch% '"
bindsym $mod+d exec "dmenu_run -nf '#F8F8F2' -nb '#282A36' -sb '#6272A4' -sf '#F8F8F2' -fn 'Hack-10.5' -l 5 -p '  '"
# change focus
bindsym $mod+j focus left
@ -116,16 +116,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
@ -193,7 +193,7 @@ client.placeholder #282A36 #282A36 #F8F8F2 #282A36 #282A36
client.background #F8F8F2
bar {
font 'FiraCode Nerd Font Mono',FontAwesome 12
font pango:'Hack Nerd Font Regular' 12
position bottom
status_command i3status ~/.config/i3status-rust/config.toml
colors {
@ -207,3 +207,4 @@ bar {
binding_mode #FF5555 #FF5555 #F8F8F2
}
}
exec --no-startup-id feh --bg-fill ~/.dotfiles/i3/.wallpapers/mr-robot-hacker-10000x5625-15768.png

View file

@ -3,5 +3,3 @@ label=⚡
command=/run/current-system/sw/libexec/i3blocks/battery
interval=10
instance=1

37
i3/.config/i3/lock.sh Executable file
View file

@ -0,0 +1,37 @@
#!/bin/sh
BLANK='#F8F8F2'
CLEAR='#44475A'
DEFAULT='#6272A4'
TEXT='#6272A4'
WRONG='#44475A'
VERIFYING='#6272A4'
i3lock \
--insidever-color=$CLEAR \
--ringver-color=$VERIFYING \
\
--insidewrong-color=$CLEAR \
--ringwrong-color=$WRONG \
\
--inside-color=$BLANK \
--ring-color=$DEFAULT \
--line-color=$BLANK \
--separator-color=$DEFAULT \
\
--verif-color=$TEXT \
--wrong-color=$TEXT \
--time-color=$TEXT \
--date-color=$TEXT \
--layout-color=$TEXT \
--keyhl-color=$WRONG \
--bshl-color=$WRONG \
\
--screen 1 \
--blur 9 \
--clock \
--indicator \
--time-str="%H:%M:%S" \
--date-str="%A, %Y-%m-%d" \
--keylayout 1 \
${@}

View file

@ -1,5 +1,4 @@
general {
output_format = "i3bar"
colors = true
color_good = "#50FA7B"
@ -7,7 +6,6 @@ general {
color_bad = "#FF5555"
interval = 5
}
order += "ipv6"
order += "disk /"
order += "run_watch DHCP"

View file

@ -0,0 +1,14 @@
# Default opacity of active windows.
active-opacity = 1.0;
# Default opacity of inactive windows.
inactive-opacity = 1.0;
# Opacity of window titlebars and borders.
frame-opacity = 1.0;
# Application-specific settings; these override the default `active-opacity`
opacity-rule = [
"95:class_g = 'Alacritty' && focused",
"80:class_g = 'Alacritty' && !focused"
];

View file

@ -34,7 +34,7 @@ font-0 = FiraMono Nerd Font:size=10;4
#font-0 = Overpass Nerd Font:size=10;4
#font-1 = Noto Sans:size=10;4
width = 100%
height = 18pt
height = 16pt
radius = 0
dpi = 192
@ -68,7 +68,7 @@ enable-ipc = true
; wm-restack = generic
; wm-restack = bspwm
; wm-restack = i3
wm-restack = i3
; override-redirect = true
@ -276,4 +276,54 @@ label = %date%
screenchange-reload = true
pseudo-transparency = true
[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 for wc-icon.
; Example: code;♚ will apply the icon to all workspaces
; containing 'code' in the name
; Changed in version 3.7.0: Selects longest string match instead of the first match.
; Default: false
fuzzy-match = true
; vim:ft=dosini

View file

@ -17,6 +17,7 @@ base=(
puppet
ssh
i3
picom
polybar
sway
terminfo