From d512449151044124bc99637e33bf48aae0daf90d Mon Sep 17 00:00:00 2001 From: yutent Date: Tue, 11 Jul 2023 07:29:36 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E5=A4=A7=E6=B3=A2=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/config/bspwm/bspwmrc | 8 ++-- home/config/ncmpcpp/config | 5 ++- home/config/polybar/colors.ini | 5 ++- home/config/polybar/config.ini | 18 +++------ home/config/polybar/modules.ini | 10 +---- home/config/polybar/modules/bettery.ini | 42 ++++++++++++++++++++ home/config/polybar/modules/bluetooth.ini | 22 +++++++++++ home/config/polybar/modules/comm.ini | 22 +++++------ home/config/polybar/modules/date.ini | 3 +- home/config/polybar/modules/ethernet.ini | 32 +++++++++++++++ home/config/polybar/modules/launch.ini | 8 ++-- home/config/polybar/modules/mpd.ini | 25 ++++++++---- home/config/polybar/modules/power.ini | 9 +++-- home/config/polybar/modules/tray.ini | 7 ++++ home/config/polybar/modules/volume.ini | 48 ++++++----------------- home/config/polybar/modules/wifi.ini | 32 +++++++++++++++ home/config/polybar/modules/workspace.ini | 10 ++--- home/config/polybar/modules/xwindow.ini | 8 ++++ home/config/rofi/colors.rasi | 1 + home/config/rofi/launcher.rasi | 5 ++- home/config/rofi/powermenu.rasi | 8 ++-- home/config/sxhkd/sxhkdrc | 2 +- 22 files changed, 225 insertions(+), 105 deletions(-) create mode 100644 home/config/polybar/modules/bettery.ini create mode 100644 home/config/polybar/modules/bluetooth.ini create mode 100644 home/config/polybar/modules/ethernet.ini create mode 100644 home/config/polybar/modules/tray.ini create mode 100644 home/config/polybar/modules/wifi.ini create mode 100644 home/config/polybar/modules/xwindow.ini diff --git a/home/config/bspwm/bspwmrc b/home/config/bspwm/bspwmrc index 974803c..3efa2e8 100644 --- a/home/config/bspwm/bspwmrc +++ b/home/config/bspwm/bspwmrc @@ -31,8 +31,8 @@ export _JAVA_AWT_WM_NONREPARENTING=1 #wmname LG3D # 设置显示器分辨率 -xrandr --output HDMI-2 --mode 1920x1080 --rate 60 --right-of HDMI-1 --mode 1920x1080 --rate 60 - +xrandr --output HDMI-2 --auto --right-of HDMI-1 +xrandr --output HDMI-1 --mode 1920x1080 --rate 60 # 干掉已经运行的进程 killall -9 sxhkd picom nm-applet dunst xsettingsd polybar @@ -52,7 +52,7 @@ bspc config active_border_color "$color_background" bspc config presel_feedback_color "$color_background" # 工作区跟随鼠标切换 -bspc config focus_follows_pointer true +bspc config focus_follows_pointer false # monocle 布局关闭边框、边距 bspc config borderless_monocle true @@ -60,7 +60,7 @@ bspc config gapless_monocle true # 工作区只有一个窗口时, 将工作区切为monocle布局 -bspc config single_monocle true +# bspc config single_monocle true diff --git a/home/config/ncmpcpp/config b/home/config/ncmpcpp/config index 4e4d66d..d076aac 100644 --- a/home/config/ncmpcpp/config +++ b/home/config/ncmpcpp/config @@ -18,8 +18,9 @@ alternative_header_second_line_format = {$b$3%a$/b - $5%t$9} visualizer_data_source = /tmp/mpd.fifo visualizer_output_name = "mpd visualizer" visualizer_in_stereo = "yes" -visualizer_type = "spectrum" - +visualizer_look = ●● +#visualizer_type = "spectrum" +visualizer_type = "ellipse" # 进度条 progressbar_look = ▂▂▂ diff --git a/home/config/polybar/colors.ini b/home/config/polybar/colors.ini index a20d1f4..83e8264 100644 --- a/home/config/polybar/colors.ini +++ b/home/config/polybar/colors.ini @@ -2,7 +2,8 @@ background = #475569 foreground = #d8dee9 -altbackground = #39404f +altbackground = #55657d +altbackground2 = #3d495b altforeground = #768bb2 accent = #81a1c1 @@ -21,4 +22,4 @@ altyellow = #ebcb8b altblue = #81a1c1 altmagenta = #b48ead altcyan = #8fbcbb -altwhite = #eceff4 \ No newline at end of file +altwhite = #eceff4 diff --git a/home/config/polybar/config.ini b/home/config/polybar/config.ini index a0dafc2..3747f1a 100644 --- a/home/config/polybar/config.ini +++ b/home/config/polybar/config.ini @@ -10,7 +10,9 @@ include-file = ./modules.ini [bar/main] -;override-redirect = true +monitor-strict = true + +override-redirect = true owm-restack = bspwm ;locale = zh_CN.UTF-8 @@ -34,14 +36,15 @@ font-0 = "Raleway:size=11;3" font-1 = "HarmonyOS Sans SC:size=11;3" font-2 = "Material Icons:size=14;5" font-3 = "Symbols Nerd Font:size=15;4" -font-4 = "Arial:size=10;4" +font-4 = "Arail:size=10;3" +font-5 = "Material Icons:size=10;5" ;font-5 = "DejaVu Sans:size=15;4" fixed-center = true modules-left = logo workspace pipe-db mpd modules-center = date -modules-right = netspeed pipe tray pipe volume power +modules-right = netspeed pipe tray pipe ethernet wifi bluetooth volume battery pipe power tray-maxsize = 16 @@ -77,12 +80,3 @@ compositing-overline = over compositing-underline = over compositing-border = over - - -[module/tray] -type = internal/tray - -;tray-position = adaptive -tray-padding = 4 -tray-detached = false -tray-background = ${color.background} diff --git a/home/config/polybar/modules.ini b/home/config/polybar/modules.ini index 9354369..e5b42c4 100644 --- a/home/config/polybar/modules.ini +++ b/home/config/polybar/modules.ini @@ -1,10 +1,4 @@ ; load all modules ; -include-file = ./modules/comm.ini -include-file = ./modules/launch.ini -include-file = ./modules/date.ini -include-file = ./modules/speed.ini -include-file = ./modules/workspace.ini -include-file = ./modules/power.ini -include-file = ./modules/volume.ini -include-file = ./modules/mpd.ini \ No newline at end of file +; 直接引入整个目录 +include-directory = ./modules diff --git a/home/config/polybar/modules/bettery.ini b/home/config/polybar/modules/bettery.ini new file mode 100644 index 0000000..b90650a --- /dev/null +++ b/home/config/polybar/modules/bettery.ini @@ -0,0 +1,42 @@ +;[module/battery] +;type = internal/battery +; +;full-at = 99 +; +;battery = intel-rapl +;adapter = intel-rapl +; +;format-charging = +;format-charging-prefix = " " +;format-charging-prefix-font = 3 +;format-charging-prefix-foreground = ${color.red} +;format-charging-background = ${color.altbackground} +; +; +;label-charging = %percentage%% +;label-discharging = %percentage%% +; +; +;format-full = +;format-full-prefix = " " +;format-full-prefix-font = 3 +;format-full-prefix-foreground = ${color.red} +;format-full-background = ${color.altbackground} +; +;label-full = %percentage%% + + + +[module/battery] +type = custom/text + +format = %{T5} 99% %{T-} +format-foreground = ${color.accent} +format-background = ${color.altbackground2} +format-margin = 1 + +format-prefix = "" +format-prefix-foreground = ${color.green} +format-prefix-background = ${color.altbackground} +format-prefix-padding = 1 +format-prefix-font = 3 diff --git a/home/config/polybar/modules/bluetooth.ini b/home/config/polybar/modules/bluetooth.ini new file mode 100644 index 0000000..bcbf759 --- /dev/null +++ b/home/config/polybar/modules/bluetooth.ini @@ -0,0 +1,22 @@ +[module/bluetooth] +type = custom/script +exec = $HOME/.config/polybar/scripts/bluetooth.sh +interval = 5 +tail = true +format =