From 1ff03eb4caea06724fe1681ca90eb5c622bafc67 Mon Sep 17 00:00:00 2001 From: Hactarus <859868+Hactarus@users.noreply.github.com> Date: Tue, 3 Sep 2024 15:35:42 +0200 Subject: [PATCH] Add piucom and i3 with transparency --- alacritty/.config/alacritty/alacritty.toml | 4 +- i3/.config/i3/config | 39 ++++++++-------- i3/.config/i3/i3blocks.conf | 4 +- i3/.config/i3/lock.sh | 37 +++++++++++++++ i3/.config/i3status/config | 2 - picom/.config/picom/picom.conf | 14 ++++++ polybar/.config/polybar/config.ini | 54 +++++++++++++++++++++- setup.sh | 1 + 8 files changed, 128 insertions(+), 27 deletions(-) create mode 100755 i3/.config/i3/lock.sh create mode 100644 picom/.config/picom/picom.conf diff --git a/alacritty/.config/alacritty/alacritty.toml b/alacritty/.config/alacritty/alacritty.toml index 1f5e66d..e3a972b 100644 --- a/alacritty/.config/alacritty/alacritty.toml +++ b/alacritty/.config/alacritty/alacritty.toml @@ -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 diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 612ae57..204a02f 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -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 @@ -185,15 +185,15 @@ 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 +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 { - 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 \ No newline at end of file diff --git a/i3/.config/i3/i3blocks.conf b/i3/.config/i3/i3blocks.conf index ae3843e..b6b8ddd 100644 --- a/i3/.config/i3/i3blocks.conf +++ b/i3/.config/i3/i3blocks.conf @@ -2,6 +2,4 @@ label=⚡ command=/run/current-system/sw/libexec/i3blocks/battery interval=10 -instance=1 - - +instance=1 \ No newline at end of file diff --git a/i3/.config/i3/lock.sh b/i3/.config/i3/lock.sh new file mode 100755 index 0000000..f415691 --- /dev/null +++ b/i3/.config/i3/lock.sh @@ -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 \ +${@} \ No newline at end of file diff --git a/i3/.config/i3status/config b/i3/.config/i3status/config index 34880fe..460e709 100644 --- a/i3/.config/i3status/config +++ b/i3/.config/i3status/config @@ -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" diff --git a/picom/.config/picom/picom.conf b/picom/.config/picom/picom.conf new file mode 100644 index 0000000..46ae2ae --- /dev/null +++ b/picom/.config/picom/picom.conf @@ -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" +]; diff --git a/polybar/.config/polybar/config.ini b/polybar/.config/polybar/config.ini index 735d8d3..31d4357 100644 --- a/polybar/.config/polybar/config.ini +++ b/polybar/.config/polybar/config.ini @@ -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 diff --git a/setup.sh b/setup.sh index 18c4405..26704e8 100755 --- a/setup.sh +++ b/setup.sh @@ -17,6 +17,7 @@ base=( puppet ssh i3 + picom polybar sway terminfo