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.
font JetBrainsMono Nerd Font 10
### Variables
#
# 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/)
# 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:
#
@ -36,9 +38,12 @@ output * bg ~/.config/sway/bg.png fill
# exec_always xdg-desktop-portal -r
# exec_always xdg-desktop-portal-wlr
exec ~/bin/wayland-env.sh
exec --no-startup-id dbus-update-activation-environment --all
exec gentoo-pipewire-launcher &
exec_always kanshi
exec dex -a -e sway
exec mako
# for sway overview
# 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 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 XF86MonBrightnessDown exec "/home/jay/bin/backlight-control --path /sys/class/backlight/intel_backlight set -- -10%"
bindsym XF86MonBrightnessUp exec "xbacklight -inc 5"
bindsym XF86MonBrightnessDown exec "xbacklight -dec 5"
#
# Moving around:
#

View File

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

View File

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

View File

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