mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-24 20:01:49 +08:00
Compare commits
2 Commits
6e06ed101d
...
0e16cd0dcd
Author | SHA1 | Date | |
---|---|---|---|
|
0e16cd0dcd | ||
|
cb5aad9a44 |
@ -1,46 +1,47 @@
|
|||||||
{
|
{
|
||||||
"layer": "top", // Waybar at top layer
|
"layer": "top", // Waybar at top layer
|
||||||
"height": 24, // Waybar height (to be removed for auto height)
|
"height": 24, // Waybar height (to be removed for auto height)
|
||||||
// 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","custom/weather","network","battery","clock"],
|
||||||
"tray": {
|
"tray": {
|
||||||
"spacing": 10
|
"spacing": 10
|
||||||
},
|
},
|
||||||
"clock": {
|
"clock": {
|
||||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||||
"format-alt": "{:%Y-%m-%d}"
|
"format-alt": "{:%Y-%m-%d}"
|
||||||
},
|
},
|
||||||
"battery": {
|
"battery": {
|
||||||
"states": {
|
"states": {
|
||||||
"good": 80,
|
"good": 80,
|
||||||
"warning": 30,
|
"warning": 30,
|
||||||
"critical": 15
|
"critical": 15
|
||||||
},
|
},
|
||||||
"format": "{capacity}% {icon}",
|
"format": "{capacity}% {icon}",
|
||||||
"format-charging": "{capacity}% ",
|
"format-charging": "{capacity}% ",
|
||||||
"format-plugged": "{capacity}% ",
|
"format-plugged": "{capacity}% ",
|
||||||
"format-alt": "{time} {icon}",
|
"format-alt": "{time} {icon}",
|
||||||
"format-icons": ["", "", "", "", ""]
|
"format-icons": ["", "", "", "", ""]
|
||||||
},
|
},
|
||||||
"battery#bat2": {
|
"battery#bat2": {
|
||||||
"bat": "BAT2"
|
"bat": "BAT2"
|
||||||
},
|
},
|
||||||
"network": {
|
"network": {
|
||||||
"format-wifi": "{essid} ({signalStrength}%) ",
|
"format-wifi": "{essid} ({signalStrength}%) ",
|
||||||
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
||||||
"format-linked": "{ifname} (No IP) ",
|
"format-linked": "{ifname} (No IP) ",
|
||||||
"format-disconnected": "Disconnected ",
|
"format-disconnected": "Disconnected ",
|
||||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||||
},
|
},
|
||||||
"custom/weather": {
|
"custom/weather": {
|
||||||
"exec": "sleep 10 && curl '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": {
|
||||||
"exec": "playerctl metadata --format '{{uc(playerName)}}: {{ artist }} - {{ album }} - {{ title }} {{emoji(status)}}' || echo 'Stopped '",
|
"escape": true,
|
||||||
"interval": 15,
|
"exec": "playerctl metadata --format '{{uc(playerName)}}: {{ artist }} - {{ album }} - {{ title }} {{emoji(status)}}' || echo 'Stopped '",
|
||||||
"on-click": "playerctl play-pause && notify-send `playerctl status` -t 1000"
|
"interval": 15,
|
||||||
}
|
"on-click": "playerctl play-pause && notify-send `playerctl status` -t 1000"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
1
.zshrc
1
.zshrc
@ -152,6 +152,7 @@ alias se='doas emerge'
|
|||||||
alias sp='doas pacman'
|
alias sp='doas pacman'
|
||||||
alias ssh='TERM="xterm-256color" ssh'
|
alias ssh='TERM="xterm-256color" ssh'
|
||||||
alias sv='doasedit.sh'
|
alias sv='doasedit.sh'
|
||||||
|
alias t='task'
|
||||||
alias v='nvim'
|
alias v='nvim'
|
||||||
alias vw='nvim -c VimwikiIndex'
|
alias vw='nvim -c VimwikiIndex'
|
||||||
alias yt-dl='youtube-dl --sub-lang en,zh-Hant --audio-format best'
|
alias yt-dl='youtube-dl --sub-lang en,zh-Hant --audio-format best'
|
||||||
|
Loading…
Reference in New Issue
Block a user