mirror of
https://github.com/zoriya/dotfiles.git
synced 2026-05-31 18:25:08 +00:00
Adding gnome keyring
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
get_field()
|
||||
{
|
||||
@@ -7,13 +7,13 @@ get_field()
|
||||
|
||||
out=$(nmcli device status | grep -v bridge | head -n2 | tail -n1)
|
||||
type=$(get_field "$out" 2)
|
||||
status=$(get_field "$out" 3)
|
||||
stat=$(get_field "$out" 3)
|
||||
ssid=$(get_field "$out" 4) || "no network"
|
||||
|
||||
if [ "$type" == "ethernet" ]; then
|
||||
icon=$([[ "$status" == "connected" ]] && echo -n " ^d^" || echo -n " ^d^")
|
||||
elif [ "$type" == "wifi" ]; then
|
||||
icon=$([[ "$status" == "connected" ]] && echo -n "直 ^d^" || echo -n "睊 ^d^")
|
||||
if [[ "$type" == "ethernet" ]]; then
|
||||
icon=$([[ "$stat" == "connected" ]] && echo -n " ^d^" || echo -n " ^d^")
|
||||
elif [[ "$type" == "wifi" ]]; then
|
||||
icon=$([[ "$stat" == "connected" ]] && echo -n "直 ^d^" || echo -n "睊 ^d^")
|
||||
else
|
||||
icon=" ^d^"
|
||||
fi
|
||||
@@ -21,5 +21,5 @@ fi
|
||||
echo -n $icon$ssid
|
||||
|
||||
case $BUTTON in
|
||||
1) setsid -f st -c nmtui -n nmtui -e nmtui;;
|
||||
1) [[ $(pidof nm-applet > /dev/null) -eq 0 ]] && killall nm-applet || coproc nm-applet --no-agent ;;
|
||||
esac
|
||||
|
||||
+4
-3
@@ -20,15 +20,16 @@ xset fp rehash
|
||||
|
||||
xset s off -dpms
|
||||
|
||||
/usr/lib/polkit-kde-authentication-agent-1 &
|
||||
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
||||
|
||||
export $(dbus-launch)
|
||||
eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh)
|
||||
export $(gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg)
|
||||
dbus-update-activation-environment --systemd DISPLAY
|
||||
|
||||
picom -b
|
||||
feh --no-fehbg --bg-center --recursive --randomize ~/.wallpapers &
|
||||
dwmblocks &
|
||||
sxhkd &
|
||||
dunst &
|
||||
clipmenud &
|
||||
redshift -l $(curl -s "https://location.services.mozilla.com/v1/geolocate?key=geoclue" | awk 'OFS=":" {print $3,$5}' | tr -d ',}') &
|
||||
|
||||
|
||||
+5
-3
@@ -12,12 +12,9 @@ flameshot
|
||||
picom-ibhagwan-git
|
||||
qt5ct
|
||||
feh
|
||||
polkit-kde-agent
|
||||
dbus
|
||||
redshift
|
||||
sxhkd
|
||||
kwallet
|
||||
kwallet-pam
|
||||
google-chrome
|
||||
bluetooth-autoconnect
|
||||
nerd-fonts-noto
|
||||
@@ -26,4 +23,9 @@ zsh-theme-powerlevel10k
|
||||
zsh-completions
|
||||
zsh-autosuggestions
|
||||
zsh-syntax-highlighting
|
||||
network-manager-applet
|
||||
gnome-keyring
|
||||
polkit-gnome
|
||||
htop
|
||||
kde-gtk-config
|
||||
|
||||
|
||||
Reference in New Issue
Block a user