mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-24 11:51:50 +08:00
updated cursor and lock script and zsh prompt
This commit is contained in:
parent
be7c37a639
commit
347b0b01ae
@ -28,7 +28,7 @@ set $gnome-schema org.gnome.desktop.interface
|
|||||||
exec_always {
|
exec_always {
|
||||||
gsettings set $gnome-schema gtk-theme 'Adwaita-dark'
|
gsettings set $gnome-schema gtk-theme 'Adwaita-dark'
|
||||||
gsettings set $gnome-schema icon-theme 'Papirus-Light'
|
gsettings set $gnome-schema icon-theme 'Papirus-Light'
|
||||||
#gsettings set $gnome-schema cursor-theme 'Adwaita'
|
gsettings set $gnome-schema cursor-theme 'Adwaita'
|
||||||
gsettings set $gnome-schema font-name 'ibm-plex 12'
|
gsettings set $gnome-schema font-name 'ibm-plex 12'
|
||||||
export XDG_CURRENT_DESKTOP=Unity
|
export XDG_CURRENT_DESKTOP=Unity
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
choice=`echo "shutdown\npoweroff\nreboot\nlock" | wofi -d -Oalphabetical`
|
choice=`echo "suspend\nshutdown\npoweroff\nreboot\nlock" | wofi -d -Oalphabetical`
|
||||||
if test "$choice" = lock ; then
|
if test "$choice" = lock ; then
|
||||||
tmp=/tmp/lockscreen.bmp
|
|
||||||
grim - | magick - -blur 0x6 $tmp
|
|
||||||
bright=`light`
|
bright=`light`
|
||||||
swayidle -w \
|
swayidle -w \
|
||||||
timeout 5 "light -S 1" resume "light -S $bright" \
|
timeout 5 "light -S 1" resume "light -S $bright" \
|
||||||
timeout 10 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
timeout 10 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
||||||
&
|
&
|
||||||
idlepid=$!
|
idlepid=$!
|
||||||
swaylock -e -i $tmp -c 000000 --inside-color 00000003
|
swaylock -e -c 161821 --inside-color 00000003
|
||||||
kill $idlepid
|
kill $idlepid
|
||||||
rm $tmp
|
|
||||||
swaymsg "output * dpms on"
|
swaymsg "output * dpms on"
|
||||||
light -S $bright
|
light -S $bright
|
||||||
return 0
|
return 0
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
// Choose the order of the modules
|
// Choose the order of the modules
|
||||||
"modules-left": ["sway/workspaces", "sway/window"],
|
"modules-left": ["sway/workspaces", "sway/window"],
|
||||||
"modules-center": [],
|
"modules-center": [],
|
||||||
"modules-right": ["tray","custom/player","custom/weather","network","battery","clock"],
|
"modules-right": ["tray","custom/player","network","battery","clock"],
|
||||||
"tray": {
|
"tray": {
|
||||||
"spacing": 10
|
"spacing": 10
|
||||||
},
|
},
|
||||||
@ -34,10 +34,10 @@
|
|||||||
"format-disconnected": "Disconnected ",
|
"format-disconnected": "Disconnected ",
|
||||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||||
},
|
},
|
||||||
"custom/weather": {
|
//"custom/weather": {
|
||||||
"exec": "sleep 10 && curl 'https://wttr.in/?format=%t+(%f)+%c'",
|
// "exec": "sleep 10 && curl 'https://wttr.in/?format=%t+(%f)+%c'",
|
||||||
"interval": 1800
|
// "interval": 1800
|
||||||
},
|
//},
|
||||||
"custom/player": {
|
"custom/player": {
|
||||||
"escape": true,
|
"escape": true,
|
||||||
"exec": "playerctl metadata --format '{{uc(playerName)}}: {{ artist }} - {{ album }} - {{ title }} {{emoji(status)}}' || echo 'Stopped '",
|
"exec": "playerctl metadata --format '{{uc(playerName)}}: {{ artist }} - {{ album }} - {{ title }} {{emoji(status)}}' || echo 'Stopped '",
|
||||||
|
@ -36,8 +36,8 @@ window#waybar {
|
|||||||
#clock,
|
#clock,
|
||||||
#battery,
|
#battery,
|
||||||
#network,
|
#network,
|
||||||
#custom-player,
|
/* #custom-weather, */
|
||||||
#custom-weather {
|
#custom-player {
|
||||||
background-color: #161821;
|
background-color: #161821;
|
||||||
padding: 0px 10px;
|
padding: 0px 10px;
|
||||||
margin: 5px 0px;
|
margin: 5px 0px;
|
||||||
|
Loading…
Reference in New Issue
Block a user