调整脚本
parent
546812828a
commit
d340bd00d7
|
@ -35,7 +35,7 @@ xrandr --output HDMI-2 --mode 1920x1080 --rate 60 --right-of HDMI-1 --mode 1920x
|
|||
|
||||
|
||||
# 干掉已经运行的进程
|
||||
killall -9 sxhkd picom nm-applet dunst xsettingsd
|
||||
killall -9 sxhkd picom nm-applet dunst xsettingsd polybar
|
||||
|
||||
# 2个显示器, 左显示器配置4个工作区, 右显示器只配置1个工作区
|
||||
bspc monitor HDMI-1 -d I II III IV
|
||||
|
@ -79,8 +79,8 @@ xsetroot -cursor_name left_ptr
|
|||
# 设置系统主题
|
||||
xsettingsd &
|
||||
|
||||
~/.local/bin/scripts/polybar.sh
|
||||
|
||||
# 启动配套的服务
|
||||
polybar main -r &
|
||||
sxhkd &
|
||||
nm-applet &
|
||||
dunst &
|
||||
|
|
|
@ -6,4 +6,4 @@ content = %{T9}襤%{T-}
|
|||
content-foreground = ${color.red}
|
||||
content-padding = 2
|
||||
|
||||
click-left = ~/.local/bin/scripts/powermenu.sh
|
||||
click-left = ~/.local/bin/scripts/rofi_powermenu.sh
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# 干掉旧进程
|
||||
killall -9 polybar
|
||||
# 等待1秒再启动新的
|
||||
sleep 1
|
||||
polybar main -r &
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
rofi -dmenu -password -i -p "Enter your password" -theme password
|
|
@ -19,7 +19,7 @@ rofi_powermenu() {
|
|||
|
||||
|
||||
confirm_run () {
|
||||
selected="$(~/.local/bin/scripts/confirm.sh)"
|
||||
selected="$(~/.local/bin/scripts/rofi_confirm.sh)"
|
||||
|
||||
if [[ "$selected" == "$yes" ]]; then
|
||||
${1}
|
||||
|
@ -29,9 +29,13 @@ confirm_run () {
|
|||
}
|
||||
|
||||
xlock () {
|
||||
~/.local/bin/scripts/xlock --lock
|
||||
~/.local/bin/scripts/xlock.sh --lock
|
||||
}
|
||||
|
||||
hibernate () {
|
||||
xlock
|
||||
systemctl hibernate
|
||||
}
|
||||
|
||||
chosen="$(rofi_powermenu)"
|
||||
|
||||
|
@ -43,7 +47,7 @@ case ${chosen} in
|
|||
confirm_run 'bspc quit'
|
||||
;;
|
||||
$option_3)
|
||||
confirm_run 'xlock && systemctl hibernate'
|
||||
confirm_run 'hibernate'
|
||||
;;
|
||||
$option_4)
|
||||
confirm_run 'systemctl reboot'
|
Loading…
Reference in New Issue