Compare commits
4 commits
Author | SHA1 | Date | |
---|---|---|---|
d8d1f022c0 | |||
0bf9521a3c | |||
baf738bed1 | |||
51df2746b6 |
16 changed files with 198 additions and 69 deletions
25
debian/changelog
vendored
25
debian/changelog
vendored
|
@ -1,3 +1,28 @@
|
|||
tileos-settings-river (1.2.0~tileos) unstable; urgency=medium
|
||||
|
||||
* Add mic-mute.sh script for toggling microphone on/off
|
||||
|
||||
-- Aleksey Samoilov <samoilov.lex@gmail.com> Sat, 19 Oct 2024 23:41:50 +0400
|
||||
|
||||
tileos-settings-river (1.1.5~tileos) unstable; urgency=medium
|
||||
|
||||
* Updates from Sway edition
|
||||
|
||||
-- Aleksey Samoilov <samoilov.lex@gmail.com> Wed, 04 Sep 2024 21:37:22 +0400
|
||||
|
||||
tileos-settings-river (1.1.4~tileos) unstable; urgency=medium
|
||||
|
||||
* Pass SSH_AUTH_SOCK to all processes
|
||||
|
||||
-- Aleksey Samoilov <samoilov.lex@gmail.com> Thu, 25 Jul 2024 00:00:10 +0400
|
||||
|
||||
tileos-settings-river (1.1.3~tileos) unstable; urgency=medium
|
||||
|
||||
* Fix swayidle restart path
|
||||
* Added waybar restart path
|
||||
|
||||
-- Aleksey Samoilov <samoilov.lex@gmail.com> Tue, 23 Jul 2024 18:29:06 +0400
|
||||
|
||||
tileos-settings-river (1.1.2~tileos) unstable; urgency=medium
|
||||
|
||||
* Some fixes
|
||||
|
|
|
@ -1,97 +1,97 @@
|
|||
color_set:
|
||||
text: &TEXT "#CAD3F5"
|
||||
subtext0: &SUBTEXT0 "#E3E3F3"
|
||||
subtext1: &SUBTEXT1 "#CED4E0"
|
||||
surface2: &SURFACE2 "#5B6078"
|
||||
surface1: &SURFACE1 "#494D64"
|
||||
index16: &INDEX16 "#F5A97F"
|
||||
index17: &INDEX17 "#F4DBD6"
|
||||
base: &BASE "#24273A"
|
||||
red: &RED "#ED6070"
|
||||
green: &GREEN "#A6DA95"
|
||||
blue: &BLUE "#8AADF4"
|
||||
yellow: &YELLOW "#EED49F"
|
||||
pink: &PINK "#F5BDE6"
|
||||
teal: &TEAL "#8BD5CA"
|
||||
rosewater: &ROSEWATER "#F4DBD6"
|
||||
lavender: &LAVENDER "#B7BDF8"
|
||||
text: &TEXT "#cad3f5"
|
||||
subtext0: &SUBTEXT0 "#e3e3f3"
|
||||
subtext1: &SUBTEXT1 "#ced4e0"
|
||||
surface2: &SURFACE2 "#5b6078"
|
||||
surface1: &SURFACE1 "#494d64"
|
||||
index16: &INDEX16 "#ed6c13"
|
||||
index17: &INDEX17 "#f4dbd6"
|
||||
base: &BASE "#24273a"
|
||||
red: &RED "#ed6070"
|
||||
green: &GREEN "#a6da95"
|
||||
blue: &BLUE "#8aadf4"
|
||||
yellow: &YELLOW "#eed49f"
|
||||
pink: &PINK "#f5bde6"
|
||||
teal: &TEAL "#8bd5ca"
|
||||
rosewater: &ROSEWATER "#f4dbd6"
|
||||
lavender: &LAVENDER "#b7bdf8"
|
||||
|
||||
colors:
|
||||
# Default colors
|
||||
primary:
|
||||
background: *BASE # base
|
||||
foreground: *TEXT # text
|
||||
background: *BASE
|
||||
foreground: *TEXT
|
||||
# Bright and dim foreground colors
|
||||
dim_foreground: *TEXT # text
|
||||
bright_foreground: *TEXT # text
|
||||
dim_foreground: *TEXT
|
||||
bright_foreground: *TEXT
|
||||
|
||||
# Cursor colors
|
||||
cursor:
|
||||
text: *BASE # base
|
||||
cursor: *ROSEWATER # rosewater
|
||||
text: *BASE
|
||||
cursor: *ROSEWATER
|
||||
vi_mode_cursor:
|
||||
text: *BASE # base
|
||||
cursor: *LAVENDER # lavender
|
||||
text: *BASE
|
||||
cursor: *LAVENDER
|
||||
|
||||
# Search colors
|
||||
search:
|
||||
matches:
|
||||
foreground: *BASE # base
|
||||
background: *SUBTEXT0 # subtext0
|
||||
foreground: *BASE
|
||||
background: *SUBTEXT0
|
||||
focused_match:
|
||||
foreground: *BASE # base
|
||||
background: *GREEN # green
|
||||
foreground: *BASE
|
||||
background: *GREEN
|
||||
footer_bar:
|
||||
foreground: *BASE # base
|
||||
background: *SUBTEXT0 # subtext0
|
||||
foreground: *BASE
|
||||
background: *SUBTEXT0
|
||||
|
||||
# Keyboard regex hints
|
||||
hints:
|
||||
start:
|
||||
foreground: *BASE # base
|
||||
background: *YELLOW # yellow
|
||||
foreground: *BASE
|
||||
background: *YELLOW
|
||||
end:
|
||||
foreground: *BASE # base
|
||||
background: *SUBTEXT0 # subtext0
|
||||
foreground: *BASE
|
||||
background: *SUBTEXT0
|
||||
|
||||
# Selection colors
|
||||
selection:
|
||||
text: *BASE # base
|
||||
background: *ROSEWATER # rosewater
|
||||
text: *BASE
|
||||
background: *ROSEWATER
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: *SURFACE1 # surface1
|
||||
red: *RED # red
|
||||
green: *GREEN # green
|
||||
yellow: *YELLOW # yellow
|
||||
blue: *BLUE # blue
|
||||
magenta: *PINK # pink
|
||||
cyan: *TEAL # teal
|
||||
white: *SUBTEXT1 # subtext1
|
||||
black: *SURFACE1
|
||||
red: *RED
|
||||
green: *GREEN
|
||||
yellow: *YELLOW
|
||||
blue: *BLUE
|
||||
magenta: *PINK
|
||||
cyan: *TEAL
|
||||
white: *SUBTEXT1
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: *SURFACE2 # surface2
|
||||
red: *RED # red
|
||||
green: *GREEN # green
|
||||
yellow: *YELLOW # yellow
|
||||
blue: *BLUE # blue
|
||||
magenta: *PINK # pink
|
||||
cyan: *TEAL # teal
|
||||
white: *SUBTEXT0 # subtext0
|
||||
black: *SURFACE2
|
||||
red: *RED
|
||||
green: *GREEN
|
||||
yellow: *YELLOW
|
||||
blue: *BLUE
|
||||
magenta: *PINK
|
||||
cyan: *TEAL
|
||||
white: *SUBTEXT0
|
||||
|
||||
# Dim colors
|
||||
dim:
|
||||
black: *SURFACE1 # surface1
|
||||
red: *RED # red
|
||||
green: *GREEN # green
|
||||
yellow: *YELLOW # yellow
|
||||
blue: *BLUE # blue
|
||||
magenta: *PINK # pink
|
||||
cyan: *TEAL # teal
|
||||
white: *SUBTEXT1 # subtext1
|
||||
black: *SURFACE1
|
||||
red: *RED
|
||||
green: *GREEN
|
||||
yellow: *YELLOW
|
||||
blue: *BLUE
|
||||
magenta: *PINK
|
||||
cyan: *TEAL
|
||||
white: *SUBTEXT1
|
||||
|
||||
indexed_colors:
|
||||
- { index: 16, color: "#F5A97F" }
|
||||
- { index: 17, color: "#F4DBD6" }
|
||||
- { index: 16, color: *INDEX16 }
|
||||
- { index: 17, color: *INDEX17 }
|
||||
|
|
15
etc/skel/.config/bluetuith/bluetuith.conf
Normal file
15
etc/skel/.config/bluetuith/bluetuith.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
adapter: ""
|
||||
gsm-apn: ""
|
||||
gsm-number: ""
|
||||
keybindings: {}
|
||||
receive-dir: ""
|
||||
theme: {
|
||||
AdapterPowered: "powderblue",
|
||||
AdapterNotPowered: "lightcoral",
|
||||
AdapterPairable: "thistle",
|
||||
AdapterScanning: "mistyrose",
|
||||
DevicePropertyDiscovered: "mistyrose",
|
||||
DevicePropertyConnected: "powderblue"
|
||||
}
|
||||
}
|
|
@ -58,7 +58,7 @@ theme[cached_mid]="#8aadf4"
|
|||
theme[cached_end]="#b7bdf8"
|
||||
|
||||
# Mem/Disk available meter (Peach -> Red)
|
||||
theme[available_start]="#f5a97f"
|
||||
theme[available_start]="#ed6c13"
|
||||
theme[available_mid]="#ee99a0"
|
||||
theme[available_end]="#ed8796"
|
||||
|
||||
|
@ -68,7 +68,7 @@ theme[used_mid]="#8bd5ca"
|
|||
theme[used_end]="#91d7e3"
|
||||
|
||||
# Download graph colors (Peach -> Red)
|
||||
theme[download_start]="#f5a97f"
|
||||
theme[download_start]="#ed6c13"
|
||||
theme[download_mid]="#ee99a0"
|
||||
theme[download_end]="#ed8796"
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[
|
||||
{
|
||||
"label": "Lock",
|
||||
"exec": "riverctl spawn ~/.config/swaylock/lock.sh",
|
||||
"exec": "riverctl spawn /usr/share/river/scripts/lock.sh",
|
||||
"icon": "system-lock-screen"
|
||||
},
|
||||
{
|
||||
|
|
|
@ -15,7 +15,7 @@ Catppuccin Gedit theme based on Oblivion theme and Cappuccin for Visual Studio C
|
|||
<color name="macchiato_mauve" value="#c6a0f6"/>
|
||||
<color name="macchiato_red" value="#ed6070"/>
|
||||
<color name="macchiato_maroon" value="#ee99a0"/>
|
||||
<color name="macchiato_peach" value="#f5a97f"/>
|
||||
<color name="macchiato_peach" value="#ed6c13"/>
|
||||
<color name="macchiato_yellow" value="#eed49f"/>
|
||||
<color name="macchiato_green" value="#a6da95"/>
|
||||
<color name="macchiato_teal" value="#8bd5ca"/>
|
||||
|
|
|
@ -12,6 +12,9 @@ launcher="eval rofi -show combi -combi-modi 'drun,run' -terminal $term -ssh-comm
|
|||
# Volume changing notify
|
||||
volume_bar="/usr/share/river/scripts/volume-notify.sh"
|
||||
|
||||
# Mic volume mute
|
||||
mic_mute="/usr/share/river/scripts/mic-mute.sh"
|
||||
|
||||
# Brightness changing notify
|
||||
brightness_bar="/usr/share/river/scripts/brightness-notify.sh"
|
||||
|
||||
|
@ -153,6 +156,7 @@ do
|
|||
riverctl map $mode None XF86AudioRaiseVolume spawn "pulsemixer --change-volume +5 && $volume_bar"
|
||||
riverctl map $mode None XF86AudioLowerVolume spawn "pulsemixer --change-volume -5 && $volume_bar"
|
||||
riverctl map $mode None XF86AudioMute spawn "pulsemixer --toggle-mute && $volume_bar"
|
||||
riverctl map $mode None XF86AudioMicMute spawn "$mic_mute"
|
||||
|
||||
# Control MPRIS aware media players with playerctl (https://github.com/altdesktop/playerctl)
|
||||
riverctl map $mode None XF86AudioMedia spawn 'playerctl play-pause'
|
||||
|
|
|
@ -47,4 +47,8 @@ if [ -d "${XDG_CONFIG_HOME:-$HOME/.config}/environment.d" ]; then
|
|||
set +o allexport
|
||||
fi
|
||||
|
||||
exec systemd-cat -- /usr/bin/river $@
|
||||
run_river() {
|
||||
exec systemd-cat -- /usr/bin/ssh-agent /usr/bin/river $@
|
||||
}
|
||||
|
||||
run_river
|
||||
|
|
12
usr/lib/systemd/user/swayidle-inhibitor.service
Normal file
12
usr/lib/systemd/user/swayidle-inhibitor.service
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=Toggle idle inhibition depending on whether the audio is playing or not
|
||||
PartOf=swayidle.service
|
||||
After=swayidle.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/share/river/scripts/idle-inhibitor.sh
|
||||
Restart=always
|
||||
RestartSec=30
|
||||
|
||||
[Install]
|
||||
WantedBy=river-session.target
|
|
@ -1,10 +1,9 @@
|
|||
[Unit]
|
||||
Description=Automatically restart the swayidle when its configuration changes
|
||||
PartOf=swayidle.service
|
||||
After=swayidle.service
|
||||
|
||||
[Path]
|
||||
PathChanged=%h/.config/swayidle/config
|
||||
|
||||
[Install]
|
||||
WantedBy=river-session.target
|
||||
WantedBy=paths.target
|
||||
|
|
11
usr/lib/systemd/user/waybar-restart.path
Normal file
11
usr/lib/systemd/user/waybar-restart.path
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Automatically restart the waybar when its configuration changes
|
||||
PartOf=waybar.service
|
||||
|
||||
[Path]
|
||||
PathChanged=%h/.config/waybar
|
||||
PathChanged=%h/.config/waybar/colors
|
||||
PathChanged=%h/waybar/config
|
||||
|
||||
[Install]
|
||||
WantedBy=paths.target
|
3
usr/lib/systemd/user/waybar-restart.service
Normal file
3
usr/lib/systemd/user/waybar-restart.service
Normal file
|
@ -0,0 +1,3 @@
|
|||
[Service]
|
||||
ExecStart=systemctl --user restart waybar.service
|
||||
Type=oneshot
|
32
usr/share/river/scripts/idle-inhibitor.sh
Executable file
32
usr/share/river/scripts/idle-inhibitor.sh
Executable file
|
@ -0,0 +1,32 @@
|
|||
#!/bin/bash
|
||||
|
||||
check_status() {
|
||||
grep -s -l -v "closed" \
|
||||
/proc/asound/card*/pcm*/sub*/status \
|
||||
&>/dev/null
|
||||
}
|
||||
|
||||
out() {
|
||||
printf "Idle inhibition is OFF.\n"
|
||||
exit 0
|
||||
}
|
||||
|
||||
watch_status() {
|
||||
printf "Idle inhibition is ON.\n"
|
||||
while check_status; do
|
||||
sleep 10
|
||||
done
|
||||
out
|
||||
}
|
||||
|
||||
main() {
|
||||
check_status || out
|
||||
test "$1" = "-w" && watch_status
|
||||
systemd-inhibit \
|
||||
--what=idle \
|
||||
--who="${0##*/}" \
|
||||
--why="Inhibit idle due to audio is now playing" \
|
||||
--mode=block \
|
||||
"$0" -w
|
||||
}
|
||||
main "$@"
|
10
usr/share/river/scripts/lock.sh
Executable file
10
usr/share/river/scripts/lock.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
USER_SCRIPT="$HOME/.config/swaylock/lock.sh"
|
||||
GLOB_SCRIPT="/usr/share/sway/scripts/swaylock.sh"
|
||||
|
||||
if [[ -x "$USER_SCRIPT" ]]; then
|
||||
"$USER_SCRIPT"
|
||||
else
|
||||
"$GLOB_SCRIPT"
|
||||
fi
|
14
usr/share/river/scripts/mic-mute.sh
Executable file
14
usr/share/river/scripts/mic-mute.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
MIC="${1:-'Capture'}"
|
||||
|
||||
amixer sset "$MIC" toggle
|
||||
|
||||
STATE="$(amixer sget "$MIC",0 | sed -E -e '0,/^.*\[(on|off)\].*$/d' -e 's/^.*\[(\w+)\].*$/\1/')"
|
||||
|
||||
test -n "$STATE" && notify-send \
|
||||
--app-name river \
|
||||
--expire-time 800 \
|
||||
"Microphone is $STATE"
|
Loading…
Add table
Reference in a new issue