feat: swayosd config

This commit is contained in:
landam
2025-09-12 19:07:36 +02:00
parent 2acac5d01d
commit cdc6fc693a
15 changed files with 40 additions and 14 deletions

View File

@@ -49,6 +49,8 @@ client.focused "#2c2c2c" "#212121" "#fefefe" "#ffffff" "#2c2c2c"
# your displays after another 300 seconds, and turn your screens back on when # your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep. # resumed. It will also lock your screen before your computer goes to sleep.
exec swayosd-server
### Input configuration ### Input configuration
# #
# Example configuration: # Example configuration:
@@ -227,17 +229,17 @@ bindsym $mod+r mode "resize"
# Utilities: # Utilities:
# #
# Special keys to adjust volume via PulseAudio # Special keys to adjust volume via PulseAudio
bindsym --locked XF86AudioMute exec amixer set Master toggle bindsym --locked XF86AudioMute exec amixer set Master toggle && swayosd-client --output-volume mute-toggle
bindsym --locked XF86AudioLowerVolume exec amixer set Master 5%- bindsym --locked XF86AudioLowerVolume exec amixer set Master 5%- && swayosd-client --output-volume lower
bindsym --locked XF86AudioRaiseVolume exec amixer set Master 5%+ bindsym --locked XF86AudioRaiseVolume exec amixer set Master 5%+ && swayosd-client --output-volume raise
bindsym --locked XF86AudioMicMute exec amixer set Capture toggle bindsym --locked XF86AudioMicMute exec amixer set Capture toggle && swayosd-client --input-volume mute-toggle
bindsym --locked XF86AudioPlay exec playerctl play-pause bindsym --locked XF86AudioPlay exec playerctl play-pause
bindsym --locked XF86AudioNext exec playerctl next bindsym --locked XF86AudioNext exec playerctl next
bindsym --locked XF86AudioPrev exec playerctl previous bindsym --locked XF86AudioPrev exec playerctl previous
bindsym --locked XF86AudioStop exec playerctl stop bindsym --locked XF86AudioStop exec playerctl stop
# Special keys to adjust brightness via brightnessctl # Special keys to adjust brightness via brightnessctl
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%- bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%- && swayosd-client --brightness lower
bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+ bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+ && swayosd-client --brightness raise
# Special key to take a screenshot with grim # Special key to take a screenshot with grim
bindsym Print exec grim bindsym Print exec grim

12
.config/swayosd/style.css Normal file
View File

@@ -0,0 +1,12 @@
window#osd image, window#osd label {
color: #fefefe;
}
window#osd {
border-radius: 10px;
background: #202020DD;
}
window#osd #container {
margin: 10px;
}

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

Binary file not shown.

View File

