mirror of
https://github.com/EdenQwQ/nixos.git
synced 2026-07-16 22:16:51 +08:00
fix wallpaper; add R packages for bayes factor
This commit is contained in:
parent
6bf8ae412f
commit
c2101a625a
8 changed files with 62 additions and 28 deletions
|
|
@ -37,9 +37,9 @@ let
|
|||
+ (
|
||||
builtins.attrNames config.monitors
|
||||
|> map (monitor: [
|
||||
"swww img --namespace background -o ${monitor} \"/home/${user}/Pictures/Wallpapers/generated/$(cat ~/.cache/swww/${monitor}-file)\""
|
||||
"swww img --namespace background -o ${monitor} \"/home/${user}/Pictures/Wallpapers/generated/$(cat ~/Pictures/Wallpapers/${monitor}-file)\""
|
||||
"sleep 0.2"
|
||||
"swww img --namespace backdrop -o ${monitor} \"/home/${user}/Pictures/Wallpapers/generated/$(cat ~/.cache/swww/${monitor}-blurred-file)\""
|
||||
"swww img --namespace backdrop -o ${monitor} \"/home/${user}/Pictures/Wallpapers/generated/$(cat ~/Pictures/Wallpapers/${monitor}-blurred-file)\""
|
||||
"sleep 0.2"
|
||||
])
|
||||
|> builtins.concatLists
|
||||
|
|
@ -50,7 +50,7 @@ let
|
|||
if config.desktopShell == "caelestia" then
|
||||
# bash
|
||||
''
|
||||
caelestia wallpaper -f "/home/${user}/Pictures/Wallpapers/generated/$(cat ~/.cache/swww/${config.lib.monitors.mainMonitorName}-file)"
|
||||
caelestia wallpaper -f "/home/${user}/Pictures/Wallpapers/generated/$(cat ~/Pictures/Wallpapers/${config.lib.monitors.mainMonitorName}-file)"
|
||||
caelestia scheme set -n dynamic -m dark
|
||||
''
|
||||
else
|
||||
|
|
|
|||
|
|
@ -106,6 +106,12 @@
|
|||
];
|
||||
opacity = 0.85;
|
||||
}
|
||||
{
|
||||
matches = [
|
||||
{ app-id = "MATLAB R2022b - academic use"; }
|
||||
];
|
||||
open-floating = true;
|
||||
}
|
||||
];
|
||||
layer-rules = [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ in
|
|||
key = "super + shift + w";
|
||||
command =
|
||||
if config.desktopShell == "caelestia" then
|
||||
"/home/${user}/scripts/change-wal-niri && caelestia wallpaper -f ~/Pictures/Wallpapers/generated/$(cat ~/.cache/swww/${config.lib.monitors.mainMonitorName}-file) && caelestia scheme set -n dynamic -m dark"
|
||||
"/home/${user}/scripts/change-wal-niri && caelestia wallpaper -f ~/Pictures/Wallpapers/generated/$(cat ~/Pictures/Wallpapers/${config.lib.monitors.mainMonitorName}-file) && caelestia scheme set -n dynamic -m dark"
|
||||
else
|
||||
"/home/${user}/scripts/change-wal-niri";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,5 +9,5 @@ output=$(niri msg -j focused-output | jq -r .name)
|
|||
swww img -o $output $wallpapers_dir/$wall --transition-type random --transition-duration 1 --namespace background
|
||||
blurwall=$(echo $wall | sed 's/\.jpg$/-blurred.jpg/')
|
||||
swww img -o $output $wallpapers_dir/$blurwall --transition-type fade --namespace backdrop
|
||||
echo $wall > $HOME/.cache/swww/"$output"-file
|
||||
echo $blurwall > $HOME/.cache/swww/"$output"-blurred-file
|
||||
echo $wall > $HOME/Pictures/Wallpapers/"$output"-file
|
||||
echo $blurwall > $HOME/Pictures/Wallpapers/"$output"-blurred-file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue