1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-24 20:01:49 +08:00

Compare commits

..

No commits in common. "19ca081f0d06c44414691a15efb072ff93135dce" and "7d70dec39451ccd266da7b0b86f8d3c521c8d097" have entirely different histories.

3 changed files with 90 additions and 99 deletions

View File

@ -1,13 +1,9 @@
output * bg $(find ~/Pictures/Wallpapers/serenade/ -type f | shuf -n1) fill
bar swaybar_command waybar
set $mod Mod4 set $mod Mod4
set $left h set $left h
set $down j set $down j
set $up k set $up k
set $right l set $right l
set $term kitty -1 set $term kitty
set $menu wofi | xargs swaymsg exec -- set $menu wofi | xargs swaymsg exec --
###CUSTOMIZATION START### ###CUSTOMIZATION START###
@ -166,4 +162,7 @@ bindsym $mod+z focus child
bindsym $mod+Shift+0 move scratchpad bindsym $mod+Shift+0 move scratchpad
bindsym $mod+0 scratchpad show bindsym $mod+0 scratchpad show
bar swaybar_command waybar
output * bg $(find ~/Pictures/Wallpapers/serenade/ -type f | shuf -n1) fill
include /etc/sway/config.d/* include /etc/sway/config.d/*

View File

@ -1,80 +1,58 @@
{ {
"layer": "top", "layer": "top", // Waybar at top layer
"height": 30, "height": 24, // Waybar height (to be removed for auto height)
"modules-left": [ "modules-left": ["sway/workspaces"],
"sway/workspaces" "modules-center": ["sway/window"],
], "modules-right": ["custom/notification","tray","custom/player","network","battery","clock"],
"modules-center": [ "tray": {
"sway/window" "spacing": 10
], },
"modules-right": [ "clock": {
"tray", "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"custom/notification", "format-alt": "{:%Y-%m-%d}"
"custom/player", },
"network", "battery": {
"battery", "states": {
"clock" "good": 80,
], "warning": 30,
"sway/window": { "critical": 15
"max-length": 50 },
}, "format": "{capacity}% {icon}",
"tray": { "format-charging": "{capacity}% ",
"spacing": 10 "format-plugged": "{capacity}% ",
}, "format-alt": "{time} {icon}",
"network": { "format-icons": ["", "", "", "", ""]
"format-wifi": " {essid} ({signalStrength}%)", },
"format-ethernet": " {ifname}: {ipaddr}/{cidr}", "battery#bat2": {
"format-linked": " {ifname} (No IP)", "bat": "BAT2"
"format-disconnected": " Disconnected", },
"format-alt": "{ifname}: {ipaddr}/{cidr}" "network": {
}, "format-wifi": "{essid} ({signalStrength}%) ",
"battery": { "format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
"states": { "format-linked": "{ifname} (No IP) ",
"good": 80, "format-disconnected": "Disconnected ",
"warning": 30, "format-alt": "{ifname}: {ipaddr}/{cidr}"
"critical": 15 },
}, "custom/notification": {
"format": "{icon} {capacity}%", "tooltip": false,
"format-charging": " {capacity}%", "format": "{icon}",
"format-plugged": " {capacity}%", "format-icons": {
"format-alt": "{icon} {time}", "notification": "<span foreground='red'><sup></sup></span>",
"format-icons": [ "none": "",
"", "dnd-notification": "<span foreground='red'><sup></sup></span>",
"", "dnd-none": ""
"", },
"", "return-type": "json",
"" "exec-if": "which swaync-client",
] "exec": "swaync-client -swb",
}, "on-click": "swaync-client -t -sw",
"clock": { "on-click-right": "swaync-client -d -sw",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", "escape": true
"format-alt": "{:%Y-%m-%d}" },
}, "custom/player": {
"custom/notification": { "escape": true,
"tooltip": false, "exec": "playerctl metadata --format '{{uc(playerName)}}: {{ artist }} - {{ album }} - {{ title }} {{emoji(status)}}' | cut -c -48 || echo 'Stopped  '",
"format": "{icon}", "interval": 15,
"format-icons": { "on-click": "playerctl play-pause && sleep 0.2 && notify-send `playerctl status` -t 1000"
"notification": "<span foreground='red'><sup></sup></span>", }
"none": "",
"dnd-notification": "<span foreground='red'><sup></sup></span>",
"dnd-none": ""
},
"return-type": "json",
"exec-if": "which swaync-client",
"exec": "swaync-client -swb",
"on-click": "swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"escape": true
},
"custom/player": {
"format": "{icon} {}",
"format-icons": {
"Playing": " ",
"Paused": " "
},
"return-type": "json",
"exec": "playerctl -a metadata --format '{\"text\": \"{{uc(playerName)}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F",
"max-length": 35,
"on-click": "playerctl play-pause && sleep 0.2 && notify-send `playerctl status` -t 1000"
}
} }

View File

@ -42,12 +42,12 @@ window#waybar {
#clock { #clock {
background-color: @blue; background-color: @green;
color: @background; color: @background;
} }
#battery { #battery {
background-color: @aqua; background-color: @yellow;
color: @background; color: @background;
} }
@ -63,6 +63,34 @@ window#waybar {
} }
} }
/* #idle_inhibitor, */
/* #pulseaudio, */
/* #custom-openvpn, */
/* #network, */
/* #cpu, */
/* #memory, */
/* #temperature, */
/* #backlight, */
/* #battery, */
/* #clock, */
/* #tray { */
/* padding: 0 6px; */
/* margin: 0 3px; */
/* } */
#clock,
#battery,
#network,
#custom-notification,
#custom-player {
padding: 0px 10px;
margin: 0px 5px;
}
#clock {
margin-right: 10px;
}
#battery.warning:not(.charging) { #battery.warning:not(.charging) {
background: @red; background: @red;
color: @white_b; color: @white_b;
@ -72,17 +100,3 @@ window#waybar {
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-direction: alternate; animation-direction: alternate;
} }
#clock,
#battery,
#network,
#custom-notification,
#tray,
#custom-player {
padding: 0px 10px;
margin: 0px 5px;
}
#clock {
margin-right: 10px;
}