mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 12:23:56 -05:00
home/sway: improve handling of optional swayfx configuration
Some checks are pending
flakehub / flakehub-publish (push) Waiting to run
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
Some checks are pending
flakehub / flakehub-publish (push) Waiting to run
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
This commit is contained in:
parent
01096d5a44
commit
49ff24b4a9
|
@ -228,59 +228,57 @@ in {
|
||||||
workspaceAutoBackAndForth = true;
|
workspaceAutoBackAndForth = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig =
|
||||||
bindsym --locked XF86MonBrightnessUp exec ${helpers.brightness.up}
|
''
|
||||||
bindsym --locked XF86MonBrightnessDown exec ${helpers.brightness.down}
|
bindsym --locked XF86MonBrightnessUp exec ${helpers.brightness.up}
|
||||||
bindsym --locked XF86AudioRaiseVolume exec ${helpers.volume.up}
|
bindsym --locked XF86MonBrightnessDown exec ${helpers.brightness.down}
|
||||||
bindsym --locked XF86AudioLowerVolume exec ${helpers.volume.down}
|
bindsym --locked XF86AudioRaiseVolume exec ${helpers.volume.up}
|
||||||
bindsym --locked XF86AudioMute exec ${helpers.volume.mute}
|
bindsym --locked XF86AudioLowerVolume exec ${helpers.volume.down}
|
||||||
bindsym --locked XF86AudioMicMute exec ${helpers.volume.micMute}
|
bindsym --locked XF86AudioMute exec ${helpers.volume.mute}
|
||||||
bindsym --locked XF86AudioPlay exec ${helpers.media.play}
|
bindsym --locked XF86AudioMicMute exec ${helpers.volume.micMute}
|
||||||
bindsym --locked XF86AudioPrev exec ${helpers.media.prev}
|
bindsym --locked XF86AudioPlay exec ${helpers.media.play}
|
||||||
bindsym --locked XF86AudioNext exec ${helpers.media.next}
|
bindsym --locked XF86AudioPrev exec ${helpers.media.prev}
|
||||||
|
bindsym --locked XF86AudioNext exec ${helpers.media.next}
|
||||||
|
|
||||||
mode "move" {
|
mode "move" {
|
||||||
bindgesture swipe:right move container to workspace prev; workspace prev
|
bindgesture swipe:right move container to workspace prev; workspace prev
|
||||||
bindgesture swipe:left move container to workspace next; workspace next
|
bindgesture swipe:left move container to workspace next; workspace next
|
||||||
bindgesture pinch:inward+up move up
|
bindgesture pinch:inward+up move up
|
||||||
bindgesture pinch:inward+down move down
|
bindgesture pinch:inward+down move down
|
||||||
bindgesture pinch:inward+left move left
|
bindgesture pinch:inward+left move left
|
||||||
bindgesture pinch:inward+right move right
|
bindgesture pinch:inward+right move right
|
||||||
}
|
}
|
||||||
|
|
||||||
bindgesture swipe:right workspace prev
|
bindgesture swipe:right workspace prev
|
||||||
bindgesture swipe:left workspace next
|
bindgesture swipe:left workspace next
|
||||||
|
|
||||||
bindswitch --reload --locked lid:on output eDP-1 disable
|
bindswitch --reload --locked lid:on output eDP-1 disable
|
||||||
bindswitch --reload --locked lid:off output eDP-1 enable
|
bindswitch --reload --locked lid:off output eDP-1 enable
|
||||||
|
''
|
||||||
|
+ lib.strings.optionalString (config.wayland.windowManager.sway.package
|
||||||
|
== pkgs.swayfx) ''
|
||||||
|
blur enable
|
||||||
|
blur_passes 1
|
||||||
|
|
||||||
${
|
# corner_radius 10
|
||||||
if config.wayland.windowManager.sway.package == pkgs.swayfx
|
shadows enable
|
||||||
then "
|
shadows_on_csd enable
|
||||||
blur enable
|
shadow_color ${cfg.theme.colors.shadow}
|
||||||
blur_passes 1
|
|
||||||
|
|
||||||
# corner_radius 10
|
default_dim_inactive 0.05
|
||||||
shadows enable
|
|
||||||
shadows_on_csd enable
|
|
||||||
shadow_color ${cfg.theme.colors.shadow}
|
|
||||||
|
|
||||||
default_dim_inactive 0.05
|
layer_effects launcher blur enable
|
||||||
|
layer_effects launcher blur_ignore_transparent enable
|
||||||
layer_effects launcher blur enable
|
layer_effects logout_dialog blur enable
|
||||||
layer_effects launcher blur_ignore_transparent enable
|
layer_effects notifications blur enable
|
||||||
layer_effects logout_dialog blur enable
|
layer_effects notifications blur_ignore_transparent enable
|
||||||
layer_effects notifications blur enable
|
layer_effects rofi blur enable
|
||||||
layer_effects notifications blur_ignore_transparent enable
|
layer_effects rofi blur_ignore_transparent enable
|
||||||
layer_effects rofi blur enable
|
layer_effects swaybar blur enable
|
||||||
layer_effects rofi blur_ignore_transparent enable
|
layer_effects swaybar blur_ignore_transparent enable
|
||||||
layer_effects swaybar blur enable
|
layer_effects swayosd blur enable
|
||||||
layer_effects swaybar blur_ignore_transparent enable
|
layer_effects swayosd blur_ignore_transparent enable
|
||||||
layer_effects swayosd blur enable
|
layer_effects waybar blur enable
|
||||||
layer_effects swayosd blur_ignore_transparent enable
|
layer_effects waybar blur_ignore_transparent enable
|
||||||
layer_effects waybar blur enable
|
'';
|
||||||
layer_effects waybar blur_ignore_transparent enable"
|
|
||||||
else ""
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue