Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .config/hypr/config/binds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ hl.bind("SUPER + backslash", hl.dsp.workspace.toggle_special("SCR"))
hl.bind("SUPER + SHIFT + backslash", hl.dsp.window.move({ workspace = "special:SCR" }))

-- wallpapers
hl.bind("SUPER + W", hl.dsp.exec_cmd("sh ~/dotfiles/script/cycle_wallpaper.sh 'seq'"))
hl.bind("SUPER + SHIFT + W", hl.dsp.exec_cmd("sh ~/dotfiles/script/cycle_wallpaper.sh 'rev'"))
hl.bind("SUPER + W", hl.dsp.exec_cmd("ysh ~/dotfiles/script/cycle_wallpaper.ysh 'seq'"))
hl.bind("SUPER + SHIFT + W", hl.dsp.exec_cmd("ysh ~/dotfiles/script/cycle_wallpaper.ysh 'rev'"))
-- video wallpaper
hl.bind("ALT + W", hl.dsp.exec_cmd("sh ~/dotfiles/script/cycle_wallpaper.sh 'vdo'"))
hl.bind("ALT + W", hl.dsp.exec_cmd("ysh ~/dotfiles/script/cycle_wallpaper.ysh 'vdo'"))
-- safe wallpaper
hl.bind("SUPER + ALT + W", hl.dsp.exec_cmd("sh ~/dotfiles/script/safe_wallpaper.sh"))
hl.bind("SUPER + ALT + W", hl.dsp.exec_cmd("ysh ~/dotfiles/script/safe_wallpaper.ysh"))

