mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-24 20:01:49 +08:00
Compare commits
2 Commits
7d70dec394
...
19ca081f0d
Author | SHA1 | Date | |
---|---|---|---|
|
19ca081f0d | ||
|
39341b3fbc |
@ -1,9 +1,13 @@
|
|||||||
|
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
|
set $term kitty -1
|
||||||
set $menu wofi | xargs swaymsg exec --
|
set $menu wofi | xargs swaymsg exec --
|
||||||
|
|
||||||
###CUSTOMIZATION START###
|
###CUSTOMIZATION START###
|
||||||
@ -162,7 +166,4 @@ 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/*
|
||||||
|
@ -1,58 +1,80 @@
|
|||||||
{
|
{
|
||||||
"layer": "top", // Waybar at top layer
|
"layer": "top",
|
||||||
"height": 24, // Waybar height (to be removed for auto height)
|
"height": 30,
|
||||||
"modules-left": ["sway/workspaces"],
|
"modules-left": [
|
||||||
"modules-center": ["sway/window"],
|
"sway/workspaces"
|
||||||
"modules-right": ["custom/notification","tray","custom/player","network","battery","clock"],
|
],
|
||||||
"tray": {
|
"modules-center": [
|
||||||
"spacing": 10
|
"sway/window"
|
||||||
},
|
],
|
||||||
"clock": {
|
"modules-right": [
|
||||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
"tray",
|
||||||
"format-alt": "{:%Y-%m-%d}"
|
"custom/notification",
|
||||||
},
|
"custom/player",
|
||||||
"battery": {
|
"network",
|
||||||
"states": {
|
"battery",
|
||||||
"good": 80,
|
"clock"
|
||||||
"warning": 30,
|
],
|
||||||
"critical": 15
|
"sway/window": {
|
||||||
},
|
"max-length": 50
|
||||||
"format": "{capacity}% {icon}",
|
},
|
||||||
"format-charging": "{capacity}% ",
|
"tray": {
|
||||||
"format-plugged": "{capacity}% ",
|
"spacing": 10
|
||||||
"format-alt": "{time} {icon}",
|
},
|
||||||
"format-icons": ["", "", "", "", ""]
|
"network": {
|
||||||
},
|
"format-wifi": " {essid} ({signalStrength}%)",
|
||||||
"battery#bat2": {
|
"format-ethernet": " {ifname}: {ipaddr}/{cidr}",
|
||||||
"bat": "BAT2"
|
"format-linked": " {ifname} (No IP)",
|
||||||
},
|
"format-disconnected": " Disconnected",
|
||||||
"network": {
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||||
"format-wifi": "{essid} ({signalStrength}%) ",
|
},
|
||||||
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
"battery": {
|
||||||
"format-linked": "{ifname} (No IP) ",
|
"states": {
|
||||||
"format-disconnected": "Disconnected ",
|
"good": 80,
|
||||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
"warning": 30,
|
||||||
},
|
"critical": 15
|
||||||
"custom/notification": {
|
},
|
||||||
"tooltip": false,
|
"format": "{icon} {capacity}%",
|
||||||
"format": "{icon}",
|
"format-charging": " {capacity}%",
|
||||||
"format-icons": {
|
"format-plugged": " {capacity}%",
|
||||||
"notification": "<span foreground='red'><sup></sup></span>",
|
"format-alt": "{icon} {time}",
|
||||||
"none": "",
|
"format-icons": [
|
||||||
"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",
|
"clock": {
|
||||||
"escape": true
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||||
},
|
"format-alt": "{:%Y-%m-%d}"
|
||||||
"custom/player": {
|
},
|
||||||
"escape": true,
|
"custom/notification": {
|
||||||
"exec": "playerctl metadata --format '{{uc(playerName)}}: {{ artist }} - {{ album }} - {{ title }} {{emoji(status)}}' | cut -c -48 || echo 'Stopped '",
|
"tooltip": false,
|
||||||
"interval": 15,
|
"format": "{icon}",
|
||||||
"on-click": "playerctl play-pause && sleep 0.2 && notify-send `playerctl status` -t 1000"
|
"format-icons": {
|
||||||
}
|
"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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,12 +42,12 @@ window#waybar {
|
|||||||
|
|
||||||
|
|
||||||
#clock {
|
#clock {
|
||||||
background-color: @green;
|
background-color: @blue;
|
||||||
color: @background;
|
color: @background;
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery {
|
#battery {
|
||||||
background-color: @yellow;
|
background-color: @aqua;
|
||||||
color: @background;
|
color: @background;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,34 +63,6 @@ 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;
|
||||||
@ -100,3 +72,17 @@ 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;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user