diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc index 728ab02..4491543 100755 --- a/bspwm/.config/bspwm/bspwmrc +++ b/bspwm/.config/bspwm/bspwmrc @@ -1,11 +1,13 @@ #!/usr/bin/env sh +export STARDICT_DATA_DIR=$XDG_DATA_HOME/stardict + ## BSPWM config bspc config focus_follows_pointer true bspc config border_width 1 bspc config window_gap 6 -bspc config top_padding 28 +bspc config top_padding 34 bspc config left_padding 0 bspc config right_padding 0 bspc config bottom_padding 0 @@ -16,60 +18,42 @@ bspc config gapless_monocle true bspc config pointer_modifier mod1 ## BSPWM Rules -bspc rule -a Wine monitor=HDMI-A-1 +bspc rule -a Wine monitor=DisplayPort-0 + +bspc rule -a equalizer state=fullscreen manage=off +bspc rule -a steamwebhelper state=fullscreen +bspc rule -a foreground state=fullscreen manage=off ## Swallow -pgrep -fl 'pidswallow -gl' || pidswallow -gl & - -export QT_QPA_PLATFORMTHEME="qt5ct" -export QT_PLATFORM_PLUGIN="qt5ct" -export KRITA_NO_STYLE_OVERRIDE=1 -export GTK_CSD=0 -export GTK_USE_PORTAL=1 -export LD_PRELOAD="/usr/lib/libgtk3-nocsd.so.0" -export GO111MODULE=on - -## Screens -xrandr --output HDMI-A-1 --auto --primary -xrandr --output DisplayPort-1 --auto --right-of HDMI-A-1 -bspc monitor -f primary - -## Keyboard and shortcuts -setxkbmap -layout "dvorak" -option "caps:backspace,lv3:ralt_switch,compose:sclk" && sxhkd & - -## Cursor -xsetroot -cursor_name left_ptr & -xbanish & - -## Colors / Wallpaper -xrdb -merge -q ~/.Xresources && ~/.fehbg && wal -Rnq - -## Music -start-pulseaudio-x11 & -sshfs -o uid=1000 -o gid=1000 kemurikusa:/data/Music ~/Music & -sshfs -o uid=1000 -o gid=1000 neptune-01:/home/deploy/Movies ~/Movies & -mpd & -mpDris2 & -transmission-daemon --port 9091 --allowed "127.0.0.1" -transmission-rss - -## No screensaver -xset s off & -xset -dpms & - -## No time to waste -xset r rate 300 50 & - -## Compositor -picom --experimental-backends --backend glx -b & -redshift -l 44.481:0.3545 & - -## Peripherals -xsetwacom set "$(xsetwacom --list devices | awk '/Pen stylus/ { if ($7 == "id:") { print $8 } }')" MapToOutput HDMI-A-1 & +pgrep -fl 'pidswallow -gl' || fish -c 'pidswallow -gl &' ## Manage desktops -btops & +"${HOME}/.local/share/go/bin/btops" & ## Bar -"${HOME}/.config/polybar/launch.sh" -xfce4-panel -d > /dev/null 2>&1 +"${HOME}/.config/polybar/launch.sh" & + +"${HOME}/bin/eww-x11 open clock" & + +## Foreground +#kitty -o background_opacity=0 -o window_padding_width="0 0" --class=foreground -o clear_all_shortcuts=yes -o cursor_shape=underline sh -c "kitty +kitten icat --transfer-mode=stream --silent --align=left --z-index=-1 --place='1920x1080@0x0' --hold ~/Krita/space-dream-foreground.png" & +#kitty -o background_opacity=0 -o window_padding_width="0 5" --class=equalizer -o clear_all_shortcuts=yes sh -c "cava" & +#sleep 3; +# +#foreground_id="$(xdotool search --classname 'foreground')" equalizer_id="$(xdotool search --classname 'equalizer')" +# +#if test -n "$foreground_id"; then +# xdo lower "$foreground_id" +# xdo resize -w 1920 -h 1080 "$foreground_id" +# xdo move -y 80 -x -3 "$foreground_id" +#fi +# +### Equalizer +#if test -n "$equalizer_id"; then +# xdo lower "$equalizer_id" +# xdo lower "$equalizer_id" +# xdo resize -w 1920 -h 540 "$equalizer_id" +# xdo move -y 540 "$equalizer_id" +#fi + +#pkill -USR1 cava diff --git a/bspwm/.config/btops/config.toml b/bspwm/.config/btops/config.toml index c30c6ed..1d9a8ff 100644 --- a/bspwm/.config/btops/config.toml +++ b/bspwm/.config/btops/config.toml @@ -14,33 +14,52 @@ renamers = ["classified", "client", "constant"] [names] constant = " " -# constant = " " [[names.classified]] +" " = ["electrum", "monero-core"] " " = ["Chromium", "Iridium", "Inox"] "﨩" = ["Tor Browser"] " " = ["Firefox", "Waterfox", "IceCat"] -" " = ["qutebrowser"] -"" = ["Steam","steam"] +"🦅" = ["Falkon"] +" " = ["qutebrowser","konqueror"] +" " = ["Vivaldi-stable"] +"" = ["Steam","steam","steamwebhelper"] " " = ["keepassxc","KeePassXC"] " " = ["krita"] -" " = ["Cemu.exe", "antimicro", "Wine", "Lutris", "Com.github.tkashkin.gamehub"] +" " = ["Cemu.exe", "antimicro", "Wine", "Lutris", "Com.github.tkashkin.gamehub", "Chad-launcher", "heroic"] " " = ["TelegramDesktop"] -" " = ["Spectral","nheko"] +" " = ["Spectral","nheko","konversation"] " " = ["nvim"] " " = ["Termite", "Alacritty", "konsole", "terminator", "URxvt", "xst-256color", "st-256color", "kitty"] " " = ["calibre"] " " = ["dolphin", "pcmanfm-qt"] " " = ["okular", "llpp", "Zathura", "mupdf", "Evince", "MuPDF"] -" " = ["cantata", "elisa"] +" " = ["cantata", "elisa", "test"] " " = ["mpv"] " " = ["qbittorrent", "ktorrent", "transmission"] " " = ["spectacle"] " " = ["gwenview", "feh", "imv", "sxiv"] " " = ["Bitwig Studio"] +" " = ["qpwgraph"] +" " = ["Audacity"] " " = ["kcharselect"] " " = ["scrcpy"] "" = ["p3x-onenote"] " " = ["lxqt-config-appearance", "Kvantum Manager"] -" " = ["lxqt-config"] +" " = ["lxqt-config", "systemsettings"] " " = ["yuzu"] +" " = ["Olive"] +"💿" = ["k3b"] +" " = ["filelight"] +"🍓" = ["strawberry"] +" " = ["Kid3"] +"⛨" = ["steam_app_0"] +"" = ["Guitarix","ToneLib Metal","ToneLib GFX"] +"" = ["MuseScore3"] +"🎹" = ["Ardour"] +" " = ["Tonelib Jam"] +" " = ["trojita"] +" " = ["pavucontrol-qt"] +" " = ["Microsoft-edge"] +" " = ["kristall"] +" " = ["kate"] diff --git a/bspwm/.config/picom.conf b/bspwm/.config/picom.conf index e59a7dd..86f3c11 100644 --- a/bspwm/.config/picom.conf +++ b/bspwm/.config/picom.conf @@ -18,7 +18,9 @@ corner-radius = 10; rounded-corners-exclude = [ #"window_type = 'normal'", # "window_type = 'popup_menu'", + "name = 'Latte Shell — Latte Dock'", "class_g = 'awesome'", + "class_g = 'latte-dock'", #"class_g = 'Xfce4-panel'", #"class_g = 'Polybar'", ]; @@ -73,7 +75,7 @@ shadow-blue = 0 # shadow-exclude = "n:e:Notification"; # # shadow-exclude = [] -shadow-exclude = [ +shadow-exclude = [ "argb && (_NET_WM_WINDOW_TYPE@:a *= 'MENU' || _NET_WM_WINDOW_TYPE@:a *= 'COMBO')", "name = 'Notification'", "class_g = 'Conky'", @@ -81,6 +83,7 @@ shadow-exclude = [ "class_g = 'Cairo-clock'", "class_g = 'slop'", "class_g = 'Polybar'", + "class_g = 'latte-dock'", "window_type = 'popup_menu'", "_GTK_FRAME_EXTENTS@:c" ]; @@ -160,6 +163,7 @@ active-opacity = 1.0; # focus-exclude = [] focus-exclude = [ "class_g = 'Cairo-clock'", + "class_g = 'latte-dock'", "class_g = 'Bar'", # lemonbar "class_g = 'slop'", # maim "class_g ?= 'Steam'" @@ -179,6 +183,7 @@ focus-exclude = [ opacity-rule = [ "100:class_g = 'Bar'", # lemonbar "100:class_g = 'slop'", # maim + "80:class_g = 'equalizer'", # maim "80:class_g = 'XTerm'", "80:class_g = 'UXTerm'", "100:class_g = 'URxvt'", @@ -187,6 +192,7 @@ opacity-rule = [ "100:class_g = 'Thunderbird'", "80:class_g = 'Thunar'", "80:class_g = 'Lutris'", + "100:class_g = 'Chromium'", ]; @@ -238,7 +244,7 @@ blur: { } # Exclude conditions for background blur. -blur-background-exclude = [ +blur-background-exclude = [ #"window_type = 'dock'", #"window_type = 'desktop'", #"class_g = 'URxvt'", @@ -246,10 +252,14 @@ blur-background-exclude = [ # prevents picom from blurring the background # when taking selection screenshot with `main` # https://github.com/naelstrof/maim/issues/130 - "window_type = 'desktop'", + #"window_type = 'desktop'", #"window_type = 'dock'", "window_type = 'utility'", #"window_type = 'notification'", + "class_g = 'Conky'", + "class_g = 'equalizer'", + "class_g = 'foreground'", + "class_g = 'widget'", "class_g = 'slop'", "class_g = 'Firefox' && argb", "class_g = 'Xfce4-panel'", @@ -275,7 +285,7 @@ backend = "glx"; # Enable/disable VSync. # vsync = false -vsync = true +vsync = false # Enable remote control via D-Bus. See the *D-BUS API* section below for more details. # dbus = false @@ -326,13 +336,15 @@ use-ewmh-active-win = true # to maximize performance for full-screen windows. Known to cause flickering # when redirecting/unredirecting windows. paint-on-overlay may make the flickering less obvious. # -# unredir-if-possible = false +unredir-if-possible = true # Delay before unredirecting the window, in milliseconds. Defaults to 0. # unredir-if-possible-delay = 0 # Conditions of windows that shouldn't be considered full-screen for unredirecting screen. -# unredir-if-possible-exclude = [] +unredir-if-possible-exclude = [ +# "class_g ?= 'mpv'" +] # Use 'WM_TRANSIENT_FOR' to group windows, and consider windows # in the same group focused at the same time. @@ -384,7 +396,7 @@ glx-no-rebind-pixmap = true # has actually changed. Potentially degrades the performance, but might fix some artifacts. # The opposing option is use-damage # -no-use-damage = true +use-damage = false # use-damage = true # Use X Sync fence to sync clients' draw calls, to make sure all draw diff --git a/bspwm/.config/polybar/config b/bspwm/.config/polybar/config index c6815a9..8e13c1f 100644 --- a/bspwm/.config/polybar/config +++ b/bspwm/.config/polybar/config @@ -8,7 +8,9 @@ ;===================================================== [fonts] font-0 = Iosevka Nerd Font:size=11:style=Heavy,Regular:antialias=true;1 -font-1 = Noto Sans CJK JP:size=14:antialias=true;1 +font-1 = Iosevka Nerd Font:style=Medium:size=17;3 +font-2 = Symbola:size=11:style=Heavy,Regular:antialias=true;1 +font-3 = Noto Sans CJK JP:size=14:antialias=true;1 [colors] include-file = ~/.cache/wal/polybar @@ -19,10 +21,13 @@ margin-bottom = 5 [bar/default] enable_ipc = true +bottom = false width = 100%:-12 +#width = 90% height = 28 offset-x = 6 -offset-y = 3 +#offset-x = 5% +offset-y = 6 dim-value = 1.0 cursor-click = pointer background = ${colors.background} @@ -42,37 +47,43 @@ module-margin-left = 2 module-margin-right = 1 font-0 = ${fonts.font-0} font-1 = ${fonts.font-1} +font-2 = ${fonts.font-2} wm-restack = bspwm override-redirect = true scroll-up = bspwm-desknext scroll-down = bspwm-deskprev -[bar/HDMI-A-1] -inherit = bar/default -monitor = ${env:MONITOR:HDMI-A-1} -modules-left = bspwm -modules-center = -modules-right = xwindow mpd mixer date - [bar/DisplayPort-1] inherit = bar/default monitor = ${env:MONITOR:DisplayPort-1} modules-left = bspwm -modules-center = xwindow -modules-right = mpd mixer date +modules-center = fancy-left xwindow fancy-right +modules-right = mpd date + +[module/fancy-left] +type = custom/text +content = "%{T3}%{T-}%{O-19pt}" +content-foreground = ${colors.primary} +content-padding = 0 + +[module/fancy-right] +type = custom/text +content = "%{O-19pt}%{T3}%{T-}" +content-foreground = ${colors.primary} +content-padding = 0 [module/xwindow] type = internal/xwindow -label = %title:0:90:...% -label-padding-left = 2 -label-padding-right = 2 +label = %title:0:80:...% +label-padding-left = 1 +label-padding-right = 1 label-foreground = ${colors.foreground-focus} label-background = ${colors.primary} label-underline= ${colors.primary} [module/mixer] type = custom/script -exec = mixer listen --color=color2 --volume-icons="奄,奔,墳," +exec = $HOME/bin/mixer listen --color=color2 --volume-icons="奄,奔,墳, " tail = true format-prefix = " " # click-left = kitty -e cmixer & @@ -93,7 +104,7 @@ type = internal/bspwm label-focused = %name% label-focused-foreground = ${colors.foreground-focus} -label-focused-background = ${colors.primary} +label-focused-background = ${colors.primary-alt} label-focused-underline= ${colors.primary} label-focused-underline-size = 5 label-focused-padding-left = 2.5 @@ -252,6 +263,13 @@ format-disconnected-underline = ${self.format-connected-underline} label-disconnected = %ifname% disconnected label-disconnected-foreground = ${colors.foreground-alt} +[module/date-seoul] +type = custom/script +exec = TZ=Asia/Seoul date +"%H:%M KST" +format-prefix = " " +format-prefix-foreground = ${xrdb:color2} +interval = 30 + [module/date] type = internal/date interval = 5 @@ -264,8 +282,9 @@ time-alt = # format-prefix =  ;format-prefix =   -format-prefix = " " -format-prefix-foreground = ${xrdb:color2} +format-prefix = " " +;format-prefix = "" +format-prefix-foreground = ${colors.primary} label = %date%%time% [module/volume] @@ -401,178 +420,6 @@ type = custom/script exec = ~/bin/src/polybar-scripts/polybar-scripts/vpn-nordvpn-status/vpn-nordvpn-status.sh interval = 5 -[module/mixer-mpris] -format-prefix = " " -format-prefix-foreground = ${xrdb:color2} -type = custom/script -exec = mixer mpris -tail = true - -;; Custom Modules For MPRIS D-Bus Interface -;; Use custom/ipc, custom/script -; https://en.wikipedia.org/wiki/Media_control_symbols - -; 'primary_mpris' is bar name of mrpis controller defined in file '/PATH/polybar/bars' - -[module/mpris] -type = custom/script -; Default: 5 (0 if `tail = true`) -interval = 6 -format-foreground = ${colors.nord-purple} -format-padding = 1 -; unicode uf885  , uf883  -exec = echo %{T4}%{T-} -exec-if = mpris_player_control -l -b 'primary_mpris' -;exec-if = [[ -n $(dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.ListNames 2> /dev/null | sed -r -n '/org.mpris.MediaPlayer2/{s@.*org.mpris.MediaPlayer2.([^"]+).*@\1@g;p}') ]] -click-left = polybar-msg cmd toggle 'primary_mpris' &> /dev/null -click-right = polybar-msg cmd restart 'primary_mpris' &> /dev/null -double-click-left = mpris_player_control - -[module/mpris-track] -type = custom/script -; Default: 5 (0 if `tail = true`) -interval = 6 -; Available tokens: -; %output% -; Default: %output% -label = %output:0:60:...% -; unicode uf1bc  , ufa7b 嗢 , uf001  -format-prefix = %{T4} %{T-} -format-prefix-padding-right = 1 -;format =