@@ -2,6 +2,8 @@
;; ----- ido-last-directory-list ----- ;; ----- ido-last-directory-list -----
( (
("/home/landam/.dotfiles/.config/" . "sway/")
("/home/landam/.dotfiles/" . ".config/")
("/home/landam/dev/builds/SilentSDDM/" . "configs/") ("/home/landam/dev/builds/SilentSDDM/" . "configs/")
("/home/landam/dev/local/" . "cada/") ("/home/landam/dev/local/" . "cada/")
("/usr/share/gnome-shell/" . "theme/") ("/usr/share/gnome-shell/" . "theme/")
@@ -19,14 +21,16 @@
("/home/" . "landam/") ("/home/" . "landam/")
("/home/landam/opt/raylib/" . "include/") ("/home/landam/opt/raylib/" . "include/")
("/home/landam/opt/" . "raylib/") ("/home/landam/opt/" . "raylib/")
("/home/landam/" . ".config/") ("/home/landam/" . ".dotfiles/")
("/home/landam/.config/" . "sway/") ("/home/landam/.config/" . "swayosd/")
("/home/landam/dev/probe/" . "rayedit/") ("/home/landam/dev/probe/" . "rayedit/")
("/home/landam/dev/" . "local/") ("/home/landam/dev/" . "local/")
) )
;; ----- ido-work-directory-list ----- ;; ----- ido-work-directory-list -----
( (
"/home/landam/.dotfiles/.config/sway/"
"/home/landam/.config/swayosd/"
"/home/landam/.config/sway/" "/home/landam/.config/sway/"
"/home/landam/dev/builds/SilentSDDM/configs/" "/home/landam/dev/builds/SilentSDDM/configs/"
"/home/landam/dev/builds/SilentSDDM/components/" "/home/landam/dev/builds/SilentSDDM/components/"
@@ -50,6 +54,7 @@
;; ----- ido-work-file-list ----- ;; ----- ido-work-file-list -----
( (
"config" "config"
"style.css"
"default.conf" "default.conf"
"Config.qml" "Config.qml"
"LockScreen.qml" "LockScreen.qml"
@@ -58,12 +63,23 @@
"main.c" "main.c"
"steps.ogg" "steps.ogg"
"player.h" "player.h"
"raylib.h"
) )
;; ----- ido-dir-file-cache ----- ;; ----- ido-dir-file-cache -----
( (
("/home/landam/.config/" (26820 13397 485644 820000) "kitty/" "libreoffice/" "neofetch/" "kritarc" "environment.d/" "alacritty/" "sway-xdg-terminals.list" "sway/" ".gsd-keyboard.settings-ported" "copyq/" "evolution/" "qtvirtualkeyboard/" "monitors.xml" "Thunar/" "goa-1.0/" "user-dirs.locale" "shotwell/" "user-dirs.dirs" "weylus/" "monitors.xml~" "kritadisplayrc" "dconf/" "./" "QtProject.conf" "../" "mypaint/" "nautilus/" "pulse/" "gtk-3.0/" "autostart/" "nvim/" "ibus/" "xdg-terminals.list" "xfce4/" "gnome-session/" "obs-studio/" "btop/" "mimeapps.list") ("/home/landam/.dotfiles/.config/" (26820 21164 990533 530000) "alacritty/" "sway/" "swayosd/" "./" "../" "nvim/")
("/home/landam/.config/" (26820 21196 678010 821000) "kitty/" "libreoffice/" "neofetch/" "kritarc" "environment.d/" "alacritty/" "sway-xdg-terminals.list" "sway/" ".gsd-keyboard.settings-ported" "copyq/" "evolution/" "qtvirtualkeyboard/" "monitors.xml" "Thunar/" "goa-1.0/" "user-dirs.locale" "shotwell/" "swayosd/" "user-dirs.dirs" "weylus/" "monitors.xml~" "kritadisplayrc" "dconf/" "./" "QtProject.conf" "../" "mypaint/" "nautilus/" "pulse/" "gtk-3.0/" "autostart/" "nvim/" "ibus/" "xdg-terminals.list" "xfce4/" "gnome-session/" "obs-studio/" "btop/" "lazygit/" "mimeapps.list")
("/home/landam/.config/swayosd/" (26820 20567 860313 199000) "./" "../")
("/home/landam/.dotfiles/" (26820 18367 218900 335000) ".emacs" ".emacs.local/" ".emacs.custom.el" "./" "../" ".config/" ".emacs.d/" ".emacs.rc/" ".git/")
("/home/landam/.dotfiles/.config/sway/" (26820 20347 334303 823000) "config" "./" "../")
("/home/landam/.config/sway/" (26820 19208 104166 588000) "config" "./" "../")
("/home/landam/" (26820 18299 925269 961000) ".xsession" ".dotfiles/" "dev/" ".bash_logout" ".emacs" "opt/" "Desktop/" "Templates/" ".emacs.local/" "Music/" ".bashrc" "Pictures/" ".profile" "Documents/" ".bash_aliases" ".wget-hsts" ".emacs.custom.el" ".dmrc" ".docker/" "Downloads/" ".xsession-errors" "./" "../" ".ssh/" "Public/" ".fltk/" "Videos/" ".sudo_as_admin_successful" ".config/" ".gnupg/" ".bash_history" ".emacs.d/" ".emacs.rc/" ".local/" ".cache/" ".swaylock/" ".mozilla/")
("/home/landam/dev/builds/SilentSDDM/configs/" (26817 40492 533120 424000) "catppuccin-frappe.conf" "default-left.conf" "catppuccin-latte.conf" "catppuccin-mocha.conf" "./" "../" "catppuccin-macchiato.conf" "default.conf" "rei.conf" "ken.conf" "silvia.conf" "default-right.conf") ("/home/landam/dev/builds/SilentSDDM/configs/" (26817 40492 533120 424000) "catppuccin-frappe.conf" "default-left.conf" "catppuccin-latte.conf" "catppuccin-mocha.conf" "./" "../" "catppuccin-macchiato.conf" "default.conf" "rei.conf" "ken.conf" "silvia.conf" "default-right.conf")
@@ -81,8 +97,6 @@
("/home/landam/dev/probe/rayedit/" (26818 63175 766937 304000) "3d.c" "nob.c" "include/" "rayedit" "assets/" "nob" ".#main.c" "main" "src/" "nob.h" "main.c" "./" "3dgame" "../" "2d.c" "2dgame") ("/home/landam/dev/probe/rayedit/" (26818 63175 766937 304000) "3d.c" "nob.c" "include/" "rayedit" "assets/" "nob" ".#main.c" "main" "src/" "nob.h" "main.c" "./" "3dgame" "../" "2d.c" "2dgame")
("/home/landam/" (26817 58055 109233 901000) ".xsession" "dev/" ".bash_logout" ".emacs" "opt/" "Desktop/" "Templates/" ".emacs.local/" "Music/" ".bashrc" "Pictures/" ".profile" "Documents/" ".wget-hsts" ".emacs.custom.el" ".dmrc" ".docker/" "Downloads/" ".xsession-errors" "./" "../" ".emacs~" ".ssh/" "Public/" ".emacs.custom.el~" ".fltk/" "Videos/" ".sudo_as_admin_successful" ".config/" ".gnupg/" ".bash_history" ".emacs.d/" ".emacs.rc/" ".local/" ".cache/" ".swaylock/" ".mozilla/")
("/home/landam/dev/probe/rayedit/assets/" (26817 44437 464778 864000) "character.png" "player.png" "spider.png" "./" "steps.ogg" "../" "partycles.wav") ("/home/landam/dev/probe/rayedit/assets/" (26817 44437 464778 864000) "character.png" "player.png" "spider.png" "./" "steps.ogg" "../" "partycles.wav")
("/home/landam/dev/probe/swaystatus/" (26817 41769 548588 615000) "nob.c" "swaystatus" "swaystatus.c" "nob" "nob.h" "./" "../" "nob.old") ("/home/landam/dev/probe/swaystatus/" (26817 41769 548588 615000) "nob.c" "swaystatus" "swaystatus.c" "nob" "nob.h" "./" "../" "nob.old")
@@ -113,8 +127,6 @@
("/home/" (26812 7839 999695 672000) "docker-data/" "landam/" "lost+found/" "./" "../") ("/home/" (26812 7839 999695 672000) "docker-data/" "landam/" "lost+found/" "./" "../")
("/home/landam/.config/sway/" (26812 10516 145935 103000) "config" "config~" "./" "../")
("/home/landam/dev/builds/protobuf-32.0/cmake/" (26782 3274 0 0) "abseil-cpp.cmake" "README.md" "protobuf.pc.cmake" "conformance.cmake" "installed_lib_shared_golden.txt" "protobuf-config-version.cmake.in" "dependencies.cmake" "gtest.cmake" "protobuf-lite.pc.cmake" "version.rc.in" "install.cmake" "protobuf-generate.cmake" "upb.pc.cmake" "protobuf-configure-target.cmake" "protoc.cmake" "examples.cmake" "libprotobuf-lite.cmake" "libprotobuf.cmake" "protobuf-module.cmake.in" "tests.cmake" "upb_generators.cmake" "protobuf-options.cmake" "./" "dependencies_generator.py" "../" "utf8_range.cmake" "installed_include_golden.txt" "installed_lib_static_golden.txt" "BUILD.bazel" "libupb.cmake" "libprotoc.cmake" "installed_bin_golden.txt" "protobuf-config.cmake.in") ("/home/landam/dev/builds/protobuf-32.0/cmake/" (26782 3274 0 0) "abseil-cpp.cmake" "README.md" "protobuf.pc.cmake" "conformance.cmake" "installed_lib_shared_golden.txt" "protobuf-config-version.cmake.in" "dependencies.cmake" "gtest.cmake" "protobuf-lite.pc.cmake" "version.rc.in" "install.cmake" "protobuf-generate.cmake" "upb.pc.cmake" "protobuf-configure-target.cmake" "protoc.cmake" "examples.cmake" "libprotobuf-lite.cmake" "libprotobuf.cmake" "protobuf-module.cmake.in" "tests.cmake" "upb_generators.cmake" "protobuf-options.cmake" "./" "dependencies_generator.py" "../" "utf8_range.cmake" "installed_include_golden.txt" "installed_lib_static_golden.txt" "BUILD.bazel" "libupb.cmake" "libprotoc.cmake" "installed_bin_golden.txt" "protobuf-config.cmake.in")
("/home/landam/dev/builds/protobuf-32.0/" (26782 3274 0 0) "WORKSPACE.bzlmod" "maven_dev_install.json" "README.md" "appveyor.bat" "version.json" ".bcr/" "pkg/" "SECURITY.md" "generate_descriptor_proto.sh" "toolchain/" "bazel/" "ruby/" ".bazelignore" "upb/" "protobuf_deps.bzl" "python/" "Cargo.bazel.lock" "LICENSE" "patches/" "docs/" "conformance/" "protobuf_version.bzl" ".gitmodules" ".bazeliskrc" ".readthedocs.yml" "PrivacyInfo.xcprivacy" "CONTRIBUTING.md" "examples/" "rust/" "Cargo.lock" "benchmarks/" "go/" "lua/" "src/" "build_defs/" "protobuf_release.bzl" "global.json" "protobuf.bzl" "CMakeLists.txt" "Disable_bundle_install.patch" "Protobuf.podspec" "editors/" "upb_generator/" "appveyor.yml" "php/" "editions/" "./" "fix_permissions.sh" ".bazelci/" "../" "hpb/" ".github/" ".clang-format" "MODULE.bazel" "WORKSPACE" "regenerate_stale_files.sh" "ci/" "maven_install.json" ".bazelrc" "CODE_OF_CONDUCT.md" ".gitignore" "java/" "BUILD.bazel" "csharp/" "hpb_generator/" "objectivec/" "google3_export_generated_files.sh" "CONTRIBUTORS.txt" "cmake/" "compatibility/" "Neverlink_jruby_jars.patch" "third_party/") ("/home/landam/dev/builds/protobuf-32.0/" (26782 3274 0 0) "WORKSPACE.bzlmod" "maven_dev_install.json" "README.md" "appveyor.bat" "version.json" ".bcr/" "pkg/" "SECURITY.md" "generate_descriptor_proto.sh" "toolchain/" "bazel/" "ruby/" ".bazelignore" "upb/" "protobuf_deps.bzl" "python/" "Cargo.bazel.lock" "LICENSE" "patches/" "docs/" "conformance/" "protobuf_version.bzl" ".gitmodules" ".bazeliskrc" ".readthedocs.yml" "PrivacyInfo.xcprivacy" "CONTRIBUTING.md" "examples/" "rust/" "Cargo.lock" "benchmarks/" "go/" "lua/" "src/" "build_defs/" "protobuf_release.bzl" "global.json" "protobuf.bzl" "CMakeLists.txt" "Disable_bundle_install.patch" "Protobuf.podspec" "editors/" "upb_generator/" "appveyor.yml" "php/" "editions/" "./" "fix_permissions.sh" ".bazelci/" "../" "hpb/" ".github/" ".clang-format" "MODULE.bazel" "WORKSPACE" "regenerate_stale_files.sh" "ci/" "maven_install.json" ".bazelrc" "CODE_OF_CONDUCT.md" ".gitignore" "java/" "BUILD.bazel" "csharp/" "hpb_generator/" "objectivec/" "google3_export_generated_files.sh" "CONTRIBUTORS.txt" "cmake/" "compatibility/" "Neverlink_jruby_jars.patch" "third_party/")