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 {
|
||||
gsettings set $gnome-schema gtk-theme 'Adwaita-dark'
|
||||
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'
|
||||
export XDG_CURRENT_DESKTOP=Unity
|
||||
}
|
||||
|
@ -1,18 +1,15 @@
|
||||
#!/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
|
||||
tmp=/tmp/lockscreen.bmp
|
||||
grim - | magick - -blur 0x6 $tmp
|
||||
bright=`light`
|
||||
swayidle -w \
|
||||
timeout 5 "light -S 1" resume "light -S $bright" \
|
||||
timeout 10 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
||||
&
|
||||
idlepid=$!
|
||||
swaylock -e -i $tmp -c 000000 --inside-color 00000003
|
||||
swaylock -e -c 161821 --inside-color 00000003
|
||||
kill $idlepid
|
||||
rm $tmp
|
||||
swaymsg "output * dpms on"
|
||||
light -S $bright
|
||||
return 0
|
||||
|
@ -4,7 +4,7 @@
|
||||
// Choose the order of the modules
|
||||
"modules-left": ["sway/workspaces", "sway/window"],
|
||||
"modules-center": [],
|
||||
"modules-right": ["tray","custom/player","custom/weather","network","battery","clock"],
|
||||
"modules-right": ["tray","custom/player","network","battery","clock"],
|
||||
"tray": {
|
||||
"spacing": 10
|
||||
},
|
||||
@ -34,10 +34,10 @@
|
||||
"format-disconnected": "Disconnected ",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||
},
|
||||
"custom/weather": {
|
||||
"exec": "sleep 10 && curl 'https://wttr.in/?format=%t+(%f)+%c'",
|
||||
"interval": 1800
|
||||
},
|
||||
//"custom/weather": {
|
||||
// "exec": "sleep 10 && curl 'https://wttr.in/?format=%t+(%f)+%c'",
|
||||
// "interval": 1800
|
||||
//},
|
||||
"custom/player": {
|
||||
"escape": true,
|
||||
"exec": "playerctl metadata --format '{{uc(playerName)}}: {{ artist }} - {{ album }} - {{ title }} {{emoji(status)}}' || echo 'Stopped '",
|
||||
|
@ -36,8 +36,8 @@ window#waybar {
|
||||
#clock,
|
||||
#battery,
|
||||
#network,
|
||||
#custom-player,
|
||||
#custom-weather {
|
||||
/* #custom-weather, */
|
||||
#custom-player {
|
||||
background-color: #161821;
|
||||
padding: 0px 10px;
|
||||
margin: 5px 0px;
|
||||
|
Loading…
Reference in New Issue
Block a user