feat(niri): ricing never ends
This commit is contained in:
parent
328ecdffc3
commit
d779b76be0
8 changed files with 105 additions and 18 deletions
|
@ -87,7 +87,7 @@ window_padding_width 8
|
||||||
font_size 14.0
|
font_size 14.0
|
||||||
background_opacity 1
|
background_opacity 1
|
||||||
paste_actions filter
|
paste_actions filter
|
||||||
hide_window_decorations yes
|
#hide_window_decorations yes
|
||||||
#background_opacity 0.98
|
#background_opacity 0.98
|
||||||
#background_image ~/Nextcloud/Images/Wallpapers/kitty-bg.png
|
#background_image ~/Nextcloud/Images/Wallpapers/kitty-bg.png
|
||||||
#background_image_layout cscaled
|
#background_image_layout cscaled
|
||||||
|
|
|
@ -42,7 +42,7 @@ input {
|
||||||
|
|
||||||
// Focus windows and outputs automatically when moving the mouse into them.
|
// Focus windows and outputs automatically when moving the mouse into them.
|
||||||
// Setting max-scroll-amount="0%" makes it work only on windows already fully on screen.
|
// Setting max-scroll-amount="0%" makes it work only on windows already fully on screen.
|
||||||
// focus-follows-mouse max-scroll-amount="0%"
|
focus-follows-mouse max-scroll-amount="0%"
|
||||||
}
|
}
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
|
@ -207,7 +207,9 @@ spawn-at-startup "xwayland-satellite"
|
||||||
spawn-at-startup "xrandr --output eDP-1 --primary"
|
spawn-at-startup "xrandr --output eDP-1 --primary"
|
||||||
spawn-at-startup "waybar"
|
spawn-at-startup "waybar"
|
||||||
spawn-at-startup "swww-daemon"
|
spawn-at-startup "swww-daemon"
|
||||||
spawn-at-startup "~/Code/nixos-config/scripts/swww.sh ~/Nextcloud/Images/Wallpapers"
|
spawn-at-startup "wl-paste --type text --watch cliphist store # Stores only text data"
|
||||||
|
spawn-at-startup "wl-paste --type image --watch cliphist store # Stores only image data"
|
||||||
|
spawn-at-startup "~/Code/nixos-config/scripts/swww.sh ~/Code/wallpaper"
|
||||||
spawn-at-startup "firefox"
|
spawn-at-startup "firefox"
|
||||||
spawn-at-startup "kitty"
|
spawn-at-startup "kitty"
|
||||||
|
|
||||||
|
@ -389,8 +391,8 @@ binds {
|
||||||
// To avoid scrolling through workspaces really fast, you can use
|
// To avoid scrolling through workspaces really fast, you can use
|
||||||
// the cooldown-ms property. The bind will be rate-limited to this value.
|
// the cooldown-ms property. The bind will be rate-limited to this value.
|
||||||
// You can set a cooldown on any bind, but it's most useful for the wheel.
|
// You can set a cooldown on any bind, but it's most useful for the wheel.
|
||||||
Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
|
Mod+Shift+WheelScrollDown cooldown-ms=150 { focus-workspace-down; }
|
||||||
Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
|
Mod+Shift+WheelScrollUp cooldown-ms=150 { focus-workspace-up; }
|
||||||
Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
|
Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; }
|
||||||
Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
|
Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; }
|
||||||
|
|
||||||
|
@ -401,8 +403,8 @@ binds {
|
||||||
|
|
||||||
// Usually scrolling up and down with Shift in applications results in
|
// Usually scrolling up and down with Shift in applications results in
|
||||||
// horizontal scrolling; these binds replicate that.
|
// horizontal scrolling; these binds replicate that.
|
||||||
Mod+Shift+WheelScrollDown { focus-column-right; }
|
Mod+WheelScrollDown { focus-column-right; }
|
||||||
Mod+Shift+WheelScrollUp { focus-column-left; }
|
Mod+WheelScrollUp { focus-column-left; }
|
||||||
Mod+Ctrl+Shift+WheelScrollDown { move-column-right; }
|
Mod+Ctrl+Shift+WheelScrollDown { move-column-right; }
|
||||||
Mod+Ctrl+Shift+WheelScrollUp { move-column-left; }
|
Mod+Ctrl+Shift+WheelScrollUp { move-column-left; }
|
||||||
|
|
||||||
|
@ -464,6 +466,8 @@ binds {
|
||||||
Mod+Shift+F { fullscreen-window; }
|
Mod+Shift+F { fullscreen-window; }
|
||||||
Mod+C { center-column; }
|
Mod+C { center-column; }
|
||||||
|
|
||||||
|
Mod+Ctrl+B { spawn "~/Code/nixos-config/scripts/swww.sh ~/Code/wallpaper"; }
|
||||||
|
Mod+Ctrl+W { spawn "~/Code/nixos-config/scripts/restart-waybar.sh"; }
|
||||||
// Finer width adjustments.
|
// Finer width adjustments.
|
||||||
// This command can also:
|
// This command can also:
|
||||||
// * set width in pixels: "1000"
|
// * set width in pixels: "1000"
|
||||||
|
|
|
@ -8,7 +8,10 @@
|
||||||
"margin-left": 3,
|
"margin-left": 3,
|
||||||
"position": "top",
|
"position": "top",
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"niri/workspaces"
|
"custom/appmenu",
|
||||||
|
"wlr/taskbar",
|
||||||
|
"niri/workspaces",
|
||||||
|
"custom/wallpaper"
|
||||||
],
|
],
|
||||||
"modules-center": [
|
"modules-center": [
|
||||||
"niri/window"
|
"niri/window"
|
||||||
|
@ -19,8 +22,10 @@
|
||||||
"memory",
|
"memory",
|
||||||
"battery",
|
"battery",
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
|
"custom/cliphist",
|
||||||
"tray",
|
"tray",
|
||||||
"clock"
|
"clock",
|
||||||
|
"custom/exit"
|
||||||
],
|
],
|
||||||
"disable-scroll": true,
|
"disable-scroll": true,
|
||||||
"tray": {
|
"tray": {
|
||||||
|
@ -85,8 +90,45 @@
|
||||||
"icon": true,
|
"icon": true,
|
||||||
"icon-size": 16,
|
"icon-size": 16,
|
||||||
"rewrite": {
|
"rewrite": {
|
||||||
//"(.*) Mozilla Firefox": "🌎 $1",
|
// Truncate any format over 64 characters.
|
||||||
//"(.*) - zsh": "> [$1]"
|
"^(.{64}).+$": "$1…"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"custom/wallpaper": {
|
||||||
|
"format": "",
|
||||||
|
"on-click": "bash ~/Code/nixos-config/scripts/swww.sh ~/Code/wallpaper &",
|
||||||
|
//"on-click-right": "~/.config/hypr/scripts/wallpaper-effects.sh",
|
||||||
|
"tooltip-format": "Changer de fond d'écran"
|
||||||
|
},
|
||||||
|
// Rofi Application Launcher
|
||||||
|
"custom/appmenu": {
|
||||||
|
"format": "Apps",
|
||||||
|
"on-click": "rofi -show drun -replace",
|
||||||
|
//"on-click-right": "~/.config/hypr/scripts/keybindings.sh",
|
||||||
|
"tooltip": false
|
||||||
|
},
|
||||||
|
// Power Menu
|
||||||
|
"custom/exit": {
|
||||||
|
"format": "",
|
||||||
|
"on-click": "wlogout",
|
||||||
|
"on-click-right": "swaylock",
|
||||||
|
"tooltip": false
|
||||||
|
},
|
||||||
|
"wlr/taskbar": {
|
||||||
|
"format": "{icon}",
|
||||||
|
"icon-size": 16,
|
||||||
|
"tooltip-format": "{title}",
|
||||||
|
"on-click": "activate",
|
||||||
|
"on-click-right": "close",
|
||||||
|
"ignore-list": [],
|
||||||
|
"app_ids-mapping": {},
|
||||||
|
"rewrite": {}
|
||||||
|
},
|
||||||
|
"custom/cliphist": {
|
||||||
|
"format": "",
|
||||||
|
"on-click": "sleep 0.1 && ~/Code/nixos-config/scripts/cliphist.sh",
|
||||||
|
"on-click-right": "sleep 0.1 && ~/Code/nixos-config/scripts/cliphist.sh d",
|
||||||
|
"on-click-middle": "sleep 0.1 && ~/Code/nixos-config/scripts/cliphist.sh w",
|
||||||
|
"tooltip": false
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,10 +32,17 @@ window#waybar {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
.modules-left {
|
||||||
|
margin-left: 9px;
|
||||||
|
}
|
||||||
|
.modules-right {
|
||||||
|
margin-right: 9px;
|
||||||
|
}
|
||||||
tooltip {
|
tooltip {
|
||||||
background: @base;
|
background: @base;
|
||||||
color: @text;
|
color: @text;
|
||||||
}
|
}
|
||||||
|
#custom-wallpaper,
|
||||||
#clock,
|
#clock,
|
||||||
#bluetooth,
|
#bluetooth,
|
||||||
#network,
|
#network,
|
||||||
|
@ -44,6 +51,7 @@ tooltip {
|
||||||
#memory,
|
#memory,
|
||||||
#temperature,
|
#temperature,
|
||||||
#tray,
|
#tray,
|
||||||
|
#taskbar,
|
||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
#window,
|
#window,
|
||||||
#workspaces {
|
#workspaces {
|
||||||
|
@ -54,6 +62,7 @@ tooltip {
|
||||||
padding: 2px 8px;
|
padding: 2px 8px;
|
||||||
margin: 3px;
|
margin: 3px;
|
||||||
}
|
}
|
||||||
|
#custom-wallpaper:hover,
|
||||||
#clock:hover,
|
#clock:hover,
|
||||||
#bluetooth:hover,
|
#bluetooth:hover,
|
||||||
#network:hover,
|
#network:hover,
|
||||||
|
@ -62,6 +71,7 @@ tooltip {
|
||||||
#memory:hover,
|
#memory:hover,
|
||||||
#temperature:hover,
|
#temperature:hover,
|
||||||
#pulseaudio:hover,
|
#pulseaudio:hover,
|
||||||
|
#taskbar:hover,
|
||||||
#tray:hover,
|
#tray:hover,
|
||||||
#window:hover,
|
#window:hover,
|
||||||
#workspaces:hover {
|
#workspaces:hover {
|
||||||
|
|
|
@ -162,6 +162,9 @@
|
||||||
themechanger
|
themechanger
|
||||||
pavucontrol
|
pavucontrol
|
||||||
xwayland-satellite
|
xwayland-satellite
|
||||||
|
cliphist
|
||||||
|
rofi
|
||||||
|
wlogout
|
||||||
];
|
];
|
||||||
|
|
||||||
# Do not restart the display manager automatically
|
# Do not restart the display manager automatically
|
||||||
|
|
21
scripts/cliphist.sh
Executable file
21
scripts/cliphist.sh
Executable file
|
@ -0,0 +1,21 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# ____ _ _ _ _ _
|
||||||
|
# / ___| (_)_ __ | |__ (_)___| |_
|
||||||
|
# | | | | | '_ \| '_ \| / __| __|
|
||||||
|
# | |___| | | |_) | | | | \__ \ |_
|
||||||
|
# \____|_|_| .__/|_| |_|_|___/\__|
|
||||||
|
# |_|
|
||||||
|
#
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
d) cliphist list | rofi -dmenu -replace | cliphist delete
|
||||||
|
;;
|
||||||
|
|
||||||
|
w) if [ `echo -e "Clear\nCancel" | rofi -dmenu` == "Clear" ] ; then
|
||||||
|
cliphist wipe
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
*) cliphist list | rofi -dmenu -replace | cliphist decode | wl-copy
|
||||||
|
;;
|
||||||
|
esac
|
6
scripts/restart-waybar.sh
Executable file
6
scripts/restart-waybar.sh
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
killall waybar
|
||||||
|
pkill waybar
|
||||||
|
sleep 0.5
|
||||||
|
waybar
|
|
@ -18,17 +18,18 @@ export SWWW_TRANSITION_DURATION=1
|
||||||
export SWWW_TRANSITION_STEP=2
|
export SWWW_TRANSITION_STEP=2
|
||||||
|
|
||||||
# This controls (in seconds) when to switch to the next image
|
# This controls (in seconds) when to switch to the next image
|
||||||
INTERVAL=300
|
#INTERVAL=30
|
||||||
|
|
||||||
while true; do
|
#while true; do
|
||||||
find "$1" -type f \
|
find "$1" -type f \( -iname \*.jpg -o -iname \*.jpeg -o -iname \*.png -o -iname \*.webp \) \
|
||||||
| while read -r img; do
|
| while read -r img; do
|
||||||
echo "$((RANDOM % 1000)):$img"
|
echo "$((RANDOM % 1000)):$img"
|
||||||
done \
|
done \
|
||||||
| sort -n | cut -d':' -f2- \
|
| sort -n | cut -d':' -f2- \
|
||||||
| while read -r img; do
|
| while read -r img; do
|
||||||
swww img "$img"
|
swww img "$img"
|
||||||
sleep $INTERVAL
|
#sleep $INTERVAL
|
||||||
|
break
|
||||||
done
|
done
|
||||||
done
|
#done
|
||||||
one
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue