Compare commits

..

No commits in common. "master" and "i3" have entirely different histories.
master ... i3

108 changed files with 450 additions and 2606 deletions

View File

@ -1,86 +1,22 @@
# wm-logs
记录`debian bookworm + wm`从0开始配置的历险记。
## 社区源
部分软件只有社区源(`https://repo.izero.im`)里有, debian官方源里并没有。
## 基础安装
```bash
# sudo apt install i3 ly xserver-xorg picom polybar-git rofi feh xfce-polkit dunst picom
sudo apt install bspwm ly i3lock-color xserver-xorg picom polybar-git rofi feh xfce-polkit dunst picom
# 一些实用的软件
sudo apt install xsettingsd plank alacritty qt5-style-kvantum qt5ct thunar file-roller flameshot-blur \
font-viewer network-manager-gnome crossover fcitx5
# sudo apt install i3 ly alacritty xserver-xorg picom polybar rofi feh
sudo apt install bspwm ly alacritty xserver-xorg picom polybar rofi feh
```
- `ly` 一个TUI形式的`display manager`
- ~~`i3` 平铺式窗口管理管理器~~ // 从入门到放弃, 改为用bspwm了
- `bspwm` 另外一个平铺式窗口管理器
- `xserver-xorg` X服务, 也可以装`xorg`包
- `i3lock-color` i3lock的升级版, 支持背景 (需要加社区源, 见上方)
- `xserver-xorg` X
- `picom` 一个轻量的流行的特效合成器
- `polybar-git` 状态栏, 使用git版, 是为了自定义tray的位置。详见 PR[#2595](https://github.com/polybar/polybar/pull/2595)
- `polybar` 状态栏
- `rofi` 应用启动器
- `feh` 壁纸设置器
- `picom` Xorg的一个合成器, 可以让窗口透明、阴影、模糊等效果
- `xfce-polkit` polkit的东东, 权限认证用的。 安装之后, 普通用户打开需要root权限的应用时, 才能正常弹出授权弹窗。
- `plank` 一个轻量的dock应用
- `xsettingsd` 一个用来设置主题等的工具
- `alacritty` 一个;rust开发的终端模拟器, 可以自行选择
- `qt5-style-kvantum、qt5ct` 设置qt应用的主题的
- `thunar` xfce家的文件管理器。(想要挂载网络共享盘, 如smb的, 还需要安装一个服务`gvfs-backends`)
- `file-roller` gnome家的压缩软件, 很好用。
- `flameshot-blur` flameshot的精简版, 去除了部分不实用的功能, 并将模糊改为高斯模糊。
- `font-viewer` 字体查看器
- `network-manager-gnome` 管理管理器
- `crossover` 基于wine的一个商业版本。(价格不贵, ~~但是不付费也可以一直试用~~, v23.0之后不能无限试用了)
- `fcitx5` 小企鹅输入法
- `xss-lock` 一个可以让你在系统睡眠/休眠时自动锁屏的小工具。
- `dunst` 一个轻量的系统通知程序。
- `timeshift` 系统备份和快照的神器
- `webp-pixbuf-loader` 一个可以让你的文件管理器预览webp图片的库。
- `exa` rust版`ls`, 有高亮, 更直观。
- `xclip` 命令行版的剪切板操作工具
- `synaptic` 带图形界面的包管理器
- `ncmpcpp` 一个命令版行的mpd客户端, 有个很炫的频谱界面
- `btop` 一个好看的top命令替代品, 另外还有一个叫 `htop`
## 配套
```bash
# 字体 (需要要加社区源)
# 这2个官方源里就有
sudo apt install fonts-noto-cjk fonts-noto-color-emoji
# 这几个在社区源里
sudo apt install fonts-harmony-os-sans fonts-material-icons fonts-menlo fonts-raleway fonts-symbols-nerd-font
# 音频相关
## sudo apt install pavucontrol pulseaudio
sudo apt install pipewire-audio
# 蓝牙相关
# 不安装 libspa-0.2-bluetooth (可安装pipewire-audio一把梭), 连不上蓝牙耳机
#
sudo apt install blueman
# 需要将蓝牙图标放到托盘上时, 可以执行以下命令添加启动
# 不需要时, 可自行给polybar添加自定义模块, 因为托盘功能, 在polybar上体验不太好
systemctl --user daemon-reload
systemctl --user enable blueman-applet
systemctl --user start blueman-applet
```
## 娱乐功能
- `mpd, mpc` 音乐播放
### 一些系统配置
@ -88,12 +24,3 @@ systemctl --user start blueman-applet
- `.Xmodmap` 键盘按键映射文件, 用于修改键盘按键。 我这里主要是调换`Super`和`Alt`键, 并把`大写键`改成一个用不到的日文键, 拿来做输入法切换。
- `.bashrc` bash的配置
- `.inputrc` 对文本输入的一些简单配置, 仅对使用`bash`时有效。
## 预览
<img src="./preview/power_rofi.webp" style="max-width:720px;">
<img src="./preview/launcher.webp" style="max-width:720px;">
<img src="./preview/lock.webp" style="max-width:720px;">
<img src="./preview/desktop1.webp" style="max-width:720px;">
<img src="./preview/desktop2.webp" style="max-width:720px;">

View File

@ -13,22 +13,21 @@ shopt -s histappend
HISTSIZE=20000
HISTFILESIZE=20000
export HISTTIMEFORMAT="[%F %T] "
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
PS1='\[\e[1;31m\]\[\e[32m\]\[\e[33m\]\[\e[m\]\[\e[34m\]  \w\[\e[m\]\[\e[31m\]$(__git_ps1)\[\e[m\] '
PS1='\[\e[1;31m\]\[\e[32m\]\[\e[33m\]\[\e[m\]\[\e[34m\]  \w\[\e[m\]\[\e[31m\]$(__git_ps1)\[\e[m\] '
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
#alias ls='ls --color=auto'
alias ls='exa --color=auto'
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
@ -41,16 +40,20 @@ fi
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# some more ls aliases
#alias ll='ls -lh --time-style=+%Y.%m.%d_%H:%M'
# 用rust版的exa替代ls
alias ll='exa -l --time-style long-iso'
alias ll='ls -lh --time-style=+%Y.%m.%d_%H:%M'
alias la='ll -a'
alias l='ll'
export HTTP_PROXY="http://127.0.0.1:7890"
export HTTPS_PROXY="http://127.0.0.1:7890"
export ALL_PROXY="socks5://127.0.0.1:7890"
export http_proxy="http://127.0.0.1:7890"
export https_proxy="http://127.0.0.1:7890"
export all_proxy="socks5://127.0.0.1:7890"
export no_proxy="intel-nuc.local,localhost,127.0.0.1,::1"
alias copy='xclip -selection clipboard'
#alias echo='printf'
@ -61,5 +64,3 @@ if ! shopt -oq posix; then
. /etc/bash_completion
fi
fi
#. "/home/yutent/.flutter-completion"

View File

@ -1,27 +0,0 @@
[user]
name = yutent
email = yutent.io@gmail.com
[alias]
co = checkout
br = branch
ci = commit -m
st = status
last = log -1 HEAD
[credential]
helper = store
[core]
excludesfile = ~/.gitignore_global
[pull]
ff = only
[init]
defaultBranch = master
[https]
proxy = http://127.0.0.1:7890
[http]
proxy = http://127.0.0.1:7890
sslVerify = false
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true

View File

@ -1,52 +0,0 @@
" show line number
set nu
" highlight code
syntax enable
syntax on
set t_Co=256
set showcmd
set foldenable
set laststatus=2
"auto indent
set autoindent
" c-like indent
set cindent
set ts=2
set sw=2
set expandtab
set smarttab
set backspace=2
set pastetoggle=<F2>
" default charset
set encoding=utf-8
set fencs=utf-8,gb18030,gbk,gb2312
set fileencodings=utf-8,ucs-bom,chinese
" no backup file & cache
set nobackup
set noswapfile
" diabled visual cpopy
xnoremap p "_dp
" can use mouse anywhere
set mouse=a
"set selection=exclusive
"set selectmode=mouse,key
set clipboard=unnamedplus
" reload file if it changed outside
set autoread
" remmeber histories
set history=100

View File

@ -1,12 +0,0 @@
# 设置qt主题的管理为qt5ct
export QT_QPA_PLATFORMTHEME="qt5ct"
# export HTTP_PROXY="http://127.0.0.1:7890"
# export HTTPS_PROXY="http://127.0.0.1:7890"
# export ALL_PROXY="socks5://127.0.0.1:7890"
# export http_proxy="http://127.0.0.1:7890"
# export https_proxy="http://127.0.0.1:7890"
# export all_proxy="socks5://127.0.0.1:7890"
#
# export no_proxy="intel-nuc.local,localhost,127.0.0.1,::1"

View File

@ -1,122 +0,0 @@
[colors]
draw_bold_text_with_bright_colors = true
[colors.bright]
black = "0x86909B"
blue = "0x64B5F6"
cyan = "0x34E2E2"
green = "0x41D3B7"
magenta = "0xA6A6D1"
red = "0xFC7661"
white = "0xDAE1E9"
yellow = "0xFFD341"
[colors.normal]
black = "0x323F4D"
blue = "0x62aeef"
cyan = "0x05979A"
green = "0x19BC9C"
magenta = "0x9595D0"
red = "0xF33E22"
white = "0xCED6E0"
yellow = "0xF5BD07"
[colors.primary]
background = "0x57606f"
foreground = "0xf2f5fc"
[colors.selection]
background = "#96CCF8"
text = "CellForeground"
[cursor]
blink_interval = 700
[cursor.style]
blinking = "On"
[env]
TERM = "xterm-256color"
WINIT_X11_SCALE_FACTOR = "1.125"
[font]
size = 10.0
[font.bold]
family = "Menlo"
[font.italic]
family = "Menlo"
[font.normal]
family = "Menlo"
[[keyboard.bindings]]
action = "None"
key = "Equals"
mods = "Control"
[[keyboard.bindings]]
action = "None"
key = "Minus"
mods = "Control"
[[keyboard.bindings]]
action = "ClearHistory"
key = "K"
mods = "Super"
[[keyboard.bindings]]
chars = "\f"
key = "K"
mods = "Super"
[[keyboard.bindings]]
action = "Paste"
key = "V"
mods = "Super"
[[keyboard.bindings]]
action = "Copy"
key = "C"
mods = "Super"
[[keyboard.bindings]]
action = "Quit"
key = "W"
mods = "Super"
[[keyboard.bindings]]
action = "None"
key = "Q"
mods = "Super"
[[keyboard.bindings]]
action = "None"
key = "L"
mods = "Super"
[[keyboard.bindings]]
action = "CreateNewWindow"
key = "N"
mods = "Super"
[[mouse.bindings]]
action = "None"
mouse = "Middle"
[scrolling]
history = 66666
[window]
dynamic_title = true
opacity = 0.98
[window.dimensions]
columns = 135
lines = 40
[window.padding]
x = 6
y = 6

View File

@ -1,5 +1,5 @@
env:
TERM: xterm-256color
TERM: alacritty
WINIT_X11_SCALE_FACTOR: '1.125'
window:

View File

@ -1,58 +0,0 @@
[colors]
draw_bold_text_with_bright_colors = true
[colors.bright]
black = "0x86909B"
blue = "0x64B5F6"
cyan = "0x34E2E2"
green = "0x41D3B7"
magenta = "0xA6A6D1"
red = "0xFC7661"
white = "0xDAE1E9"
yellow = "0xFFD341"
[colors.normal]
black = "0x323F4D"
blue = "0x62aeef"
cyan = "0x05979A"
green = "0x19BC9C"
magenta = "0x9595D0"
red = "0xF33E22"
white = "0xCED6E0"
yellow = "0xF5BD07"
[colors.primary]
background = "0x57606f"
foreground = "0xf2f5fc"
[colors.selection]
background = "#96CCF8"
text = "CellForeground"
[env]
TERM = "xterm-256color"
WINIT_X11_SCALE_FACTOR = "1.125"
[font]
size = 10.0
[font.bold]
family = "Menlo"
[font.italic]
family = "Menlo"
[font.normal]
family = "Menlo"
[window]
dynamic_title = true
opacity = 0.98
[window.dimensions]
columns = 78
lines = 26
[window.padding]
x = 6
y = 6

View File

@ -1,63 +0,0 @@
env:
TERM: xterm-256color
WINIT_X11_SCALE_FACTOR: '1.125'
window:
dimensions:
columns: 78
lines: 26
padding:
x: 6
y: 6
opacity: 0.85
font:
normal:
family: Menlo
bold:
family: Menlo
italic:
family: Menlo
size: 10.0
colors:
primary:
background: '0x57606f'
foreground: '0xf2f5fc'
selection:
text: 'CellForeground'
background: '#96CCF8'
normal:
black: '0x323F4D'
red: '0xF33E22'
green: '0x19BC9C'
yellow: '0xF5BD07'
blue: '0x62aeef'
magenta: '0x9595D0'
cyan: '0x05979A'
white: '0xCED6E0'
bright:
black: '0x86909B'
red: '0xFC7661'
green: '0x41D3B7'
yellow: '0xFFD341'
blue: '0x64B5F6'
magenta: '0xA6A6D1'
cyan: '0x34E2E2'
white: '0xDAE1E9'
draw_bold_text_with_bright_colors: true
transparent_background_colors: true

View File

@ -1,58 +0,0 @@
[colors]
draw_bold_text_with_bright_colors = true
[colors.bright]
black = "0x86909B"
blue = "0x64B5F6"
cyan = "0x34E2E2"
green = "0x41D3B7"
magenta = "0xA6A6D1"
red = "0xFC7661"
white = "0xDAE1E9"
yellow = "0xFFD341"
[colors.normal]
black = "0x323F4D"
blue = "0x62aeef"
cyan = "0x05979A"
green = "0x19BC9C"
magenta = "0x9595D0"
red = "0xF33E22"
white = "0xCED6E0"
yellow = "0xF5BD07"
[colors.primary]
background = "0x57606f"
foreground = "0xf2f5fc"
[colors.selection]
background = "#96CCF8"
text = "CellForeground"
[env]
TERM = "xterm-256color"
WINIT_X11_SCALE_FACTOR = "1.125"
[font]
size = 10.0
[font.bold]
family = "Menlo"
[font.italic]
family = "Menlo"
[font.normal]
family = "Menlo"
[window]
dynamic_title = true
opacity = 0.98
[window.dimensions]
columns = 52
lines = 12
[window.padding]
x = 6
y = 6

View File

@ -1,63 +0,0 @@
env:
TERM: xterm-256color
WINIT_X11_SCALE_FACTOR: '1.125'
window:
dimensions:
columns: 52
lines: 12
padding:
x: 6
y: 6
opacity: 0.85
font:
normal:
family: Menlo
bold:
family: Menlo
italic:
family: Menlo
size: 10.0
colors:
primary:
background: '0x57606f'
foreground: '0xf2f5fc'
selection:
text: 'CellForeground'
background: '#96CCF8'
normal:
black: '0x323F4D'
red: '0xF33E22'
green: '0x19BC9C'
yellow: '0xF5BD07'
blue: '0x62aeef'
magenta: '0x9595D0'
cyan: '0x05979A'
white: '0xCED6E0'
bright:
black: '0x86909B'
red: '0xFC7661'
green: '0x41D3B7'
yellow: '0xFFD341'
blue: '0x64B5F6'
magenta: '0xA6A6D1'
cyan: '0x34E2E2'
white: '0xDAE1E9'
draw_bold_text_with_bright_colors: true
transparent_background_colors: true

View File

@ -1,167 +0,0 @@
#!/bin/bash
# 颜色定义, 同alacritty主题
color_border='#57606f'
color_background='#475569'
color_foreground='#d8dee9'
color_altbackground='#39404f'
color_altforeground='#768bb2'
color_accent='#81a1c1'
color_black='#3b4252'
color_red='#bf616a'
color_green='#a3be8c'
color_yellow='#ebcb8b'
color_blue='#81a1c1'
color_magenta='#b48ead'
color_cyan='#88c0d0'
color_white='#e5e9f0'
color_altblack='#4c566a'
color_altred='#bf616a'
color_altgreen='#a3be8c'
color_altyellow='#ebcb8b'
color_altblue='#81a1c1'
color_altmagenta='#b48ead'
color_altcyan='#8fbcbb'
color_altwhite='#eceff4'
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
## 修复java程序打开空白的问题
export _JAVA_AWT_WM_NONREPARENTING=1
# 或者安装wmname后执行下面这句
#wmname LG3D
# 设置显示器分辨率
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 plank xss-lock
killall -9 sxhkd xsettingsd
# 2个显示器, 左显示器配置4个工作区, 右显示器只配置1个工作区
bspc monitor HDMI-1 -d I II III IV
bspc monitor HDMI-2 -d V VI
# bspwm 基础配置
bspc config border_width 2
bspc config window_gap 8
bspc config split_ratio 0.52
bspc config focused_border_color "$color_blue"
bspc config normal_border_color "$color_border"
bspc config active_border_color "$color_border"
bspc config presel_feedback_color "$color_border"
# 将这2个桌面的布局设为monocle
bspc desktop II -l monocle
bspc desktop V -l monocle
# 工作区跟随鼠标切换
bspc config focus_follows_pointer false
# monocle 布局关闭边框、边距
bspc config borderless_monocle true
bspc config gapless_monocle true
# 工作区只有一个窗口时, 将工作区切为monocle布局
bspc config single_monocle true
# kill掉所有的订阅进程
all_sub_pid=$(pgrep -f 'bspc subscribe')
if [ "$all_sub_pid" ]; then
kill -9 $all_sub_pid
fi
# 删除已有的规则
bspc rule -r *:*
# 默认所有的应用都浮动
bspc rule -a *:* state=floating focus=on follow=on
bspc rule -a Plank layer=above
# 终端默认设为浮动
# bspc rule -a Alacritty state=floating focus=on follow=on
# bspc rule -a Xfce4-terminal state=floating focus=on follow=on
# 一些软件, 也设为浮动
# for app_c in Thunar Code Sublime_text Google-chrome Inkscape Gnome-boxes \
# dingtalk_run Crossover TelegramDesktop
# do
# bspc rule -a "$app_c" state=floating focus=on follow=on
# done
# bspc rule -a Code state=tiled focus=on follow=on
# 设置壁纸
feh --bg-fill --randomize ~/.local/share/backgrounds/
# 修复鼠标状态
xsetroot -cursor_name left_ptr
# 设置系统主题
xsettingsd &
if [[ ! "$(pidof picom)" ]]; then
picom -b --experimental-backends
fi
# 一些配套服务
if [[ ! "$(pidof xfce-polkit)" ]]; then
xfce-polkit &
fi
if [[ ! "$(pidof polybar)" ]]; then
polybar main -r &
fi
if [[ ! "$(pidof dunst)" ]]; then
dunst &
fi
if [[ ! "$(pidof plank)" ]]; then
# 延时5秒再执行
(sleep 5; plank) &
fi
#if [[ ! "$(pidof nm-applet)" ]]; then
# nm-applet &
#fi
# 启动配套的服务
# 睡眠/休眠时, 自动锁屏
if [[ ! "$(pidof xss-lock)" ]]; then
xss-lock --transfer-sleep-lock -- ~/.local/bin/scripts/xlock.sh &
fi
# 键盘热键
sxhkd &
## 一些已经用systemd启动的服务
# pipewire, mpd, blueman
# 每次启动时, 删除该文件
if [ -f ~/.cxoffice/wechat/.eval ]; then
rm ~/.cxoffice/wechat/.eval
fi
# 订阅事件`
(sleep 3; ~/.config/bspwm/subscribe.sh) &
# 干掉wine应用的阴影
fuck_wine_shadow &

View File

@ -1,10 +0,0 @@
#!/bin/bash
bspc subscribe pointer_action | while read -a msg ; do
ev="${msg[5]}" # begin | end
nid="${msg[3]}" # begin | end
#echo ${msg[1]},${msg[3]},${msg[4]},${msg[5]}
if [ $ev == "end" ]; then
bspc node $nid -f
fi
done

View File

@ -1,212 +0,0 @@
#? Config file for btop v. 1.2.13
#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes.
#* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes"
color_theme = "Default"
#* If the theme set background should be shown, set to False if you want terminal background transparency.
theme_background = True
#* Sets if 24-bit truecolor should be used, will convert 24-bit colors to 256 color (6x6x6 color cube) if false.
truecolor = True
#* Set to true to force tty mode regardless if a real tty has been detected or not.
#* Will force 16-color mode and TTY theme, set all graph symbols to "tty" and swap out other non tty friendly symbols.
force_tty = False
#* Define presets for the layout of the boxes. Preset 0 is always all boxes shown with default settings. Max 9 presets.
#* Format: "box_name:P:G,box_name:P:G" P=(0 or 1) for alternate positions, G=graph symbol to use for box.
#* Use whitespace " " as separator between different presets.
#* Example: "cpu:0:default,mem:0:tty,proc:1:default cpu:0:braille,proc:0:tty"
presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:default cpu:0:block,net:0:tty"
#* Set to True to enable "h,j,k,l,g,G" keys for directional control in lists.
#* Conflicting keys for h:"help" and k:"kill" is accessible while holding shift.
vim_keys = False
#* Rounded corners on boxes, is ignored if TTY mode is ON.
rounded_corners = True
#* Default symbols to use for graph creation, "braille", "block" or "tty".
#* "braille" offers the highest resolution but might not be included in all fonts.
#* "block" has half the resolution of braille but uses more common characters.
#* "tty" uses only 3 different symbols but will work with most fonts and should work in a real TTY.
#* Note that "tty" only has half the horizontal resolution of the other two, so will show a shorter historical view.
graph_symbol = "braille"
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_cpu = "default"
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_mem = "default"
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_net = "default"
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_proc = "default"
#* Manually set which boxes to show. Available values are "cpu mem net proc", separate values with whitespace.
shown_boxes = "cpu proc"
#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs.
update_ms = 2000
#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct",
#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly.
proc_sorting = "cpu lazy"
#* Reverse sorting order, True or False.
proc_reversed = False
#* Show processes as a tree.
proc_tree = False
#* Use the cpu graph colors in the process list.
proc_colors = True
#* Use a darkening gradient in the process list.
proc_gradient = True
#* If process cpu usage should be of the core it's running on or usage of the total available cpu power.
proc_per_core = False
#* Show process memory as bytes instead of percent.
proc_mem_bytes = True
#* Show cpu graph for each process.
proc_cpu_graphs = True
#* Use /proc/[pid]/smaps for memory information in the process info box (very slow but more accurate)
proc_info_smaps = False
#* Show proc box on left side of screen instead of right.
proc_left = False
#* (Linux) Filter processes tied to the Linux kernel(similar behavior to htop).
proc_filter_kernel = False
#* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available.
#* Select from a list of detected attributes from the options menu.
cpu_graph_upper = "total"
#* Sets the CPU stat shown in lower half of the CPU graph, "total" is always available.
#* Select from a list of detected attributes from the options menu.
cpu_graph_lower = "total"
#* Toggles if the lower CPU graph should be inverted.
cpu_invert_lower = True
#* Set to True to completely disable the lower CPU graph.
cpu_single_graph = False
#* Show cpu box at bottom of screen instead of top.
cpu_bottom = False
#* Shows the system uptime in the CPU box.
show_uptime = True
#* Show cpu temperature.
check_temp = True
#* Which sensor to use for cpu temperature, use options menu to select from list of available sensors.
cpu_sensor = "Auto"
#* Show temperatures for cpu cores also if check_temp is True and sensors has been found.
show_coretemp = True
#* Set a custom mapping between core and coretemp, can be needed on certain cpus to get correct temperature for correct core.
#* Use lm-sensors or similar to see which cores are reporting temperatures on your machine.
#* Format "x:y" x=core with wrong temp, y=core with correct temp, use space as separator between multiple entries.
#* Example: "4:0 5:1 6:3"
cpu_core_map = ""
#* Which temperature scale to use, available values: "celsius", "fahrenheit", "kelvin" and "rankine".
temp_scale = "celsius"
#* Use base 10 for bits/bytes sizes, KB = 1000 instead of KiB = 1024.
base_10_sizes = False
#* Show CPU frequency.
show_cpu_freq = True
#* Draw a clock at top of screen, formatting according to strftime, empty string to disable.
#* Special formatting: /host = hostname | /user = username | /uptime = system uptime
clock_format = "%X"
#* Update main ui in background when menus are showing, set this to false if the menus is flickering too much for comfort.
background_update = True
#* Custom cpu model name, empty string to disable.
custom_cpu_name = ""
#* Optional filter for shown disks, should be full path of a mountpoint, separate multiple values with whitespace " ".
#* Begin line with "exclude=" to change to exclude filter, otherwise defaults to "most include" filter. Example: disks_filter="exclude=/boot /home/user".
disks_filter = ""
#* Show graphs instead of meters for memory values.
mem_graphs = True
#* Show mem box below net box instead of above.
mem_below_net = False
#* Count ZFS ARC in cached and available memory.
zfs_arc_cached = True
#* If swap memory should be shown in memory box.
show_swap = True
#* Show swap as a disk, ignores show_swap value above, inserts itself after first disk.
swap_disk = True
#* If mem box should be split to also show disks info.
show_disks = True
#* Filter out non physical disks. Set this to False to include network disks, RAM disks and similar.
only_physical = True
#* Read disks list from /etc/fstab. This also disables only_physical.
use_fstab = True
#* Setting this to True will hide all datasets, and only show ZFS pools. (IO stats will be calculated per-pool)
zfs_hide_datasets = False
#* Set to true to show available disk space for privileged users.
disk_free_priv = False
#* Toggles if io activity % (disk busy time) should be shown in regular disk usage view.
show_io_stat = True
#* Toggles io mode for disks, showing big graphs for disk read/write speeds.
io_mode = False
#* Set to True to show combined read/write io graphs in io mode.
io_graph_combined = False
#* Set the top speed for the io graphs in MiB/s (100 by default), use format "mountpoint:speed" separate disks with whitespace " ".
#* Example: "/mnt/media:100 /:20 /boot:1".
io_graph_speeds = ""
#* Set fixed values for network graphs in Mebibits. Is only used if net_auto is also set to False.
net_download = 100
net_upload = 100
#* Use network graphs auto rescaling mode, ignores any values set above and rescales down to 10 Kibibytes at the lowest.
net_auto = True
#* Sync the auto scaling for download and upload to whichever currently has the highest scale.
net_sync = True
#* Starts with the Network Interface specified here.
net_iface = ""
#* Show battery stats in top right if battery is present.
show_battery = True
#* Which battery to use if multiple are present. "Auto" for auto detection.
selected_battery = "Auto"
#* Set loglevel for "~/.config/btop/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG".
#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info.
log_level = "WARNING"

View File

@ -1,64 +0,0 @@
## 通知管理配置
# --------------------------------------------------
# dunstify 常规用法
# 显示应用名、summary, body
# dunstify -a AppName "notice summary" "notice body"
# 显示应用名、summary, body, 进度条(0~100, curr 88)
# dunstify -a AppName -h int:value:88 "notice summary" "notice body"
# 显示自定义图标
# dunstify -i google-chrome -a Chrome title body
# --------------------------------------------------
[global]
# 通知跟随有键盘焦点的显示器
follow = keyboard
width = (300, 500)
# 默认就是8了
# padding = 8
corner_radius = 3
transparency = 25
# 多个通知之间的间隔
gap_size = 4
# 边框样式
frame_width = 1
frame_color = "#86909b"
# 进度条
progress_bar_height = 5
progress_bar_horizontal_alignment = left
progress_bar_min_width = 300
progress_bar_max_width = 500
progress_bar_frame_width = 0
font = Monospace 12
format = "<b>%a</b>\n<span>%s</span>\n%b"
max_icon_size = 48
icon_theme = "Reversal-green-dark"
enable_recursive_icon_lookup = true
mouse_left_click = do_action
mouse_right_click = close_current
[urgency_low]
background="#f2f5fc"
foreground="#57606f"
timeout = 5
[urgency_normal]
background="#f2f5fc"
foreground="#57606f"
timeout = 8
[urgency_critical]
background="#f2f5fc"
foreground="#f33e22"
timeout = 0

View File

@ -1,7 +1,4 @@
[Table]
File=table/wbx.main.dict
# Prev Candidate
PrevCandidate=
# Next Candidate

123
home/config/i3/config Normal file
View File

@ -0,0 +1,123 @@
# i3 配置
set $mod Mod4
set $alt Mod1
# 字体
font pango:monospace 8
# 窗口间隔
gaps inner 8
# 浮动窗口的 最大&最小尺寸
floating_maximum_size 1280 x 768
floating_minimum_size 640 x 480
# 终端默认以浮动形式打开
for_window [class="Alacritty"] floating enable
# 设置浮动窗口有标题栏, 平铺窗口没有 (有点bug, 标题栏去掉之后, 恢复不回来, 下面加了一组快捷键恢复标题栏)
for_window [floating] border normal
for_window [tiling] border none
# Start XDG autostart .desktop files using dex. See also
# https://wiki.archlinux.org/index.php/XDG_Autostart
exec --no-startup-id dex --autostart --environment i3
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
# they are included here as an example. Modify as you see fit.
# 设置睡眠时自动锁屏
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --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.
# 启动网络管理器 tray
exec --no-startup-id nm-applet
# 启动polybar
exec --no-startup-id ~/.config/polybar/launch.sh
# 设置桌面背景
exec --no-startup-id feh --bg-fill /data/debian.png
# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
# 拖拽窗口的按键, 默认为 $mod
floating_modifier $mod
# 注释之后, 按住主键, 即可用鼠标拖拽移动窗口。 取消注释, 则只有标题栏才能拖拽窗口
#tiling_drag modifier titlebar
# 绑定终端启动的快捷键
bindsym $alt+Ctrl+t exec i3-sensible-terminal
# 绑定关闭窗口的快捷键
bindsym $mod+q kill
# 绑定2种不同形式的rofi的快捷键
bindsym $mod+d exec --no-startup-id rofi -show drun
bindsym $alt+Tab exec --no-startup-id rofi -show windowcd
# flameshot 截图的快捷键
bindsym Ctrl+$alt+a exec --no-startup-id flameshot gui
bindsym Ctrl+$alt+Shift+a exec --no-startup-id flameshot gui -d 2000
# 绑定切换窗口布局的快捷键, 在堆叠和平铺中切换
bindsym $mod+F9 layout toggle stacking split
# 来回切平铺方向
bindsym $mod+Shift+equal layout toggle splith splitv
# 来回将当前窗口改为平铺或浮动
bindsym $mod+Shift+space floating toggle
# 显示窗口的标题栏, 用来解决上面提到的bug
bindsym $mod+Shift+Insert border normal
# 设置下个平铺窗口的拆分方向, 横向, backslash为反斜杠键
bindsym $mod+backslash split h
# 同上, 此为纵向, equal 即为"等号键"
bindsym $mod+equal split v
# 来回切换全屏
bindsym F11 fullscreen toggle
# 设置工作区名称
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
# 切换工作区的快捷键
bindsym Ctrl+1 workspace number $ws1
bindsym Ctrl+2 workspace number $ws2
bindsym Ctrl+3 workspace number $ws3
bindsym Ctrl+4 workspace number $ws4
bindsym Ctrl+Tab workspace next
bindsym Ctrl+Shift+Tab workspace prev
# 移动窗口到指定工作区
bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace number $ws4
# 重新加载i3配置文件
bindsym $mod+Shift+c reload
# 重启i3
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
#bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"

View File

@ -1,118 +0,0 @@
[Default Applications]
text/html=google-chrome.desktop
x-scheme-handler/http=google-chrome.desktop
x-scheme-handler/https=google-chrome.desktop
x-scheme-handler/about=google-chrome.desktop
x-scheme-handler/unknown=google-chrome.desktop
inode/directory=xfce4-file-manager.desktop
x-scheme-handler/trash=xfce4-file-manager.desktop
text/csv=wps-office-prometheus.desktop
application/xls=wps-office-prometheus.desktop
application/csv=wps-office-prometheus.desktop
text/spreadsheet=wps-office-prometheus.desktop
application/x-123=wps-office-prometheus.desktop
application/x-xls=wps-office-prometheus.desktop
application/excel=wps-office-prometheus.desktop
application/x-oleo=wps-office-prometheus.desktop
application/msexcel=wps-office-prometheus.desktop
application/x-msexcel=wps-office-prometheus.desktop
application/x-ms-excel=wps-office-prometheus.desktop
application/vnd.ms-excel=wps-office-prometheus.desktop
application/x-quattropro=wps-office-prometheus.desktop
application/x-planperfect=wps-office-prometheus.desktop
application/x-dos_ms_excel=wps-office-prometheus.desktop
text/comma-separated-values=wps-office-prometheus.desktop
application/vnd.sun.xml.calc=wps-office-prometheus.desktop
text/x-comma-separated-values=wps-office-prometheus.desktop
application/x-applix-spreadsheet=wps-office-prometheus.desktop
application/tab-separated-values=wps-office-prometheus.desktop
application/vnd.stardivision.calc=wps-office-prometheus.desktop
application/vnd.sun.xml.calc.template=wps-office-prometheus.desktop
application/vnd.oasis.opendocument.spreadsheet=wps-office-prometheus.desktop
application/vnd.oasis.opendocument.spreadsheet-template=wps-office-prometheus.desktop
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet=wps-office-prometheus.desktop
application/vnd.openxmlformats-officedocument.spreadsheetml.template=wps-office-prometheus.desktop
application/vnd.lotus-1-2-3=wps-office-prometheus.desktop
application/x-excel=wps-office-prometheus.desktop
application/x-mps=wps-office-prometheus.desktop
application/x-sc=wps-office-prometheus.desktop
application/x-sylk=wps-office-prometheus.desktop
application/x-xbase=wps-office-prometheus.desktop
text/tab-separated-values=wps-office-prometheus.desktop
zz-application/zz-winassoc-xls=wps-office-prometheus.desktop
application/wps-office.xls=wps-office-prometheus.desktop
application/wps-office.xlt=wps-office-prometheus.desktop
application/wps-office.xlsx=wps-office-prometheus.desktop
application/wps-office.xltx=wps-office-prometheus.desktop
application/wps-office.et=wps-office-prometheus.desktop
application/wps-office.ett=wps-office-prometheus.desktop
application/wps-office.ets=wps-office-prometheus.desktop
application/wps-office.eto=wps-office-prometheus.desktop
application/wps-office.uos=wps-office-prometheus.desktop
application/powerpoint=wps-office-prometheus.desktop
application/mspowerpoint=wps-office-prometheus.desktop
application/x-mspowerpoint=wps-office-prometheus.desktop
application/vnd.mspowerpoint=wps-office-prometheus.desktop
application/vnd.ms-powerpoint=wps-office-prometheus.desktop
application/vnd.sun.xml.impress=wps-office-prometheus.desktop
application/vnd.stardivision.impress=wps-office-prometheus.desktop
application/vnd.sun.xml.impress.template=wps-office-prometheus.desktop
application/vnd.oasis.opendocument.presentation=wps-office-prometheus.desktop
application/vnd.oasis.opendocument.presentation-template=wps-office-prometheus.desktop
application/vnd.openxmlformats-officedocument.presentationml.slide=wps-office-prometheus.desktop
application/vnd.openxmlformats-officedocument.presentationml.template=wps-office-prometheus.desktop
application/vnd.openxmlformats-officedocument.presentationml.slideshow=wps-office-prometheus.desktop
application/vnd.openxmlformats-officedocument.presentationml.presentation=wps-office-prometheus.desktop
application/wps-office.ppt=wps-office-prometheus.desktop
application/wps-office.pptx=wps-office-prometheus.desktop
application/wps-office.pot=wps-office-prometheus.desktop
application/wps-office.potx=wps-office-prometheus.desktop
application/wps-office.dps=wps-office-prometheus.desktop
application/wps-office.dpt=wps-office-prometheus.desktop
application/wps-office.dpss=wps-office-prometheus.desktop
application/wps-office.dpso=wps-office-prometheus.desktop
application/wps-office.uop=wps-office-prometheus.desktop
text/rtf=wps-office-prometheus.desktop
application/rtf=wps-office-prometheus.desktop
application/msword=wps-office-prometheus.desktop
application/x-msword=wps-office-prometheus.desktop
application/wordperfect=wps-office-prometheus.desktop
application/vnd.ms-word=wps-office-prometheus.desktop
application/msword-template=wps-office-prometheus.desktop
application/vnd.wordperfect=wps-office-prometheus.desktop
application/vnd.sun.xml.writer=wps-office-prometheus.desktop
application/vnd.sun.xml.writer.global=wps-office-prometheus.desktop
application/vnd.sun.xml.writer.template=wps-office-prometheus.desktop
application/vnd.oasis.opendocument.text=wps-office-prometheus.desktop
application/vnd.oasis.opendocument.text-template=wps-office-prometheus.desktop
application/vnd.openxmlformats-officedocument.wordprocessingml.document=wps-office-prometheus.desktop
application/vnd.openxmlformats-officedocument.wordprocessingml.template=wps-office-prometheus.desktop
application/wps-office.doc=wps-office-prometheus.desktop
application/wps-office.dot=wps-office-prometheus.desktop
application/wps-office.dotx=wps-office-prometheus.desktop
application/wps-office.docx=wps-office-prometheus.desktop
application/wps-office.wps=wps-office-prometheus.desktop
application/wps-office.wpt=wps-office-prometheus.desktop
application/wps-office.wpss=wps-office-prometheus.desktop
application/wps-office.wpso=wps-office-prometheus.desktop
application/wps-office.uot=wps-office-prometheus.desktop
image/png=feh.desktop
image/jpeg=feh.desktop
image/webp=feh.desktop
font/woff=org.gnome.FontViewer.desktop
application/pdf=atril.desktop
[Added Associations]
x-scheme-handler/http=xfce4-web-browser.desktop;
x-scheme-handler/https=xfce4-web-browser.desktop;
inode/directory=xfce4-file-manager.desktop;
x-scheme-handler/trash=xfce4-file-manager.desktop;
image/png=feh.desktop;
image/jpeg=feh.desktop;
text/plain=sublime_text.desktop;
application/x-shellscript=sublime_text.desktop;
application/x-xbel=sublime_text.desktop;
image/webp=feh.desktop;
text/x-csrc=vim.desktop;
font/woff=org.gnome.FontViewer.desktop;
application/pdf=org.pwmt.zathura-pdf-poppler.desktop;atril.desktop;

View File

@ -1,28 +0,0 @@
## 歌曲切换通知
# execute_on_song_change = dunstify "$(mpc current)"
# ----------- 基础配置 ------------
# 默认显示频谱视图
startup_screen = visualizer
user_interface = alternative
header_visibility = no
# ------------ end ------------
# 头部内容格式
alternative_header_first_line_format = ""
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_look = ●●
#visualizer_type = "spectrum"
visualizer_type = "ellipse"
# 进度条
progressbar_look = ▂▂▂
progressbar_color = black
progressbar_elapsed_color = yellow

View File

@ -2,18 +2,6 @@
backend = "glx";
vsync = true;
# 圆角
corner-radius = 4;
rounded-corners-exclude = [
# "window_type = 'normal'",
"window_type = 'dock'",
"window_type = 'desktop'",
"class_g ?= 'rofi'",
"class_g ?= 'polybar'"
];
# 阴影
shadow = true;
shadow-radius = 12;
@ -26,15 +14,8 @@ shadow-exclude = [
"class_g *= '.exe'",
# chrome
"name *= 'Chrome'",
"class_g ?= 'rofi'",
"class_g = 'io.github.celluloid_player.Celluloid'",
"class_g = 'gnome-builder'",
# 这个是啥我也不清楚, 大家都写
# 这2个是啥我也不清楚, 大家都写
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'",
# 这个大概是gtk4应用
"_GTK_FRAME_EXTENTS@:c"
]
@ -48,6 +29,7 @@ fade-out-step = 0.03;
fade-delta = 5;
fade-exclude = [
"class_g = 'slop'",
"class_g *= 'fcitx'"
]
@ -57,10 +39,7 @@ fade-exclude = [
opacity-rule = [
# telegram pop media viewer
"100:name = 'Media viewer'",
"100:class_g = 'Gnome-boxes'",
"100:class_g = 'gnome-builder'",
"100:class_g = 'io.github.celluloid_player.Celluloid'",
"100:name *= 'Chrome'",
"100:class_g *= 'Gnome-boxes'",
"100:class_g *= '.exe'"
]
@ -74,12 +53,9 @@ blur-size = 3;
blur-background-exclude = [
# wine 应用不加模糊
"class_g *= '.exe'",
"window_type = 'dock'",
# "window_type = 'dock'",
"window_type = 'desktop'",
"window_type = 'tooltip'",
# "window_type = 'popup_menu'",
"class_g = 'io.github.celluloid_player.Celluloid'",
"class_g = 'gnome-builder'",
"class_g = 'slop'",
"_GTK_FRAME_EXTENTS@:c"
];

View File

@ -1,25 +0,0 @@
[color]
background = #47556980
foreground = #d8dee9
altbackground = #55657d80
altbackground2 = #3d495b80
altforeground = #768bb2
accent = #81a1c1
black = #3b4252
red = #fb818d
green = #a3be8c
yellow = #ebcb8b
blue = #81a1c1
magenta = #b48ead
cyan = #88c0d0
white = #e5e9f0
altblack = #4c566a
altred = #bf616a
altgreen = #a3be8c
altyellow = #ebcb8b
altblue = #81a1c1
altmagenta = #b48ead
altcyan = #8fbcbb
altwhite = #eceff4

View File

@ -1,30 +1,54 @@
[colors]
xfs=#e1e1e1
xbs=#8c91cf
xbg=#80d0d0d0
xbg2=#00000000
xfg=#ffffff
;; ------------------------------
color0=#282828
color1=#383838
color2=#4b4b4b
color3=#5b5b5b
color4=#bdbdbd
color5=#cecece
color6=#e0e0e0
color7=#f5f5f5
red=#eb0029
orange=#E85D00
yellow=#faa41a
green=#87a566
aqua=#00a489
blue=#4169e1
purple=#7851a9
brown=#574F4A
[global/wm]
margin-top = 0
margin-bottom = 0
primary = #F0C674
secondary = #8ABEB7
alert = #A54242
disabled = #707880
include-file = ./colors.ini
include-file = ./modules.ini
[variables]
mpadding = 1
margin = 3
[bar/main]
monitor-strict = true
;override-redirect = true
owm-restack = bspwm
owm-restack = i3
;locale = zh_CN.UTF-8
locale = zh_CN.UTF-8
background = ${color.background}
foreground = ${color.foreground}
background = ${colors.xbg}
foreground = ${colors.xfg}
width = 100%
height = 24
border-size = 5
border-color = ${color.background}
height = 30
border-top-size = 5
border-bottom-size = 5
border-top-color = ${colors.xbg}
border-bottom-color = ${colors.xbg}
padding-left = 0
padding-right = 2
@ -32,51 +56,94 @@ offset-x = 0
offset-y = 0
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 = "Arail:size=10;3"
font-5 = "Material Icons:size=10;5"
;font-5 = "DejaVu Sans:size=15;4"
;radius = 18
font-0 = "HarmonyOS Sans SC:size=11;3"
font-1 = "Symbols Nerd Font:size=16;4"
font-2 = "DejaVu Sans:size=16;4"
fixed-center = true
modules-left = logo workspace pipe-db mpd
modules-left = logo i3
modules-center = date
modules-right = netspeed pipe tray pipe ethernet wifi bluetooth volume battery pipe power
modules-right = netspeed space space hibernate space logout
tray-position = right
tray-maxsize = 16
tray-scale = 1.0
enable-ipc = true
; 可点击鼠标状态
cursor-click = pointer
;; 事件 Fallback
;; 当模块的事件没有定义时, 会fallback 到这里的
;click-left =
;click-middle =
;click-right =
;scroll-up = bspc desktop -f prev.local
;scroll-down = bspc desktop -f next.local
;double-click-left =
;double-click-middle =
;double-click-right =
[settings]
pseudo-transparency = true
screenchange-reload = false
[module/logo]
type = custom/text
content =
content-foreground = ${colors.red}
content-padding = 4
compositing-background = source
compositing-foreground = over
compositing-overline = over
compositing-underline = over
compositing-border = over
[module/i3]
type = internal/i3
enable-click = false
index-sort = true
label-focused = %index%
label-focused-background = ${colors.orange}
label-focused-padding = 3
label-unfocused = %index%
label-unfocused-padding = 3
label-unfocused-foreground = ${colors.color4}
label-visible= %index%
label-visible-padding = 3
label-visible-foreground = ${colors.color4}
[module/date]
type = internal/date
format-padding = ${variables.mpadding}
date = "%m月%d %A"
time = "%k:%M"
label = %date% %time%
label-font = 1
#click-left = alacritty -e "/usr/bin/cal"
[module/netspeed]
type = internal/network
interface = enp86s0
interval = 1.0
format-connected = <label-connected>
format-connected-padding = ${variables.mpadding}
label-connected = "↑%upspeed% ↓%downspeed%"
[module/hibernate]
type = custom/text
;click-left = lxsession-logout -p ""
content = %{T9}%{T-}
content-foreground = ${colors.yellow}
[module/logout]
type = custom/text
;click-left = lxsession-logout -p ""
content = %{T9}襤%{T-}
content-foreground = ${colors.red}
content-padding = 2
[module/space]
type = custom/text
content = %{T1} %{T-}

7
home/config/polybar/launch.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
# 干掉旧进程
pkill polybar
# 等待1秒再启动新的
sleep 1
polybar main -r &

View File

@ -1,4 +0,0 @@
; load all modules
;
; 直接引入整个目录
include-directory = ./modules

View File

@ -1,78 +0,0 @@
[module/battery]
type = internal/battery
;
full-at = 99
; 电池和适配器, 正常不需要填写, 不正常时(自行查看`/sys/class/power_supply/`下的名字)
;battery = BAT0
;adapter = ADP1
;
; -----------------------------------------------------------------------------
; 充电中
; -----------------------------------------------------------------------------
format-charging = <animation-charging><label-charging>
format-charging-margin = 1
; 充电状态的电池图标和配色
animation-charging-0 =
animation-charging-1 =
animation-charging-2 =
animation-charging-3 =
animation-charging-4 =
animation-charging-padding = 2
animation-charging-foreground = ${color.green}
animation-charging-background = ${color.altbackground}
label-charging = %percentage%%
label-charging-padding = 1
label-charging-font = 5
label-charging-foreground = ${color.accent}
label-charging-background = ${color.altbackground2}
; -----------------------------------------------------------------------------
; 未充电
; -----------------------------------------------------------------------------
format-discharging = <ramp-capacity><label-discharging>
format-discharging-margin = 1
; 未充电状态的电池图标和配色
ramp-capacity-0 =
ramp-capacity-0-foreground = ${color.red}
ramp-capacity-1 =
ramp-capacity-1-foreground = ${color.yellow}
ramp-capacity-2 =
ramp-capacity-3 =
ramp-capacity-4 =
ramp-capacity-4-foreground = ${color.green}
ramp-capacity-padding = 2
ramp-capacity-foreground = ${color.blue}
ramp-capacity-background = ${color.altbackground}
label-discharging = %percentage%%
label-discharging-padding = 1
label-discharging-font = 5
label-discharging-foreground = ${color.accent}
label-discharging-background = ${color.altbackground2}
; -----------------------------------------------------------------------------
; 满电
; -----------------------------------------------------------------------------
format-full = <label-full>
format-full-margin = 1
format-full-prefix = ""
format-full-prefix-padding = 1
format-full-prefix-font = 3
format-full-prefix-foreground = ${color.green}
format-full-prefix-background = ${color.altbackground}
label-full = %percentage%%
label-full-padding = 1
label-full-font = 5
label-full-foreground = ${color.accent}
label-full-background = ${color.altbackground2}

View File

@ -1,22 +0,0 @@
[module/bluetooth]
type = custom/script
exec = $HOME/.config/polybar/scripts/bluetooth.sh
interval = 5
tail = true
format = <label>
format-margin = 1
format-prefix =
format-prefix-font = 3
format-prefix-foreground = ${color.blue}
format-prefix-background = ${color.altbackground}
format-prefix-padding = 1
label = %output%
label-foreground = ${color.accent}
label-background = ${color.altbackground2}
label-font = 6
label-padding = 2
click-left = blueman-manager

View File

@ -1,20 +0,0 @@
[module/pipe]
type = custom/text
format = %{T1} %{T-}
[module/pipe-db]
type = custom/text
format = %{T1} %{T-}
format-padding = 2
[module/LD]
type = custom/text
format = "%{T3}%{T-}"
format-background = ${color.background}
format-foreground = ${color.altbackground}
[module/RD]
type = custom/text
format = "%{T3}%{T-}"
format-background = ${color.background}
format-foreground = ${color.altbackground}

View File

@ -1,6 +0,0 @@
[module/date]
type = internal/date
format-padding = 3
date = "%a, %m/%d"
time = "%k:%M"
label = %{A1:alacritty --title Calendar --config-file $HOME/.config/alacritty/calendar.yml --hold -e ".local/bin/scripts/calendar.sh":}%date% %time%%{A}

View File

@ -1,32 +0,0 @@
[module/ethernet]
type = internal/network
interface = enp86s0
; 已连接
format-connected = <label-connected>
format-connected-prefix = ""
format-connected-prefix-foreground = ${color.green}
format-connected-prefix-background = ${color.altbackground}
format-connected-prefix-padding = 1
format-connected-prefix-font = 3
format-connected-foreground = ${color.accent}
format-connected-background = ${color.altbackground2}
format-connected-margin = 1
label-connected = " %local_ip% "
label-connected-font = 5
; 未连接
format-disconnected = <label-disconnected>
format-disconnected-prefix = ""
format-disconnected-prefix-foreground = ${color.green}
format-disconnected-prefix-background = ${color.altbackground}
format-disconnected-prefix-padding = 1
format-disconnected-prefix-font = 3
format-disconnected-foreground = ${color.accent}
format-disconnected-background = ${color.altbackground2}
format-disconnected-margin = 1
label-disconnected = " offline "
label-disconnected-font = 5

View File

@ -1,6 +0,0 @@
[module/logo]
type = custom/text
format =
format-foreground = ${color.red}
format-padding = 3
click-left = rofi -show drun -theme launcher

View File

@ -1,57 +0,0 @@
[module/mpd]
type = internal/mpd
; mpd 在线
format-online = <icon-prev> <toggle> <icon-next> <label-song>
format-online-background = ${color.altbackground}
format-online-padding = 1
; mpd 离线
format-offline = <label-offline>
format-offline-prefix = "  "
format-offline-foreground = ${color.blue}
format-offline-background = ${color.altbackground}
label-offline = "mpd is offline..."
label-offline-foreground = ${color.accent}
label-offline-background = ${color.altbackground2}
label-offline-padding = 2
; 当前歌曲
label-song = %{A1:alacritty --config-file $HOME/.config/alacritty/mpc.yml -e ncmpcpp:}%artist% - %title%%{A}
label-song-ellipsis = true
label-song-foreground = ${color.accent}
label-song-background = ${color.altbackground2}
label-song-padding = 2
; 歌曲时长
label-time = %elapsed%/%total%
icon-random =
icon-repeat =
toggle-on-foreground = ${color.green}
toggle-off-foreground = ${color.blue}
icon-play =
icon-play-foreground = ${color.blue}
icon-pause =
icon-pause-foreground = ${color.green}
icon-stop =
icon-stop-foreground = ${color.red}
icon-prev =
icon-prev-foreground = ${color.blue}
icon-next =
icon-next-foreground = ${color.blue}

View File

@ -1,10 +0,0 @@
[module/power]
type = custom/text
format =
format-foreground = ${color.red}
format-background = ${color.altbackground}
format-padding = 1
click-left = ~/.local/bin/scripts/rofi_powermenu.sh

View File

@ -1,8 +0,0 @@
[module/netspeed]
type = internal/network
; 网卡名称, 自行修改
interface = enp86s0
interval = 1.0
format-connected = <label-connected>
format-connected-padding = 1
label-connected = "%{F#fb818d}↑%upspeed%%{F-} %{F#a3be8c}↓%downspeed%%{F-}"

View File

@ -1,7 +0,0 @@
[module/tray]
type = internal/tray
;tray-position = adaptive
tray-padding = 4
tray-detached = false
tray-background = ${color.background}

View File

@ -1,44 +0,0 @@
[module/volume]
type = internal/pulseaudio
; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false
; Default: true
use-ui-max = false
; 音量显示格式
; 可用标签 <bar-volume> 音量条
format-volume = <ramp-volume><label-volume>
format-volume-margin = 1
; 静音图标
format-muted = " "
format-muted-prefix =
format-muted-prefix-font = 3
format-muted-prefix-foreground = ${color.blue}
format-muted-prefix-background = ${color.altbackground}
format-muted-prefix-padding = 1
# 数字音量
label-volume-font = 5
label-volume-background = ${color.altbackground2}
label-volume-foreground = ${color.accent}
label-volume-padding = 1
; 根据音量变换图标
ramp-volume-0 =
ramp-volume-1 =
ramp-volume-2 =
ramp-volume-3 = 奔
ramp-volume-4 = 奔
ramp-volume-5 = 奔
ramp-volume-6 =
ramp-volume-7 =
ramp-volume-8 =
ramp-volume-9 =
ramp-volume-font = 3
ramp-volume-foreground = ${color.blue}
ramp-volume-background = ${color.altbackground}
ramp-volume-padding = 2

View File

@ -1,32 +0,0 @@
[module/wifi]
type = internal/network
interface = wlo1
; 已连接
format-connected = <label-connected>
format-connected-prefix = ""
format-connected-prefix-foreground = ${color.green}
format-connected-prefix-background = ${color.altbackground}
format-connected-prefix-padding = 1
format-connected-prefix-font = 3
format-connected-foreground = ${color.accent}
format-connected-background = ${color.altbackground2}
format-connected-margin = 1
label-connected = " %essid% "
label-connected-font = 5
; 未连接
format-disconnected = <label-disconnected>
format-disconnected-prefix = ""
format-disconnected-prefix-foreground = ${color.green}
format-disconnected-prefix-background = ${color.altbackground}
format-disconnected-prefix-padding = 1
format-disconnected-prefix-font = 3
format-disconnected-foreground = ${color.accent}
format-disconnected-background = ${color.altbackground2}
format-disconnected-margin = 1
label-disconnected = " offline "
label-disconnected-font = 5

View File

@ -1,22 +0,0 @@
[module/workspace]
type = internal/xworkspaces
enable-click = true
enable-scroll = false
index-sort = true
label-active =
label-active-foreground = ${color.green}
;label-active-background = ${color.altbackground}
label-active-padding = 1
label-occupied =
label-occupied-foreground = ${color.accent}
;label-occupied-background = ${color.altbackground}
label-occupied-padding = 1
label-empty =
label-empty-foreground = ${color.accent}
;label-empty-background = ${color.altbackground}
label-empty-padding = 1

View File

@ -1,8 +0,0 @@
[module/xwindow]
type = internal/xwindow
format-prefix = " "
format-prefix-foreground = ${color.blue}
format-background = ${color.altbackground}
label = %title%
label-maxlen = 25

View File

@ -1,17 +0,0 @@
#!/bin/bash
if bluetoothctl show | grep -q "Powered: yes"; then
if bluetoothctl info | grep -q "Connected: yes"; then
if bluetoothctl info | grep -q "Icon: audio-headphones"; then
echo ""
else
echo ""
fi
else
echo ""
fi
else
echo ""
fi

View File

@ -1,22 +0,0 @@
* {
border: 0;
margin: 0;
padding: 0;
spacing: 0;
bg: #57606fae;
fg: #f8f8f2;
dark: #39404f;
red: #bf616a;
blue: #81a1c1;
green: #a3be8c;
grey: #ffffff10;
greydim: #aeaeae;
bluea: #81a1c150;
greena: #a3be8ca0;
background-color: @bg;
text-color: @fg;
font: "Menlo 12";
}

View File

@ -0,0 +1,106 @@
/*
* ROFI color theme
*
* Based on Something Found in the Internet
*
* User: Yutent
*
*/
configuration {
modi: "window,combi,ssh,drun,run";
font: "Menlo 12";
lines: 10;
columns: 2;
dpi: 192;
drun-icon-theme: "Reversal-green-dark";
drun {
display-name: "";
}
run {
display-name: "";
}
window {
display-name: "";
}
windowcd {
display-name: "";
}
ssh {
display-name: "⚝";
}
window-format: "{t}";
timeout {
delay: 10;
action: "kb-cancel";
}
}
* {
border: 0;
margin: 0;
padding: 0;
spacing: 0;
bg: #282a3680;
fg: #f8f8f2;
blue: #6272a4;
purple: #bd93f9;
background-color: @bg;
text-color: @fg;
}
window {
transparency: "real";
border-radius: 6px;
}
mainbox {
children: [inputbar, listview];
}
inputbar {
background-color: @blue;
children: [prompt, entry];
}
entry {
background-color: inherit;
padding: 16px 4px;
}
prompt {
background-color: inherit;
padding: 16px;
}
listview {
lines: 8;
}
element {
children: [element-icon, element-text];
text-color: @blue;
}
element-icon {
size: 2ch;
padding: 12px 10px;
}
element-text {
padding: 12px 0;
text-color: inherit;
}
element-text selected {
text-color: @purple;
}

View File

@ -1,82 +0,0 @@
configuration {
show-icons: false;
}
@import "./colors.rasi"
window {
transparency: "real";
width: 360px;
border-radius: 4px;
background-color: @bg;
}
mainbox {
padding: 24px;
background-color: transparent;
children: [ "inputbar", "listview" ];
}
inputbar {
spacing: 12;
background-color: transparent;
children: [ "textbox-prompt-colon", "prompt"];
}
textbox-prompt-colon {
expand: false;
str: "";
font: "'Material Icons' 24px";
padding: 12px 14px;
border-radius: 50%;
background-color: @blue;
text-color: @fg;
vertical-align: 0.5;
}
prompt {
padding: 12px 16px;
border-radius: 50%;
background-color: @grey;
text-color: @fg;
vertical-align: 0.5;
}
listview {
columns: 6;
lines: 1;
scrollbar: false;
margin:16px 0 0 0;
spacing: 10px;
background-color: transparent;
}
element {
width: 128px;
padding: 24px 32px;
border-radius: 12px;
background-color: @bluea;
cursor: pointer;
}
element-text {
font: "'Material Icons' 32px";
vertical-align: 0.5;
horizontal-align: 0.5;
background-color: transparent;
}
element normal.active,
element alternate.active,
element selected.urgent {
background-color: @green;
}
element selected.normal {
background-color: @green;
}

View File

@ -1,94 +0,0 @@
configuration {
modes: "drun";
icon-theme: "Nordzy-cyan-dark";
drun-match-fields: "name,keywords";
disable-history: true;
drun {
display-name: "";
fallback-icon: "application-x-addon";
}
drun-display-format: "{name}";
}
@theme "./colors.rasi"
window {
fullscreen: true;
transparency: "real";
border-radius: 4px;
background-color: @bg;
}
mainbox {
padding: 24px;
children: [inputbar, listview];
}
inputbar {
background-color: @grey;
border-radius: 50%;
margin: 0 35% 12px;
padding: 0 8px;
children: [prompt, entry];
}
entry {
padding: 14px 4px;
margin: 0 32px 0 0;
font: "Menlo 16";
background-color: transparent;
}
prompt {
padding: 4px 16px;
font: "'Material Icons' bold 24px";
vertical-align: 0.5;
background-color: transparent;
}
listview {
/* added in 1.7.4 */
flow: horizontal;
fixed-columns: true;
columns: 8;
margin: 3%;
cycle: false;
background-color: transparent;
}
element {
width: 300px;
padding: 0 12px;
margin: 12px;
orientation: vertical;
border-radius: 6px;
text-color: @blue;
background-color: transparent;
children: [element-icon, element-text];
}
element-icon {
size: 64;
padding: 12px 10px;
background-color: transparent;
}
element-text {
padding: 12px 0;
horizontal-align: 0.5;
text-color: inherit;
background-color: transparent;
}
element selected {
background-color: @greena;
}
element-text selected {
text-color: #ffffff;
}

View File

@ -1,52 +0,0 @@
configuration {
show-icons: false;
}
@import "./colors.rasi"
window {
transparency: "real";
width: 360px;
border-radius: 4px;
background-color: @bg;
}
mainbox {
padding: 24px;
children: [ "inputbar", "entry", "listview"];
}
inputbar {
spacing: 10px;
background-color: transparent;
children: [ "textbox-prompt-colon", "prompt" ];
}
textbox-prompt-colon {
expand: false;
str: "";
padding: 12px 14px;
border-radius: 50%;
background-color: @blue;
}
prompt {
padding: 12px 16px;
border-radius: 24px;
background-color: @grey;
text-color: @fg;
vertical-align: 0.5;
}
entry {
margin: 16px 0 0 0;
padding: 12px;
border-radius: 6px;
font: "Menlo 18px";
background-color: @grey;
}
listview {
enabled: false;
}

View File

@ -1,94 +0,0 @@
configuration {
show-icons: false;
}
@import "./colors.rasi"
window {
transparency: "real";
width: 600px;
border-radius: 4px;
background-color: @bg;
}
mainbox {
padding: 24px;
children: [ "inputbar", "message", "listview" ];
}
inputbar {
spacing: 12;
background-color: transparent;
children: [ "textbox-prompt-colon", "prompt"];
}
textbox-prompt-colon {
expand: false;
str: "";
font: "'Material Icons' bold 24px";
padding: 12px 17px;
border-radius: 50%;
background-color: @blue;
text-color: @red;
vertical-align: 0.5;
}
prompt {
padding: 12px 16px;
border-radius: 50%;
background-color: @grey;
text-color: @fg;
vertical-align: 0.5;
}
message {
padding: 12px;
border-radius: 12px;
background-color: transparent;
text-color: @greydim;
}
textbox {
background-color: inherit;
text-color: inherit;
vertical-align: 0.5;
}
listview {
columns: 6;
lines: 1;
scrollbar: false;
spacing: 10px;
background-color: transparent;
}
element {
width: 128px;
padding: 24px 32px;
border-radius: 12px;
background-color: @bluea;
cursor: pointer;
}
element-text {
font: "'Material Icons' 32px";
vertical-align: 0.5;
horizontal-align: 0.5;
background-color: transparent;
}
element normal.active,
element alternate.active,
element selected.urgent {
background-color: @green;
}
element selected.normal {
background-color: @green;
}

View File

@ -1,83 +0,0 @@
configuration {
modes: "ssh";
ssh {
display-name: "";
}
timeout {
delay: 10;
action: "kb-cancel";
}
}
@theme "./colors.rasi"
window {
transparency: "real";
width: 720px;
border-radius: 4px;
background-color: @bg;
}
mainbox {
padding: 24px;
children: [inputbar, listview];
}
inputbar {
background-color: @grey;
border-radius: 6px;
margin: 12px 0;
children: [prompt, entry];
}
entry {
background-color: transparent;
padding: 16px 4px;
font: "Menlo 16";
vertical-align: 0.5;
}
prompt {
padding: 16px;
font: "'Material Icons' bold 24px";
vertical-align: 0.5;
background-color: transparent;
}
listview {
lines: 8;
cycle: false;
background-color: transparent;
}
element {
padding: 0 12px;
margin: 0 12px 0 0;
border-radius: 6px;
text-color: @blue;
background-color: transparent;
children: [element-icon, element-text];
}
element-icon {
size: 2ch;
padding: 12px 10px;
background-color: transparent;
}
element-text {
padding: 12px 0;
font: "Menlo 16";
text-color: inherit;
background-color: transparent;
}
element selected {
background-color: @greena;
}
element-text selected {
text-color: #ffffff;
}

View File

@ -1,66 +0,0 @@
configuration {
modes: "windowcd";
icon-theme: "Nordzy-cyan-dark";
//window-thumbnail: true;
window-format: "{c:20}\n<span size='small'>{t:25}</span>";
}
@theme "./colors.rasi"
window {
transparency: "real";
location: center;
width: 1200px;
border-radius: 4px;
background-color: @bg;
}
mainbox {
vertical-align: 0.5;
padding: 48px 24px;
children: [ listview ];
}
listview {
flow: horizontal;
fixed-columns: true;
columns: 3;
lines: 2;
cycle: false;
background-color: transparent;
}
element {
//orientation: vertical;
padding: 32px 6px;
margin: 12px 24px;
border-radius: 6px;
text-color: @blue;
background-color: @grey;
children: [element-icon, element-text];
}
element-icon {
size: 64;
padding: 0 10px;
background-color: transparent;
}
element-text {
padding: 12px 0;
font: "Menlo 14";
vertical-align: 0.5;
text-color: inherit;
background-color: transparent;
}
element selected {
background-color: @greena;
}
element-text selected {
text-color: #ffffff;
}

View File

@ -1,83 +0,0 @@
[
{ "keys": ["ctrl+q"], "command": "" },
/*------------ 复制粘贴等 -------------*/
{ "keys": ["ctrl+x"], "command": "" },
{ "keys": ["ctrl+c"], "command": "" },
{ "keys": ["ctrl+v"], "command": "" },
{ "keys": ["ctrl+a"], "command": "" },
{ "keys": ["ctrl+s"], "command": "" },
{ "keys": ["ctrl+shift+s"], "command": "" },
{ "keys": ["ctrl+z"], "command": "" },
{ "keys": ["ctrl+shift+z"], "command": "" },
{ "keys": ["ctrl+y"], "command": "" },
{ "keys": ["ctrl+u"], "command": "" },
{ "keys": ["ctrl+shift+u"], "command": "" },
{ "keys": ["super+x"], "command": "cut" },
{ "keys": ["super+c"], "command": "copy" },
{ "keys": ["super+v"], "command": "paste" },
{ "keys": ["super+a"], "command": "select_all" },
{ "keys": ["super+s"], "command": "save", "args": { "async": true } },
{ "keys": ["super+z"], "command": "undo" },
{ "keys": ["super+shift+z"], "command": "redo" },
/*------- 打开/关闭文件 -------*/
{ "keys": ["ctrl+w"], "command": "" },
{ "keys": ["ctrl+w"], "command": "", "context":
[
{ "key": "group_has_transient_sheet", "operator": "equal", "operand": true }
]
},
{ "keys": ["ctrl+f4"], "command": "" },
{ "keys": ["ctrl+n"], "command": "" },
{ "keys": ["ctrl+o"], "command": "" },
{ "keys": ["super+w"], "command": "close_file" },
{ "keys": ["super+n"], "command": "new_file" },
{ "keys": ["super+o"], "command": "prompt_open_file" },
/*------------- 注释 -------------*/
{ "keys": ["ctrl+/"], "command": "" },
{ "keys": ["ctrl+shift+/"], "command": "" },
{ "keys": ["ctrl+q"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+q"], "command": "toggle_comment", "args": { "block": true } },
/*------------- 搜索/替换 -------------*/
{ "keys": ["ctrl+f"], "command": "" },
{ "keys": ["ctrl+h"], "command": "" },
{ "keys": ["super+f"], "command": "show_panel", "args": {"panel": "find", "reverse": false} },
{ "keys": ["super+alt+f"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} },
/*------------- 命令面板 -------------*/
{ "keys": ["ctrl+shift+p"], "command": "" },
{ "keys": ["super+shift+p"], "command": "show_overlay", "args": {"overlay": "command_palette"} },
/*------------- 编译 -------------*/
{ "keys": ["ctrl+b"], "command": "" },
{ "keys": ["ctrl+shift+b"], "command": "" },
{ "keys": ["ctrl+break"], "command": "" },
{ "keys": ["super+b"], "command": "build" },
{ "keys": ["super+shift+b"], "command": "build", "args": {"select": true} },
{ "keys": ["ctrl+c"], "command": "cancel_build" },
]

View File

@ -1,12 +0,0 @@
{
"bootstrapped": true,
"http_proxy": "http://127.0.0.1:7890",
"https_proxy": "http://127.0.0.1:7890",
"installed_packages":
[
"Package Control",
],
"in_process_packages":
[
],
}

View File

@ -1,20 +0,0 @@
// Settings in here override those in "Default/Preferences.sublime-settings",
// and are overridden in turn by syntax-specific settings.
{
"font_face": "Material Icons,Menlo",
"font_size": 11,
"margin": 2,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"indent_to_bracket": true,
"word_wrap": true,
"highlight_modified_tabs": true,
"close_deleted_files": false,
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"ignored_packages":
[
"Vintage",
],
"color_scheme": "Mariana.sublime-color-scheme",
}

View File

@ -1,148 +0,0 @@
# ========================================================= #
# #
# 键盘/鼠标绑定, 键名可执行 `xev -event keyboard` 获取 #
# #
# ========================================================= #
# ---------------- wm自身 ------------------
# 重启bspwm
super + shift + r
bspc wm -r
# 重新加载热键绑定
super + Escape
pkill -USR1 -x sxhkd
# --------------- end --------------------
# ---------------- rofi 相关 ----------------
# 启动器
super + d
rofi -show drun -theme launcher
# 工作区中的窗口
alt + Tab
rofi -show windowcd -theme windows
# ssh书签
super + shift + k
rofi -show ssh -theme ssh
# 电源快捷键
ctrl + alt + shift + Escape
~/.local/bin/scripts/rofi_powermenu.sh
# --------------- end --------------------
# ---------------- 系统 相关 ----------------
# 关闭窗口
super + q
bspc node -c
# 全屏
F11
bspc node -t "~"fullscreen
# 锁屏
ctrl + alt + q
~/.local/bin/scripts/xlock.sh --lock
# 将窗口在浮动和平铺中切换
shift + super + space
bspc node -t "~"{floating,tiled}
shift + super + backslash
bspc desktop -l {monocle,tiled}
# 音量调节
XF86Audio{RaiseVolume,LowerVolume}
~/.local/bin/scripts/volume.sh {up, down}
# 静音/取消静音
XF86AudioMute
~/.local/bin/scripts/volume.sh mute
# 音乐控制
XF86Audio{Next,Prev,Play,Stop}
mpc {next,prev,toggle,stop}
# --------------- end --------------------
# ------------ 一些应用的快捷键 -------------
# 启动终端
ctrl + alt + t
alacritty
# 截屏和延时截屏
ctrl + alt + a
flameshot gui
Print
flameshot screen
ctrl + alt + shift + a
flameshot gui -d 2000
shift + Print
flameshot screen -d 2000
# 浏览器快捷键
XF86HomePage
x-www-browser
# 计算器
XF86Calculator
gnome-calculator
# --------------- end --------------------
# ------------ 桌面和工作区 -------------
# 工作区切换
ctrl + {_,shift + }Tab
bspc desktop -f {next.local, prev.local}
# 直接定位到 工作区1
ctrl + 1
bspc desktop -f '^1' --follow
# 将当前窗口移动到上一个/下一个工作区
ctrl + alt + shift + {Left, Right}
bspc node -d {prev.local, next.local} --follow
# --------------- end --------------------
# --------------- 其他 --------------------
# 水平方向增加/减小窗口尺寸
super + {minus,equal}
bspc node -z {left 20 0,left -20 0}
# 竖直方向增加/减小窗口尺寸
super + shift + {minus,equal}
bspc node -z {top 0 20,top 0 -20}

View File

@ -1,9 +0,0 @@
Net/ThemeName "one-dark"
Net/IconThemeName "Nordzy-cyan-dark"
Gtk/CursorThemeName "Bibata-Modern-Classic"
Gtk/DecorationLayout "close,minimize,maximize:"
Gtk/FontName "HarmonyOS Sans SC 10"
Gtk/MonospaceFontName "Menlo 10"
Gtk/ButtonImages 1
Gtk/ToolbarStyle "icons"

View File

@ -1,27 +0,0 @@
#!/bin/bash
win_id=$(wmctrl -l -G -p -x | grep wechat.exe | awk '{print $1}')
shadow_id=${win_id: -4}
shadow_id=$(printf "%d" "0x$shadow_id") # 转十进制
shadow_id=$((shadow_id + 4))
shadow_id=$(printf "%x" $shadow_id) # 转回十六进制
shadow_id=$(printf "%04d" "$shadow_id") # 不够4位补0
win_id="${win_id:0:-4}${shadow_id}"
#echo $shadow_id, $win_id
if [ "$(pidof fuck_wine_shadow)"]; then
killall fuck_wine_shadow
fi
if [ "$win_id" != "0014" ]; then
while true; do
xdotool windowunmap $win_id
sleep 5
done
else
sleep 5
fuck_wine_shadow
fi

View File

@ -1,6 +0,0 @@
#!/bin/bash
# 隐藏光标
tput civis
cal

View File

@ -1,6 +0,0 @@
#!/bin/bash
yes=''
no=''
echo -e "$yes\n$no" | rofi -dmenu -p 'Are you Sure?' -theme confirm

View File

@ -1,3 +0,0 @@
#!/bin/bash
rofi -dmenu -password -i -p "Enter your password" -theme password

View File

@ -1,58 +0,0 @@
#!/bin/bash
prompt="Select the action..."
mesg="Uptime : `uptime -p | sed -e 's/up //g'`"
option_1=""
option_2=""
option_3=""
option_4=""
option_5=""
yes=''
no=''
rofi_powermenu() {
echo -e "$option_1\n$option_2\n$option_3\n$option_4\n$option_5" | rofi -dmenu -p "$prompt" -mesg "$mesg" -markup-rows -theme powermenu
}
confirm_run () {
selected="$(~/.local/bin/scripts/rofi_confirm.sh)"
if [[ "$selected" == "$yes" ]]; then
${1}
else
exit
fi
}
xlock () {
~/.local/bin/scripts/xlock.sh
}
hibernate () {
mpc pause
systemctl hibernate
}
chosen="$(rofi_powermenu)"
case ${chosen} in
$option_1)
xlock
;;
$option_2)
confirm_run 'bspc quit'
;;
$option_3)
confirm_run 'hibernate'
;;
$option_4)
confirm_run 'systemctl reboot'
;;
$option_5)
confirm_run 'systemctl poweroff'
;;
esac

View File

@ -1,6 +0,0 @@
#!/bin/bash
export SUDO_ASKPASS=${HOME}/.local/bin/scripts/rofi_password.sh
sudo -E -A $1

View File

@ -1,70 +0,0 @@
#!/bin/bash
ICONS=~/.local/share/dunst
if [[ ! -x $(which pulsemixer) ]]; then
echo -e "\e[1;31merror\e[m: pulsemixer is not installed."
exit 1
fi
notify() {
get_icon
if [[ $is_mute == 1 ]]; then
dunstify -a Volume -i $icon -u low "Volume mute!"
else
dunstify -a Volume -i $icon -u low -h int:value:$curr_volume "currtent volume: ${curr_volume}%"
fi
}
get_volume() {
echo $(pulsemixer --get-volume | cut -d' ' -f1)
}
get_icon() {
curr_volume=$(get_volume)
is_mute=$(pulsemixer --get-mute)
if [[ $is_mute == 1 || "$curr_volume" -eq "0" ]]; then
icon="${ICONS}/volume-mute.png"
curr_volume=0
elif [[ "$curr_volume" -le "35" ]]; then
icon="${ICONS}/volume-low.png"
elif [[ "$curr_volume" -le "70" ]]; then
icon="${ICONS}/volume-mid.png"
else
icon="${ICONS}/volume-high.png"
fi
}
volume_up() {
[[ $(pulsemixer --get-mute) == 1 ]] && pulsemixer --unmute
pulsemixer --max-volume 100 --change-volume +5
notify
}
volume_down() {
[[ $(pulsemixer --get-mute) == 1 ]] && pulsemixer --unmute
pulsemixer --max-volume 100 --change-volume -5
notify
}
toggle_mute() {
pulsemixer --toggle-mute
notify
}
case "$1" in
"up")
volume_up
;;
"down")
volume_down
;;
"mute")
toggle_mute
;;
*)
get_volume
esac

View File

@ -1,9 +0,0 @@
#!/bin/bash
i3lock -n -F -i $HOME/.local/share/xlock.png -k -e \
--radius=128 --ring-width=16 --ring-color=64b5f6 --inside-color=64b5f680 \
--verif-color=48c9b0 --wrong-color=fc7661 \
--layout-size=32 --verif-size=32 --wrong-size=32 --greeter-size=32 \
--time-align 1 --date-align 1 --time-color=f2f5fc --date-color=ced6e0 \
--time-size=96 --date-size=64 --time-font="Raleway,sans-serif" --date-font="Raleway,sans-serif" \
--time-pos="100:h-300" --date-pos="100:h-200"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 437 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 610 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 B

Some files were not shown because too many files have changed in this diff Show More