Skip to content

Commit

Permalink
sway: Improve OOTB config
Browse files Browse the repository at this point in the history
  • Loading branch information
der-eismann committed Jan 28, 2024
1 parent 89abe4e commit 4622273
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
Binary file modified s/sway/manifest.x86_64.bin
Binary file not shown.
13 changes: 12 additions & 1 deletion s/sway/manifest.x86_64.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"sway": {
"build-depends": [
"binary(cmake)",
"binary(scdoc)",
"pkgconfig(bash-completion)",
"pkgconfig(cairo)",
"pkgconfig(fish)",
Expand Down Expand Up @@ -60,6 +61,16 @@
"/usr/share/fish/vendor_completions.d/sway.fish",
"/usr/share/fish/vendor_completions.d/swaymsg.fish",
"/usr/share/fish/vendor_completions.d/swaynag.fish",
"/usr/share/man/man1/sway.1",
"/usr/share/man/man1/swaymsg.1",
"/usr/share/man/man1/swaynag.1",
"/usr/share/man/man5/sway-bar.5",
"/usr/share/man/man5/sway-input.5",
"/usr/share/man/man5/sway-output.5",
"/usr/share/man/man5/sway.5",
"/usr/share/man/man5/swaynag.5",
"/usr/share/man/man7/sway-ipc.7",
"/usr/share/man/man7/swaybar-protocol.7",
"/usr/share/wayland-sessions/sway.desktop",
"/usr/share/zsh/site-functions/_sway",
"/usr/share/zsh/site-functions/_swaymsg"
Expand All @@ -74,6 +85,6 @@
}
},
"source-name": "sway",
"source-release": "2",
"source-release": "3",
"source-version": "1.8.1"
}
18 changes: 18 additions & 0 deletions s/sway/pkg/enhance-config.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
diff --git a/config.in b/config.in
index 3eda7ac..55d0e80 100644
--- a/config.in
+++ b/config.in
@@ -14,11 +14,11 @@ set $down j
set $up k
set $right l
# Your preferred terminal emulator
-set $term foot
+set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
-set $menu dmenu_path | dmenu | xargs swaymsg exec --
+set $menu tofi-drun | xargs swaymsg exec --

### Output configuration
#
7 changes: 5 additions & 2 deletions s/sway/stone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
name : sway
version : '1.8.1'
release : 2
release : 3
homepage : https://github.com/swaywm/sway
upstreams :
- https://github.com/swaywm/sway/releases/download/1.8.1/sway-1.8.1.tar.gz : 73f08fd2cf7948e8af900709efe44eae412ae11c5773960e25c9aa09f73bad41
Expand All @@ -16,6 +16,7 @@ license :
- MIT
builddeps :
- binary(cmake)
- binary(scdoc)
- pkgconfig(bash-completion)
- pkgconfig(cairo)
- pkgconfig(fish)
Expand All @@ -31,11 +32,13 @@ builddeps :
rundeps :
# Let's make sure we have at least one terminal
- binary(alacritty)
- binary(swaybg)
- binary(tofi)
- liberation-fonts-ttf
- swaybg
# sway needs /usr/share/X11/xkb
- xkeyboard-config
setup : |
%patch %(pkgdir)/enhance-config.patch
%meson
build : |
%meson_build
Expand Down

0 comments on commit 4622273

Please sign in to comment.