From 347b0b01aea0400c6e4a81f1f29915a57a025f55 Mon Sep 17 00:00:00 2001 From: juan Date: Wed, 3 Nov 2021 21:05:39 +0800 Subject: [PATCH] updated cursor and lock script and zsh prompt --- .config/sway/config##hostname.T14s | 2 +- .config/sway/scripts/logout.sh | 7 ++----- .config/waybar/config | 10 +++++----- .config/waybar/style.css | 4 ++-- .zshrc | 1 + 5 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.config/sway/config##hostname.T14s b/.config/sway/config##hostname.T14s index 7a3d9c2..ae7a7c0 100644 --- a/.config/sway/config##hostname.T14s +++ b/.config/sway/config##hostname.T14s @@ -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 } diff --git a/.config/sway/scripts/logout.sh b/.config/sway/scripts/logout.sh index 7110adf..d842591 100755 --- a/.config/sway/scripts/logout.sh +++ b/.config/sway/scripts/logout.sh @@ -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 diff --git a/.config/waybar/config b/.config/waybar/config index 3b4bef5..e22251b 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -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  '", diff --git a/.config/waybar/style.css b/.config/waybar/style.css index cc3efd6..853ef8b 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -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; diff --git a/.zshrc b/.zshrc index 36a782c..671b195 100644 --- a/.zshrc +++ b/.zshrc @@ -1,3 +1,4 @@ +echo echo '\033[0;36m _ ___ ___ _ ' echo '\033[0;36m| | | \ \ /\ / / | | |' echo '\033[0;36m| |_| |\ V V /| |_| |'