diff --git a/files/.config/dunst/dunstrc b/files/.config/dunst/dunstrc index 4b17e27..ccf17d5 100644 --- a/files/.config/dunst/dunstrc +++ b/files/.config/dunst/dunstrc @@ -29,7 +29,7 @@ # the top and down respectively. # The width can be negative. In this case the actual width is the # screen width minus the width defined in within the geometry option. - geometry = "400x20-14+44" + geometry = "400x20-4+34" # Show how many messages are currently hidden (because of geometry). indicate_hidden = yes diff --git a/files/.config/i3/config b/files/.config/i3/config index 9c6453b..11f5eac 100644 --- a/files/.config/i3/config +++ b/files/.config/i3/config @@ -36,7 +36,6 @@ client.background $border # i3-gaps gaps inner 4 -gaps top 34 # ============================== Keybinds #Terminal diff --git a/files/.config/picom.conf b/files/.config/picom.conf index 44a668c..90429fd 100644 --- a/files/.config/picom.conf +++ b/files/.config/picom.conf @@ -16,6 +16,13 @@ shadow-exclude = [ "class_g *?= 'i3-frame'", ] +corner-radius = 12 +rounded-corners-exclude = [ + "class_g *?= 'polybar'", + "class_g *?= 'dmenu'", + "class_g *?= 'i3-frame'", +] + #backend = "glx"; #blur: { # method: "dual_kawase"; diff --git a/files/.config/polybar/config b/files/.config/polybar/config index 9b52d08..fa397b8 100644 --- a/files/.config/polybar/config +++ b/files/.config/polybar/config @@ -33,73 +33,43 @@ accent = ${colors.green} # ======================================== BARS [bar/main] monitor = ${env:MONITOR} + height = 30px -offset-y = 4px +width = 100% +radius-bottom = 12 + +border-left-size = 4px +border-right-size = 4px + +padding-left = 3 +padding-right = 3 + +module-margin-left = 3 +module-margin-center = 3 foreground = ${colors.foreground} background = ${colors.background} fixed-center = true -line-size = 3 - -module-margin = 2 +line-size = 2 font-0 = "Product Sans:pixelsize=9:weight=regular;2" font-1 = "Product Sans:pixelsize=9:weight=bold;2" font-2 = "Noto Sans CJK JP:antialiase=false:pixelsize=9;2" -font-3 = "Material Design Icons:size=9;2" +font-3 = "Material Design Icons:size=11;3" wm-restack = i3 -override-redirect = true - -# ========= workspaces -[bar/workspaces] -inherit = bar/main - -background = ${colors.clear} - -width = 20% -offset-x = 4px +override-redirect = false modules-left = i3 +modules-center = date +modules-right = spotify cpu memory volume -# ========== info -[bar/info] +[bar/laptop] inherit = bar/main -width = 17% -offset-x = 83%:-183px - -modules-center = cpu memory volume date - -[bar/info_laptop] -inherit = bar/info - -width = 20% -offset-x = 80%:-183px - -modules-center = cpu memory battery volume date - -[bar/tray] -inherit = bar/main - -width = 175px -offset-x = 100%:-179px - -modules-center = blank - -tray-position = center -tray-padding = 1 - -# ========== music -[bar/music] -inherit = bar/main - -width = 18% -offset-x = 41% - -modules-center = spotify +modules-right = spotify cpu memory wlan volume battery # ======================================== MODULES [module/i3] @@ -120,7 +90,7 @@ ws-icon-8 = 9;九 ws-icon-9 = 10;十 label-focused = "%icon%" -label-focused-underline = ${colors.accent} +label-focused-overline = ${colors.accent} label-focused-foreground = ${colors.foreground} label-focused-background = ${colors.background} label-focused-padding = 2 @@ -153,19 +123,11 @@ label-underline = ${colors.accent} type = internal/date label = %date% %time% -#date = %{T2}%a%{T-} %d date = %a %d time = %H:%M format-prefix = "󰃭 " -format-underline = ${colors.red} - -[module/time] -type = internal/date -date = %{T2}%H:%M%{T-} - -format-prefix = "󰥔 " -format-underline = ${colors.accent} +#format-underline = ${colors.red} [module/backlight] type = internal/backlight @@ -174,7 +136,7 @@ card = amdgpu_bl0 label = %percentage%% format-prefix = "󰃟 " -format-underline = ${colors.accent} +#format-underline = ${colors.accent} [module/battery] type = internal/battery @@ -184,15 +146,15 @@ apdapter = ADP1 format-charging = label-charging = %percentage%% animation-charging-foreground = ${colors.accent} -format-charging-underline = ${colors.yellow} +#format-charging-underline = ${colors.yellow} format-discharging = label-discharging = %percentage%% -format-discharging-underline = ${colors.accent} +#format-discharging-underline = ${colors.accent} format-full = label-full = %percentage%% -format-full-underline = ${colors.accent} +#format-full-underline = ${colors.accent} ramp-capacity-foreground = ${colors.accent} ramp-capacity-0 = 󰁺 @@ -224,15 +186,12 @@ format-volume = label-volume = %percentage%% format-volume-prefix = "󰕾 " -format-volume-underline = ${colors.yellow} +#format-volume-underline = ${colors.yellow} label-muted = Muted format-muted-prefix = "󰖁 " format-muted-foreground = ${colors.urgent} -format-prefix = "󰏗 " -format-underline = ${colors.accent} - [module/spotify] type = custom/script #exec = python ~/.config/polybar/scripts/spotify_status.py -f '{artist}: {song} ' @@ -240,15 +199,15 @@ exec = ~/.config/polybar/scripts/song.sh 2>/dev/null || echo "No player found" interval = 1 tail = true -format-prefix = " 󰓇 " -format-underline = ${colors.accent} +format-prefix = "󰓇 " +#format-underline = ${colors.accent} [module/cpu] type = custom/script exec = ~/.config/polybar/scripts/cpu.sh click-left = ~/.config/polybar/scripts/cpu.sh --popup -format-prefix = "󰻠 " -format-underline = ${colors.accent} +format-prefix = "󰌣 " +#format-underline = ${colors.accent} [module/memory] type = custom/script @@ -256,17 +215,15 @@ exec = ~/.config/polybar/scripts/memory.sh click-left = ~/.config/polybar/scripts/memory.sh --popup format-prefix = "󰍛 " -format-underline = ${colors.blue} +#format-underline = ${colors.blue} -[module/temp] -type = custom/script -exec = ~/.config/polybar/scripts/temp.sh +[module/wlan] +type = internal/network +interface = +interval = 3.0 -format-prefix = "󰔄 " -format-underline = ${colors.accent} +format-connected = +format-connected-prefix = "󰤨 " +label-connected = %essid% -[module/blank] -type = custom/text -content = . -content-foreground = ${colors.clear} -content-background = ${colors.clear} +format-disconnected = "󰤮 No Connection" diff --git a/files/.config/polybar/scripts/spotify_status.py b/files/.config/polybar/scripts/spotify_status.py index f304dd4..b8f613e 100755 --- a/files/.config/polybar/scripts/spotify_status.py +++ b/files/.config/polybar/scripts/spotify_status.py @@ -68,7 +68,7 @@ def truncate(name, trunclen): # Default parameters output = fix_string(u'{play_pause} {artist}: {song}') -trunclen = 50 +trunclen = 60 play_pause = fix_string(u'\u25B6,\u23F8') # first character is play, second is paused label_with_font = '%{{T{font}}}{label}%{{T-}}' diff --git a/files/scripts/polybar.sh b/files/scripts/polybar.sh index 83d5f91..cf550cb 100755 --- a/files/scripts/polybar.sh +++ b/files/scripts/polybar.sh @@ -3,14 +3,15 @@ while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done if type "xrandr"; then for mon in $(xrandr --query | grep " connected" | cut -d" " -f1); do - MONITOR=$mon polybar --reload workspaces & - MONITOR=$mon polybar --reload music & - MONITOR=$mon polybar --reload tray & - if [ $mon = "eDP" ]; then - MONITOR=$mon polybar --reload info_laptop & - else - MONITOR=$mon polybar --reload info & - fi + MONITOR=$mon polybar --reload main & +# MONITOR=$mon polybar --reload workspaces & +# MONITOR=$mon polybar --reload music & +# MONITOR=$mon polybar --reload tray & +# if [ $mon = "eDP" ]; then +# MONITOR=$mon polybar --reload info_laptop & +# else +# MONITOR=$mon polybar --reload info & +# fi done else echo "No Bars loaded." diff --git a/screenshots/pc.png b/screenshots/pc.png index 3ed8270..e64c29b 100644 Binary files a/screenshots/pc.png and b/screenshots/pc.png differ