-- Immediately lock
-- bind = SUPER SHIFT, E, exec, ~/dotfiles/commands/logout.py
Expand Down
4 changes: 2 additions & 2 deletions .config/hypr/config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ hl.on("hyprland.start", function()
hl.exec_cmd("swaync")
hl.exec_cmd("hyprctl setcursor Bibata-Modern-Ice 24")
hl.exec_cmd("awww-daemon")
hl.exec_cmd("sh ~/dotfiles/script/cycle_wallpaper.sh")
hl.exec_cmd("sh ~/dotfiles/script/launch-waybar.sh")
hl.exec_cmd("ysh ~/dotfiles/script/cycle_wallpaper.ysh")
hl.exec_cmd("ysh ~/dotfiles/script/launch-waybar.ysh")
end)
8 changes: 4 additions & 4 deletions .config/hypr/hyprlock.conf
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ shape {
# play status
label {
monitor =
text = cmd[update:2000] ~/dotfiles/script/mpris.sh status
text = cmd[update:2000] ~/dotfiles/script/mpris.ysh status
color = rgba(203, 166, 247, 0.8)
font_size = 11
font_family = 0xProto Nerd Font
Expand All @@ -123,7 +123,7 @@ label {
# title
label {
monitor =
text = cmd[update:2000] ~/dotfiles/script/mpris.sh title
text = cmd[update:2000] ~/dotfiles/script/mpris.ysh title
color = rgb(205, 214, 244)
font_size = 15
font_family = 0xProto Nerd Font Bold
Expand All @@ -136,7 +136,7 @@ label {
# artist
label {
monitor =
text = cmd[update:2000] ~/dotfiles/script/mpris.sh artist
text = cmd[update:2000] ~/dotfiles/script/mpris.ysh artist
color = rgba(166, 173, 200, 0.75)
font_size = 12
font_family = 0xProto Nerd Font
Expand All @@ -149,7 +149,7 @@ label {
# progress bar
label {
monitor =
text = cmd[update:2000] ~/dotfiles/script/mpris.sh progress
text = cmd[update:2000] ~/dotfiles/script/mpris.ysh progress
color = rgba(203, 166, 247, 0.6)
font_size = 10
font_family = 0xProto Nerd Font Mono
Expand Down
12 changes: 6 additions & 6 deletions .config/niri/config.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ spawn-at-startup "sh" "-c" "dbus-update-activation-environment --systemd WAYLAND
spawn-at-startup "sh" "-c" "systemctl --user stop xdg-desktop-portal xdg-desktop-portal-hyprland xdg-desktop-portal-wlr xdg-desktop-portal-gtk; systemctl --user start xdg-desktop-portal"

spawn-at-startup "awww-daemon"
spawn-at-startup "sh" "$HOME/dotfiles/script/cycle_wallpaper.sh"
spawn-at-startup "sh" "$HOME/dotfiles/script/launch-waybar.sh"
spawn-at-startup "ysh" "$HOME/dotfiles/script/cycle_wallpaper.ysh"
spawn-at-startup "ysh" "$HOME/dotfiles/script/launch-waybar.ysh"
spawn-at-startup "swaync"
spawn-at-startup "fcitx5"
spawn-at-startup "wl-paste" "--type" "text" "--watch" "cliphist" "store"
Expand Down Expand Up @@ -228,10 +228,10 @@ binds {

Alt+L hotkey-overlay-title="Lock the Screen: Swaylock" { spawn "swaylock"; }

Mod+W { spawn "~/dotfiles/script/cycle_wallpaper.sh" "seq"; }
Mod+Shift+W { spawn "~/dotfiles/script/cycle_wallpaper.sh" "rev"; }
Ctrl+Alt+W { spawn "~/dotfiles/script/cycle_wallpaper.sh" "rnd"; }
Mod+Alt+W { spawn "~/dotfiles/script/safe_wallpaper.sh"; }
Mod+W { spawn "ysh" "/home/alice/dotfiles/script/cycle_wallpaper.ysh" "seq"; }
Mod+Shift+W { spawn "ysh" "/home/alice/dotfiles/script/cycle_wallpaper.ysh" "rev"; }
Ctrl+Alt+W { spawn "ysh" "/home/alice/dotfiles/script/cycle_wallpaper.ysh" "rnd"; }
Mod+Alt+W { spawn "ysh" "/home/alice/dotfiles/script/safe_wallpaper.ysh"; }

Super+Print { screenshot; }
Print { screenshot-window; }
Expand Down
2 changes: 1 addition & 1 deletion .config/sampler/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ textboxes:
rate-ms: 500
color: 45
sample: |
sh -c '$HOME/dotfiles/script/asciiquarium-sampler.sh 40 15'
ysh -c '$HOME/dotfiles/script/asciiquarium-sampler.ysh 40 15'
border: true
asciiboxes:
- title: Clock
Expand Down
2 changes: 1 addition & 1 deletion .config/sampler/config_1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ textboxes:
rate-ms: 500
color: 45
sample: |
sh -c '$HOME/dotfiles/script/asciiquarium-sampler.sh 100 18'
ysh -c '$HOME/dotfiles/script/asciiquarium-sampler.ysh 100 18'
border: true

asciiboxes:
Expand Down
2 changes: 1 addition & 1 deletion .config/systemd/user/cycle_wallpaper.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Description=wallpaper cycle by awww

[Service]
Type=oneshot
ExecStart=%h/dotfiles/script/cycle_wallpaper.sh rnd
ExecStart=/usr/bin/env ysh %h/dotfiles/script/cycle_wallpaper.ysh rnd
StandardOutput=journal
StandardError=journal

2 changes: 1 addition & 1 deletion .config/waybar/config.hypr.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"on-click": "kitty --class='dev-float' -e jolt"
},
"custom/tlp": {
"exec": "~/dotfiles/script/tlp-waybar-status.sh",
"exec": "~/dotfiles/script/tlp-waybar-status.ysh",
"interval": 30,
"format": "󰌪 {}"
},
Expand Down
2 changes: 1 addition & 1 deletion .config/waybar/config.niri.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
},

"custom/tlp": {
"exec": "~/dotfiles/script/tlp-waybar-status.sh",
"exec": "~/dotfiles/script/tlp-waybar-status.ysh",
"interval": 30,
"format": "󰌪 {}"
},
Expand Down
8 changes: 4 additions & 4 deletions commands/cmd_p.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

cmds = {
"󰸉 Toggle WP slideshow": ["sh", script + "cycle_wallpaper.sh", "pse"],
"󰔎 Toggle theme L-D": ["sh", script + "toggle_theme.sh"],
"󰔎 Toggle theme L-D": ["ysh", script + "toggle_theme.ysh"],
" Random WP": ["sh", script + "cycle_wallpaper.sh", "rnd"],
"󰴰 Change to pub WP": ["sh", script + "safe_wallpaper.sh"],
" Show status of WP slide": ["sh", script + "status_of_slide.sh"],
"󰴰 Change to pub WP": ["ysh", script + "safe_wallpaper.ysh"],
" Show status of WP slide": ["ysh", script + "status_of_slide.ysh"],
"󱎐 Launch white in kitty": ["kitty", "--config", home + "/dotfiles/.config/kitty/light.conf"],
"󰹑 Screenshot active monitor": ["hyprshot", "-m", "output", "-m", "active", "--freeze"],
"󱂬 Screenshot active window": ["hyprshot", "-m", "window", "-m", "active", "--freeze"],
" Toggle visual effects": ["sh", script + "toggle_visual.sh"],
" Toggle visual effects": ["ysh", script + "toggle_visual.ysh"],
"󰑓 Reload Hyprland config": ["hyprctl", "reload"],
}

Expand Down
2 changes: 1 addition & 1 deletion script/__new_bk.sh → script/__new_bk.ysh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env ysh

mount_p="$(mount | grep bk | awk '{print $3}')"
if
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env ysh

# Render Asciiquarium inside sampler by running it in a tmux session
# and capturing the pane contents.
Expand Down
2 changes: 1 addition & 1 deletion script/audio_swicher.sh → script/audio_swicher.ysh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env ysh

# 1. Sinks(出力)セクションから次のセクション(Sources)までの間だけを抜き出す
# 2. その中からIDと名前の行を取得
Expand Down
8 changes: 4 additions & 4 deletions script/cmd_pallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@

cmds = {
"󰸉 Toggle slideshow of wallpapers": ["sh", script + "cycle_wallpaper.sh", "pse"],
"󰔎 Toggle light-dark theme": ["sh", script + "toggle_theme.sh"],
"󰔎 Toggle light-dark theme": ["ysh", script + "toggle_theme.ysh"],
" Random wallpaper": ["sh", script + "cycle_wallpaper.sh", "rnd"],
"󰴰 Change to pub wall": ["sh", script + "safe_wallpaper.sh"],
"Show status of wallpaper slide": ["sh", script + "status_of_slide.sh"],
"󰴰 Change to pub wall": ["ysh", script + "safe_wallpaper.ysh"],
"Show status of wallpaper slide": ["ysh", script + "status_of_slide.ysh"],
"Launch slide in kitty": ["kitty", "--config", home + "/dotfiles/.config/kitty/slide.conf", "--directory", slide_dev],
"Launch white in kitty": ["kitty", "--config", home + "/dotfiles/.config/kitty/light.conf"],
"󰹑 Screenshot active monitor": ["hyprshot", "-m", "output", "-m", "active", "--freeze"],
"󱂬 Screenshot active window": ["hyprshot", "-m", "window", "-m", "active", "--freeze"],
"Toggle visual effects": ["sh", script + "toggle_visual.sh"],
"Toggle visual effects": ["ysh", script + "toggle_visual.ysh"],
"Reload Hyprland config": ["hyprctl", "reload"],
}

Expand Down
Loading
Loading