1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-22 19:01:50 +08:00

Compare commits

..

No commits in common. "99a5fe023a499f9d466f496808b5be6c8b9e5a7c" and "d1643efc5ce377304e29855f82298bd93eb1d609" have entirely different histories.

7 changed files with 46 additions and 40 deletions

View File

@ -16,3 +16,8 @@ fi
# Put your fun stuff here.
# https://wiki.gentoo.org/wiki/Fish#fish_as_a_default_shell_with_bash_as_the_login_shell
# Use nu in place of bash
# keep this line at the bottom of ~/.bashrc
# [ -x /bin/nu ] && SHELL=/bin/nu exec nu

@ -1 +1 @@
Subproject commit 4fd5fd0e0ceef326f1b569354449187c9323014e
Subproject commit fd3bdba06fa3bffe1f3465ef6963606e71ba5ff4

View File

@ -11,8 +11,8 @@ set $menu fuzzel
# my keybinds
# screenshot
bindsym $mod+Print exec grim -g "$(slurp -d)" - | wl-copy
bindsym $mod+Shift+s exec grim -g "$(slurp -d)" - | wl-copy
bindsym $mod+Print exec grimshot --cursor copy area
bindsym $mod+Shift+s exec grimshot --cursor copy area
# notification client
bindsym $mod+m exec swaync-client -t -sw
# Logout

View File

@ -1,7 +1,7 @@
#!/bin/bash
#
# Modified from sway's locking script
# TODO: remove bashism
if [[ ! $(which swayidle 2> /dev/null) ]]; then
notify-send "ERROR" "Swayidle not found"
@ -11,6 +11,7 @@ fi
choices=("suspend" "poweroff" "reboot" "lock")
choice=$(printf "%s\n" "${choices[@]}" | fuzzel -d --prompt "🔌: ")
if test "$choice" = lock ; then
# sleep less when power on
if acpi -a | grep -q on; then
@ -19,9 +20,8 @@ if test "$choice" = lock; then
sleep_time=10
fi
sleep 0.3
playerctl stop
bright=$(light)
bright=`light`
swayidle -w \
timeout 5 "light -S 1" resume "light -S $bright" \

View File

@ -21,7 +21,7 @@
"clock"
],
"include": [
"~/.config/waybar/sway-modules.jsonc"
"~/.config/waybar/sway-modules.json"
]
},
{

View File

@ -44,8 +44,8 @@
]
},
"clock": {
"format": "{:󰅐 %H:%M  %m-%d}",
"format-alt": " {:%A, %B %d, %Y (%r)}",
"format": "{:󰅐 %H:%M}",
"format-alt": "{: %m-%d}",
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
"mode": "year",
@ -90,7 +90,8 @@
},
"return-type": "json",
"exec": "playerctl -a metadata --format '{\"text\": \"{{playerName}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{markup_escape(title)}} - {{markup_escape(album)}}\", \"class\": \"{{status}}\", \"alt\": \"{{status}}\" }' -F",
"max-length": 48,
"on-click": "playerctl play-pause"
"max-length": 40,
"on-click": "playerctl play-pause",
"on-click-right": "pavucontrol"
}
}

8
.zshrc
View File

@ -38,10 +38,10 @@ if ! command -v bat &> /dev/null ; then
zinit light sharkdp/bat
fi
zinit from"gh-r" as"program" mv"direnv* -> direnv" \
atclone'./direnv hook zsh > zhook.zsh' atpull'%atclone' \
pick"direnv" src="zhook.zsh" for \
direnv/direnv
if ! command -v direnv &> /dev/null; then
zinit ice from"gh-r" as"program" mv"direnv* -> direnv"
zinit light direnv/direnv
fi
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit