This commit is contained in:
jay 2023-05-30 01:26:05 +08:00
parent ae1ee3bcfc
commit a2d8cddefe
5 changed files with 23 additions and 13 deletions

View File

@ -0,0 +1,2 @@
font=JetBrainsMono Nerd Font 10
default-timeout=5000

View File

@ -4,6 +4,8 @@
# #
# Read `man 5 sway` for a complete reference. # Read `man 5 sway` for a complete reference.
font JetBrainsMono Nerd Font 10
### Variables ### Variables
# #
# Logo key. Use Mod1 for Alt. # Logo key. Use Mod1 for Alt.
@ -26,7 +28,7 @@ set $menu wofi --show drun
# #
# Default wallpaper (more resolutions are available in @datadir@/backgrounds/sway/) # Default wallpaper (more resolutions are available in @datadir@/backgrounds/sway/)
# output * bg @datadir@/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill # output * bg @datadir@/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
output * bg ~/.config/sway/bg.png fill output * bg /home/jay/.config/sway/bg.png fill
# #
# Example configuration: # Example configuration:
# #
@ -36,9 +38,12 @@ output * bg ~/.config/sway/bg.png fill
# exec_always xdg-desktop-portal -r # exec_always xdg-desktop-portal -r
# exec_always xdg-desktop-portal-wlr # exec_always xdg-desktop-portal-wlr
exec ~/bin/wayland-env.sh
exec --no-startup-id dbus-update-activation-environment --all exec --no-startup-id dbus-update-activation-environment --all
exec gentoo-pipewire-launcher &
exec_always kanshi exec_always kanshi
exec dex -a -e sway exec dex -a -e sway
exec mako
# for sway overview # for sway overview
# exec_always rm -f /tmp/sovpipe && mkfifo /tmp/sovpipe && tail -f /tmp/sovpipe | sov -t 100 # exec_always rm -f /tmp/sovpipe && mkfifo /tmp/sovpipe && tail -f /tmp/sovpipe | sov -t 100
@ -113,8 +118,8 @@ input type:touchpad {
bindsym XF86AudioLowerVolume exec "pactl set-sink-volume @DEFAULT_SINK@ -10%; pkill -RTMIN+8 waybar" bindsym XF86AudioLowerVolume exec "pactl set-sink-volume @DEFAULT_SINK@ -10%; pkill -RTMIN+8 waybar"
bindsym XF86AudioMute exec "pactl set-sink-mute @DEFAULT_SINK@ toggle; pkill -RTMIN+8 waybar" bindsym XF86AudioMute exec "pactl set-sink-mute @DEFAULT_SINK@ toggle; pkill -RTMIN+8 waybar"
bindsym XF86MonBrightnessUp exec "/home/jay/bin/backlight-control --path /sys/class/backlight/intel_backlight set +10%" bindsym XF86MonBrightnessUp exec "xbacklight -inc 5"
bindsym XF86MonBrightnessDown exec "/home/jay/bin/backlight-control --path /sys/class/backlight/intel_backlight set -- -10%" bindsym XF86MonBrightnessDown exec "xbacklight -dec 5"
# #
# Moving around: # Moving around:
# #

View File

@ -7,8 +7,8 @@
// "width": 1280, // Waybar width // "width": 1280, // Waybar width
// "spacing": 1, // Gaps between modules (4px) // "spacing": 1, // Gaps between modules (4px)
// Choose the order of the modules // Choose the order of the modules
"modules-left": ["wlr/workspaces", "custom/sep", "hyprland/window", "hyprland/submap"], // "modules-left": ["wlr/workspaces", "custom/sep", "hyprland/window", "hyprland/submap"],
// "modules-left": ["sway/workspaces", "sway/mode", "sway/window"], "modules-left": ["sway/workspaces", "custom/sep", "sway/window", "sway/mode"],
"modules-center": ["clock"], "modules-center": ["clock"],
"modules-right": [ "modules-right": [
"idle_inhibitor", "idle_inhibitor",
@ -34,6 +34,9 @@
"on-click": "activate", "on-click": "activate",
"disable-scroll": true "disable-scroll": true
}, },
"sway/window": {
"max-length": 100
},
"custom/pipewire": { "custom/pipewire": {
"exec": "/home/jay/bin/get-volume.sh", "exec": "/home/jay/bin/get-volume.sh",
"interval": "once", "interval": "once",
@ -73,7 +76,7 @@
"interval": 1 "interval": 1
}, },
"cpu": { "cpu": {
"format": " {usage}%({load})", "format": " {usage}%({load})",
"interval": 2, "interval": 2,
"tooltip": false "tooltip": false
}, },
@ -102,7 +105,7 @@
"critical": 15 "critical": 15
}, },
"format": "{icon} {capacity}%", "format": "{icon} {capacity}%",
"format-charging": " {capacity}%", "format-charging": "󰂄 {capacity}%",
"format-plugged": " {capacity}%", "format-plugged": " {capacity}%",
"format-alt": "{icon} {time}", "format-alt": "{icon} {time}",
// "format-good": "", // An empty format will hide the module // "format-good": "", // An empty format will hide the module

View File

@ -45,7 +45,7 @@ window#waybar.hidden {
color: #f5c2e7; color: #f5c2e7;
} }
#workspaces button.active { #workspaces button.active, #workspaces button.focused {
color: #ea76cb; color: #ea76cb;
} }
@ -63,7 +63,7 @@ window#waybar.hidden {
color: #eee; color: #eee;
} }
#submap { #submap, #mode {
padding-left: 5px; padding-left: 5px;
padding-right: 5px; padding-right: 5px;
margin-right: 3px; margin-right: 3px;
@ -106,7 +106,7 @@ window#waybar.hidden {
#idle_inhibitor { #idle_inhibitor {
border-radius: 15px 0px 0px 15px; border-radius: 15px 0px 0px 15px;
padding-left: 10px; padding-left: 10px;
padding-right: 5px; padding-right: 10px;
transition: ease-in; transition: ease-in;
transition-duration: 0.1s; transition-duration: 0.1s;
color: white; color: white;

View File

@ -8,9 +8,9 @@ case $selected in
logout) logout)
swaymsg exit;; swaymsg exit;;
suspend) suspend)
exec systemctl suspend;; exec loginctl suspend;;
reboot) reboot)
exec systemctl reboot;; exec loginctl reboot;;
shutdown) shutdown)
exec systemctl poweroff -i;; exec loginctl poweroff -i;;
esac esac