Compare commits
6 commits
stegosauru
...
master
Author | SHA1 | Date | |
---|---|---|---|
d8d1f022c0 | |||
0bf9521a3c | |||
baf738bed1 | |||
51df2746b6 | |||
1ca8db8d25 | |||
91d53b955d |
21 changed files with 409 additions and 242 deletions
31
debian/changelog
vendored
31
debian/changelog
vendored
|
@ -1,3 +1,34 @@
|
|||
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
|
||||
|
||||
-- Aleksey Samoilov <samoilov.lex@gmail.com> Sat, 20 Jul 2024 15:03:38 +0400
|
||||
|
||||
tileos-settings-river (1.1.1~tileos) unstable; urgency=medium
|
||||
|
||||
* Set qt6 style to kvantum-dark
|
||||
|
|
|
@ -1,79 +1,97 @@
|
|||
color_set:
|
||||
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: "#24273A" # base
|
||||
foreground: "#CAD3F5" # text
|
||||
background: *BASE
|
||||
foreground: *TEXT
|
||||
# Bright and dim foreground colors
|
||||
dim_foreground: "#CAD3F5" # text
|
||||
bright_foreground: "#CAD3F5" # text
|
||||
dim_foreground: *TEXT
|
||||
bright_foreground: *TEXT
|
||||
|
||||
# Cursor colors
|
||||
cursor:
|
||||
text: "#24273A" # base
|
||||
cursor: "#F4DBD6" # rosewater
|
||||
text: *BASE
|
||||
cursor: *ROSEWATER
|
||||
vi_mode_cursor:
|
||||
text: "#24273A" # base
|
||||
cursor: "#B7BDF8" # lavender
|
||||
text: *BASE
|
||||
cursor: *LAVENDER
|
||||
|
||||
# Search colors
|
||||
search:
|
||||
matches:
|
||||
foreground: "#24273A" # base
|
||||
background: "#A5ADCB" # subtext0
|
||||
foreground: *BASE
|
||||
background: *SUBTEXT0
|
||||
focused_match:
|
||||
foreground: "#24273A" # base
|
||||
background: "#A6DA95" # green
|
||||
foreground: *BASE
|
||||
background: *GREEN
|
||||
footer_bar:
|
||||
foreground: "#24273A" # base
|
||||
background: "#A5ADCB" # subtext0
|
||||
foreground: *BASE
|
||||
background: *SUBTEXT0
|
||||
|
||||
# Keyboard regex hints
|
||||
hints:
|
||||
start:
|
||||
foreground: "#24273A" # base
|
||||
background: "#EED49F" # yellow
|
||||
foreground: *BASE
|
||||
background: *YELLOW
|
||||
end:
|
||||
foreground: "#24273A" # base
|
||||
background: "#A5ADCB" # subtext0
|
||||
foreground: *BASE
|
||||
background: *SUBTEXT0
|
||||
|
||||
# Selection colors
|
||||
selection:
|
||||
text: "#24273A" # base
|
||||
background: "#F4DBD6" # rosewater
|
||||
text: *BASE
|
||||
background: *ROSEWATER
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: "#494D64" # surface1
|
||||
red: "#ED8796" # red
|
||||
green: "#A6DA95" # green
|
||||
yellow: "#EED49F" # yellow
|
||||
blue: "#8AADF4" # blue
|
||||
magenta: "#F5BDE6" # pink
|
||||
cyan: "#8BD5CA" # teal
|
||||
white: "#B8C0E0" # subtext1
|
||||
black: *SURFACE1
|
||||
red: *RED
|
||||
green: *GREEN
|
||||
yellow: *YELLOW
|
||||
blue: *BLUE
|
||||
magenta: *PINK
|
||||
cyan: *TEAL
|
||||
white: *SUBTEXT1
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: "#5B6078" # surface2
|
||||
red: "#ED8796" # red
|
||||
green: "#A6DA95" # green
|
||||
yellow: "#EED49F" # yellow
|
||||
blue: "#8AADF4" # blue
|
||||
magenta: "#F5BDE6" # pink
|
||||
cyan: "#8BD5CA" # teal
|
||||
white: "#A5ADCB" # subtext0
|
||||
black: *SURFACE2
|
||||
red: *RED
|
||||
green: *GREEN
|
||||
yellow: *YELLOW
|
||||
blue: *BLUE
|
||||
magenta: *PINK
|
||||
cyan: *TEAL
|
||||
white: *SUBTEXT0
|
||||
|
||||
# Dim colors
|
||||
dim:
|
||||
black: "#494D64" # surface1
|
||||
red: "#ED8796" # red
|
||||
green: "#A6DA95" # green
|
||||
yellow: "#EED49F" # yellow
|
||||
blue: "#8AADF4" # blue
|
||||
magenta: "#F5BDE6" # pink
|
||||
cyan: "#8BD5CA" # teal
|
||||
white: "#B8C0E0" # 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"
|
||||
},
|
||||
{
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/sh
|
||||
/usr/share/river/scripts/sbdp.py $HOME/.config/river/init | jq --raw-output 'sort_by(.category) | .[] | .action + ": <b>" + .keybinding + "</b>"'
|
||||
/usr/share/river/scripts/sbdp.py $HOME/.config/river/keybindings.sh | jq --raw-output 'sort_by(.category) | .[] | .action + ": <b>" + .keybinding + "</b>"'
|
||||
|
|
|
@ -13,9 +13,9 @@ Catppuccin Gedit theme based on Oblivion theme and Cappuccin for Visual Studio C
|
|||
<color name="macchiato_flamingo" value="#f0c6c6"/>
|
||||
<color name="macchiato_pink" value="#f5bde6"/>
|
||||
<color name="macchiato_mauve" value="#c6a0f6"/>
|
||||
<color name="macchiato_red" value="#ed8796"/>
|
||||
<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"/>
|
||||
|
@ -24,8 +24,8 @@ Catppuccin Gedit theme based on Oblivion theme and Cappuccin for Visual Studio C
|
|||
<color name="macchiato_blue" value="#8aadf4"/>
|
||||
<color name="macchiato_lavender" value="#b7bdf8"/>
|
||||
<color name="macchiato_text" value="#cad3f5"/>
|
||||
<color name="macchiato_subtext1" value="#b8c0e0"/>
|
||||
<color name="macchiato_subtext0" value="#a5adcb"/>
|
||||
<color name="macchiato_subtext1" value="#ced4e0"/>
|
||||
<color name="macchiato_subtext0" value="#e3e3f3"/>
|
||||
<color name="macchiato_overlay2" value="#939ab7"/>
|
||||
<color name="macchiato_overlay1" value="#8087a2"/>
|
||||
<color name="macchiato_overlay0" value="#6e738d"/>
|
||||
|
|
|
@ -10,24 +10,6 @@ SESSION_SHUTDOWN_TARGET="river-session-shutdown.target"
|
|||
SESSION_XDG_AUTOSTART_TARGET="river-xdg-autostart.target"
|
||||
SNI_CHECK="/usr/share/river/scripts/wait-sni-ready"
|
||||
|
||||
# Use the "logo" key as the primary modifier
|
||||
mod="Mod4"
|
||||
|
||||
# Default terminal emulator
|
||||
term="alacritty"
|
||||
|
||||
# Application launcher
|
||||
launcher="eval rofi -show combi -combi-modi 'drun,run' -terminal $term -ssh-command '{terminal} {ssh-client} {host} [-p {port}]' -run-shell-command '{terminal} {cmd}'"
|
||||
|
||||
# Volume changing notify
|
||||
volume_bar="/usr/share/river/scripts/volume-notify.sh"
|
||||
|
||||
# Brightness changing notify
|
||||
brightness_bar="/usr/share/river/scripts/brightness-notify.sh"
|
||||
|
||||
# Screenshot notify
|
||||
screenshot_notify="eval [[ $(wl-paste -l) == "image/png" ]] && notify-send 'Screenshot copied to clipboard'"
|
||||
|
||||
if hash dbus-update-activation-environment 2>/dev/null; then
|
||||
# shellcheck disable=SC2086
|
||||
dbus-update-activation-environment --systemd ${VARIABLES:- --all}
|
||||
|
@ -54,14 +36,15 @@ trap session_cleanup EXIT INT TERM
|
|||
# Wait for StatusNotifierWatcher is available and start XDG Autostart target
|
||||
"$SNI_CHECK" && systemctl --user start "$SESSION_XDG_AUTOSTART_TARGET"
|
||||
|
||||
######## Autostart ########
|
||||
|
||||
# Polkit agent
|
||||
riverctl spawn "/usr/bin/mate-polkit"
|
||||
|
||||
# Wallpaper
|
||||
riverctl spawn $HOME/.azotebg
|
||||
|
||||
# Include keybindings
|
||||
riverctl spawn $HOME/.config/river/keybindings.sh
|
||||
|
||||
# Keybindings help overlay
|
||||
riverctl spawn /usr/share/river/scripts/help.sh & disown
|
||||
|
||||
|
@ -85,180 +68,26 @@ pcmanfm-qt -d & disown
|
|||
# Screenshot notification
|
||||
riverctl spawn /usr/share/river/scripts/screenshot-notify.sh & disown
|
||||
|
||||
######## Colors ########
|
||||
|
||||
# Set background and border color
|
||||
riverctl background-color 0x002b36
|
||||
riverctl border-color-focused 0x8aadf4
|
||||
riverctl border-color-unfocused 0xa5adcb
|
||||
riverctl border-width 2
|
||||
|
||||
######## Window rules ########
|
||||
# Window rules
|
||||
|
||||
# Make all views with an app-id that starts with "floating_shell" start floating.
|
||||
riverctl rule-add float -app-id "floating_shell"
|
||||
riverctl float-filter-add app-id "floating_shell"
|
||||
# Set floating view for some apps
|
||||
riverctl rule-add float -app-id "engrampa"
|
||||
riverctl rule-add float -app-id "calamares"
|
||||
riverctl rule-add float -app-id "nwg-look"
|
||||
riverctl rule-add float -app-id "qt5ct"
|
||||
riverctl rule-add float -app-id "qt6ct"
|
||||
riverctl rule-add float -app-id "pavucontrol"
|
||||
riverctl rule-add float -app-id "wdisplays"
|
||||
riverctl rule-add float -title "Picture-in-Picture"
|
||||
riverctl rule-add float -title "Firefox — Sharing Indicator"
|
||||
|
||||
######## Keybindings ########
|
||||
|
||||
# Set keyboard layout. See man riverctl
|
||||
# riverctl keyboard-layout -options "grp:caps_toggle" "us,ru"
|
||||
|
||||
# Screenshot scripts
|
||||
riverctl map normal "None" Print spawn "/usr/bin/river-grimshot save screen - | swappy -f - && bash -c $screenshot_notify"
|
||||
riverctl map normal "$mod" Print spawn "/usr/bin/river-grimshot save area - | swappy -f - && bash -c $screenshot_notify"
|
||||
|
||||
## Action // Reload River Configuration // $mod+R ##
|
||||
riverctl map normal $mod R spawn $HOME/.config/river/init
|
||||
|
||||
## Launch // Terminal // $mod+Return ##
|
||||
riverctl map normal $mod Return spawn $term
|
||||
|
||||
## Launch // Launcher // $mod+D ##
|
||||
riverctl map normal $mod D spawn "$launcher"
|
||||
|
||||
## Action // Exit River // $mod+Shift+E ##
|
||||
riverctl map normal $mod+Shift E spawn nwg-bar
|
||||
|
||||
## Action // Kill focused window // $mod+Q ##
|
||||
riverctl map normal $mod+Shift Q close
|
||||
|
||||
## Navigation // Focus the next/previous view in the layout stack // $mod+{J,K} ##
|
||||
riverctl map normal $mod J focus-view next
|
||||
riverctl map normal $mod K focus-view previous
|
||||
|
||||
## Navigation // Swap the focused view in the layout stack // $mod+Shift+{J,K} ##
|
||||
riverctl map normal $mod+Shift J swap next
|
||||
riverctl map normal $mod+Shift K swap previous
|
||||
|
||||
## Navigation // Focus the next/previous output // $mod+{, .} ##
|
||||
riverctl map normal $mod Period focus-output next
|
||||
riverctl map normal $mod Comma focus-output previous
|
||||
|
||||
## Navigation // Send the focused view to the next/previous output // $mod+Shift+{, .} ##
|
||||
riverctl map normal $mod+Shift Period send-to-output next
|
||||
riverctl map normal $mod+Shift Comma send-to-output previous
|
||||
|
||||
## Navigation // Bump the focused view to the top of the layout stack // $mod+Shift+Return ##
|
||||
riverctl map normal $mod+Shift Return zoom
|
||||
|
||||
## Navigation // Decrease/increase the main ratio of rivertile // $mod+{H,L} ##
|
||||
riverctl map normal $mod H send-layout-cmd rivertile "main-ratio -0.05"
|
||||
riverctl map normal $mod L send-layout-cmd rivertile "main-ratio +0.05"
|
||||
|
||||
## Navigation // Increment/decrement the main count of rivertile // $mod+Shift+{H,L} ##
|
||||
riverctl map normal $mod+Shift H send-layout-cmd rivertile "main-count +1"
|
||||
riverctl map normal $mod+Shift L send-layout-cmd rivertile "main-count -1"
|
||||
|
||||
## Navigation // Move views // $mod+Alt+{H,J,K,L} ##
|
||||
riverctl map normal $mod+Alt H move left 100
|
||||
riverctl map normal $mod+Alt J move down 100
|
||||
riverctl map normal $mod+Alt K move up 100
|
||||
riverctl map normal $mod+Alt L move right 100
|
||||
|
||||
## Navigation // Snap views to screen edges // $mod+Alt+Control+{H,J,K,L}##
|
||||
riverctl map normal $mod+Alt+Control H snap left
|
||||
riverctl map normal $mod+Alt+Control J snap down
|
||||
riverctl map normal $mod+Alt+Control K snap up
|
||||
riverctl map normal $mod+Alt+Control L snap right
|
||||
|
||||
## Navigation // Resize views // $mod+Alt+Shift+{H,J,K,L} ##
|
||||
riverctl map normal $mod+Alt+Shift H resize horizontal -100
|
||||
riverctl map normal $mod+Alt+Shift J resize vertical 100
|
||||
riverctl map normal $mod+Alt+Shift K resize vertical -100
|
||||
riverctl map normal $mod+Alt+Shift L resize horizontal 100
|
||||
|
||||
## Navigation // Move views with mouse // $mod + Left Mouse Button ##
|
||||
riverctl map-pointer normal $mod BTN_LEFT move-view
|
||||
|
||||
## Navigation // Resize views with mouse // $mod + Right Mouse Button ##
|
||||
riverctl map-pointer normal $mod BTN_RIGHT resize-view
|
||||
|
||||
## Navigation // Toggle float // $mod + Middle Mouse Button ##
|
||||
riverctl map-pointer normal $mod BTN_MIDDLE toggle-float
|
||||
|
||||
# Tags navigation
|
||||
|
||||
## Navigation // Focus tag [0-8] // $mod+[1-9] ##
|
||||
## Navigation // Tag focused view with tag [0-8] // $mod+Shift+[1-9] ##
|
||||
## Navigation // Toggle focus of tag [0-8] // mod+Control+[1-9] ##
|
||||
## Navigation // Toggle tag [0-8] of focused view // $mod+Shift+Control+[1-9] ##
|
||||
|
||||
for i in $(seq 1 9)
|
||||
do
|
||||
tags=$((1 << ($i - 1)))
|
||||
|
||||
riverctl map normal $mod $i set-focused-tags $tags
|
||||
|
||||
riverctl map normal $mod+Shift $i set-view-tags $tags
|
||||
|
||||
riverctl map normal $mod+Control $i toggle-focused-tags $tags
|
||||
|
||||
riverctl map normal $mod+Shift+Control $i toggle-view-tags $tags
|
||||
done
|
||||
|
||||
## Navigation // Focus all tags // $mod+0 ##
|
||||
## Navigation // Tag focused view with all tags // $mod+Shift+0 ##
|
||||
all_tags=$(((1 << 32) - 1))
|
||||
riverctl map normal $mod 0 set-focused-tags $all_tags
|
||||
riverctl map normal $mod+Shift 0 set-view-tags $all_tags
|
||||
|
||||
## Action // Toggle floating // $mod+Space ##
|
||||
riverctl map normal $mod Space toggle-float
|
||||
|
||||
## Action // Toggle fullscreen // $mod+F ##
|
||||
riverctl map normal $mod F toggle-fullscreen
|
||||
|
||||
## Navigation // Change layout orientation // $mod+{↑ ↓ ← →} ##
|
||||
riverctl map normal $mod Up send-layout-cmd rivertile "main-location top"
|
||||
riverctl map normal $mod Right send-layout-cmd rivertile "main-location right"
|
||||
riverctl map normal $mod Down send-layout-cmd rivertile "main-location bottom"
|
||||
riverctl map normal $mod Left send-layout-cmd rivertile "main-location left"
|
||||
|
||||
# Declare a passthrough mode. This mode has only a single mapping to return to
|
||||
# normal mode. This makes it useful for testing a nested wayland compositor
|
||||
riverctl declare-mode passthrough
|
||||
|
||||
## Action // Enter passthrough mode // $mod+F11 ##
|
||||
riverctl map normal $mod F11 enter-mode passthrough
|
||||
|
||||
## Action // Return to normal mode // $mod+F11 ##
|
||||
riverctl map passthrough $mod F11 enter-mode normal
|
||||
|
||||
# Various media key mapping examples for both normal and locked mode which do
|
||||
# not have a modifier
|
||||
for mode in normal locked
|
||||
do
|
||||
# Eject the optical drive (well if you still have one that is)
|
||||
riverctl map $mode None XF86Eject spawn 'eject -T'
|
||||
|
||||
# Control pulse audio volume with pamixer (https://github.com/cdemoulins/pamixer)
|
||||
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"
|
||||
|
||||
# Control MPRIS aware media players with playerctl (https://github.com/altdesktop/playerctl)
|
||||
riverctl map $mode None XF86AudioMedia spawn 'playerctl play-pause'
|
||||
riverctl map $mode None XF86AudioPlay spawn 'playerctl play-pause'
|
||||
riverctl map $mode None XF86AudioPrev spawn 'playerctl previous'
|
||||
riverctl map $mode None XF86AudioNext spawn 'playerctl next'
|
||||
|
||||
# Control screen backlight brightness with brightnessctl (https://github.com/Hummer12007/brightnessctl)
|
||||
riverctl map $mode None XF86MonBrightnessUp spawn "brightnessctl set +5% && $brightness_bar"
|
||||
riverctl map $mode None XF86MonBrightnessDown spawn "brightnessctl set 5%- && $brightness_bar"
|
||||
done
|
||||
|
||||
# Set keyboard repeat rate
|
||||
riverctl set-repeat 50 300
|
||||
riverctl float-filter-add app-id "engrampa"
|
||||
riverctl float-filter-add app-id "calamares"
|
||||
riverctl float-filter-add app-id "nwg-look"
|
||||
riverctl float-filter-add app-id "qt5ct"
|
||||
riverctl float-filter-add app-id "qt6ct"
|
||||
riverctl float-filter-add app-id "pavucontrol"
|
||||
riverctl float-filter-add app-id "wdisplays"
|
||||
riverctl float-filter-add title "Picture-in-Picture"
|
||||
riverctl float-filter-add title "Firefox — Sharing Indicator"
|
||||
|
||||
# Set the default layout generator to be rivertile and start it.
|
||||
# River will send the process group of the init executable SIGTERM on exit.
|
||||
|
|
173
etc/skel/.config/river/keybindings.sh
Executable file
173
etc/skel/.config/river/keybindings.sh
Executable file
|
@ -0,0 +1,173 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Use the "logo" key as the primary modifier
|
||||
mod="Mod4"
|
||||
|
||||
# Default terminal emulator
|
||||
term="alacritty"
|
||||
|
||||
# Application launcher
|
||||
launcher="eval rofi -show combi -combi-modi 'drun,run' -terminal $term -ssh-command '{terminal} {ssh-client} {host} [-p {port}]' -run-shell-command '{terminal} {cmd}'"
|
||||
|
||||
# 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"
|
||||
|
||||
# Screenshot notify
|
||||
screenshot_notify="eval [[ $(wl-paste -l) == "image/png" ]] && notify-send 'Screenshot copied to clipboard'"
|
||||
|
||||
# Screenshot scripts
|
||||
riverctl map normal "None" Print spawn "/usr/bin/river-grimshot save screen - | swappy -f - && bash -c $screenshot_notify"
|
||||
riverctl map normal "$mod" Print spawn "/usr/bin/river-grimshot save area - | swappy -f - && bash -c $screenshot_notify"
|
||||
|
||||
# Set keyboard layout. See man riverctl
|
||||
# riverctl keyboard-layout -options "grp:caps_toggle" "us,ru"
|
||||
|
||||
## Action // Reload River Configuration // $mod+R ##
|
||||
riverctl map normal $mod R spawn $HOME/.config/river/init
|
||||
|
||||
## Launch // Terminal // $mod+Return ##
|
||||
riverctl map normal $mod Return spawn $term
|
||||
|
||||
## Launch // Launcher // $mod+D ##
|
||||
riverctl map normal $mod D spawn "$launcher"
|
||||
|
||||
## Action // Exit River // $mod+Shift+E ##
|
||||
riverctl map normal $mod+Shift E spawn nwg-bar
|
||||
|
||||
## Action // Kill focused window // $mod+Q ##
|
||||
riverctl map normal $mod+Shift Q close
|
||||
|
||||
## Navigation // Focus the next/previous view in the layout stack // $mod+{J,K} ##
|
||||
riverctl map normal $mod J focus-view next
|
||||
riverctl map normal $mod K focus-view previous
|
||||
|
||||
## Navigation // Swap the focused view in the layout stack // $mod+Shift+{J,K} ##
|
||||
riverctl map normal $mod+Shift J swap next
|
||||
riverctl map normal $mod+Shift K swap previous
|
||||
|
||||
## Navigation // Focus the next/previous output // $mod+{, .} ##
|
||||
riverctl map normal $mod Period focus-output next
|
||||
riverctl map normal $mod Comma focus-output previous
|
||||
|
||||
## Navigation // Send the focused view to the next/previous output // $mod+Shift+{, .} ##
|
||||
riverctl map normal $mod+Shift Period send-to-output next
|
||||
riverctl map normal $mod+Shift Comma send-to-output previous
|
||||
|
||||
## Navigation // Bump the focused view to the top of the layout stack // $mod+Shift+Return ##
|
||||
riverctl map normal $mod+Shift Return zoom
|
||||
|
||||
## Navigation // Decrease/increase the main ratio of rivertile // $mod+{H,L} ##
|
||||
riverctl map normal $mod H send-layout-cmd rivertile "main-ratio -0.05"
|
||||
riverctl map normal $mod L send-layout-cmd rivertile "main-ratio +0.05"
|
||||
|
||||
## Navigation // Increment/decrement the main count of rivertile // $mod+Shift+{H,L} ##
|
||||
riverctl map normal $mod+Shift H send-layout-cmd rivertile "main-count +1"
|
||||
riverctl map normal $mod+Shift L send-layout-cmd rivertile "main-count -1"
|
||||
|
||||
## Navigation // Move views // $mod+Alt+{H,J,K,L} ##
|
||||
riverctl map normal $mod+Alt H move left 100
|
||||
riverctl map normal $mod+Alt J move down 100
|
||||
riverctl map normal $mod+Alt K move up 100
|
||||
riverctl map normal $mod+Alt L move right 100
|
||||
|
||||
## Navigation // Snap views to screen edges // $mod+Alt+Control+{H,J,K,L}##
|
||||
riverctl map normal $mod+Alt+Control H snap left
|
||||
riverctl map normal $mod+Alt+Control J snap down
|
||||
riverctl map normal $mod+Alt+Control K snap up
|
||||
riverctl map normal $mod+Alt+Control L snap right
|
||||
|
||||
## Navigation // Resize views // $mod+Alt+Shift+{H,J,K,L} ##
|
||||
riverctl map normal $mod+Alt+Shift H resize horizontal -100
|
||||
riverctl map normal $mod+Alt+Shift J resize vertical 100
|
||||
riverctl map normal $mod+Alt+Shift K resize vertical -100
|
||||
riverctl map normal $mod+Alt+Shift L resize horizontal 100
|
||||
|
||||
## Navigation // Move views with mouse // $mod + Left Mouse Button ##
|
||||
riverctl map-pointer normal $mod BTN_LEFT move-view
|
||||
|
||||
## Navigation // Resize views with mouse // $mod + Right Mouse Button ##
|
||||
riverctl map-pointer normal $mod BTN_RIGHT resize-view
|
||||
|
||||
## Navigation // Toggle float // $mod + Middle Mouse Button ##
|
||||
riverctl map-pointer normal $mod BTN_MIDDLE toggle-float
|
||||
|
||||
# Tags navigation
|
||||
|
||||
## Navigation // Focus tag [0-8] // $mod+[1-9] ##
|
||||
## Navigation // Tag focused view with tag [0-8] // $mod+Shift+[1-9] ##
|
||||
## Navigation // Toggle focus of tag [0-8] // mod+Control+[1-9] ##
|
||||
## Navigation // Toggle tag [0-8] of focused view // $mod+Shift+Control+[1-9] ##
|
||||
|
||||
for i in $(seq 1 9)
|
||||
do
|
||||
tags=$((1 << ($i - 1)))
|
||||
|
||||
riverctl map normal $mod $i set-focused-tags $tags
|
||||
|
||||
riverctl map normal $mod+Shift $i set-view-tags $tags
|
||||
|
||||
riverctl map normal $mod+Control $i toggle-focused-tags $tags
|
||||
|
||||
riverctl map normal $mod+Shift+Control $i toggle-view-tags $tags
|
||||
done
|
||||
|
||||
## Navigation // Focus all tags // $mod+0 ##
|
||||
## Navigation // Tag focused view with all tags // $mod+Shift+0 ##
|
||||
all_tags=$(((1 << 32) - 1))
|
||||
riverctl map normal $mod 0 set-focused-tags $all_tags
|
||||
riverctl map normal $mod+Shift 0 set-view-tags $all_tags
|
||||
|
||||
## Action // Toggle floating // $mod+Space ##
|
||||
riverctl map normal $mod Space toggle-float
|
||||
|
||||
## Action // Toggle fullscreen // $mod+F ##
|
||||
riverctl map normal $mod F toggle-fullscreen
|
||||
|
||||
## Navigation // Change layout orientation // $mod+{↑ ↓ ← →} ##
|
||||
riverctl map normal $mod Up send-layout-cmd rivertile "main-location top"
|
||||
riverctl map normal $mod Right send-layout-cmd rivertile "main-location right"
|
||||
riverctl map normal $mod Down send-layout-cmd rivertile "main-location bottom"
|
||||
riverctl map normal $mod Left send-layout-cmd rivertile "main-location left"
|
||||
|
||||
# Declare a passthrough mode. This mode has only a single mapping to return to
|
||||
# normal mode. This makes it useful for testing a nested wayland compositor
|
||||
riverctl declare-mode passthrough
|
||||
|
||||
## Action // Enter passthrough mode // $mod+F11 ##
|
||||
riverctl map normal $mod F11 enter-mode passthrough
|
||||
|
||||
## Action // Return to normal mode // $mod+F11 ##
|
||||
riverctl map passthrough $mod F11 enter-mode normal
|
||||
|
||||
# Various media key mapping examples for both normal and locked mode which do
|
||||
# not have a modifier
|
||||
for mode in normal locked
|
||||
do
|
||||
# Eject the optical drive (well if you still have one that is)
|
||||
riverctl map $mode None XF86Eject spawn 'eject -T'
|
||||
|
||||
# Control pulse audio volume with pamixer (https://github.com/cdemoulins/pamixer)
|
||||
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'
|
||||
riverctl map $mode None XF86AudioPlay spawn 'playerctl play-pause'
|
||||
riverctl map $mode None XF86AudioPrev spawn 'playerctl previous'
|
||||
riverctl map $mode None XF86AudioNext spawn 'playerctl next'
|
||||
|
||||
# Control screen backlight brightness with light (https://github.com/haikarainen/light)
|
||||
riverctl map $mode None XF86MonBrightnessUp spawn "light -A 5 && $brightness_bar"
|
||||
riverctl map $mode None XF86MonBrightnessDown spawn "light -U 5 && $brightness_bar"
|
||||
done
|
||||
|
||||
# Set keyboard repeat rate
|
||||
riverctl set-repeat 50 300
|
|
@ -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
|
9
usr/lib/systemd/user/swayidle-restart.path
Normal file
9
usr/lib/systemd/user/swayidle-restart.path
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Automatically restart the swayidle when its configuration changes
|
||||
PartOf=swayidle.service
|
||||
|
||||
[Path]
|
||||
PathChanged=%h/.config/swayidle/config
|
||||
|
||||
[Install]
|
||||
WantedBy=paths.target
|
6
usr/lib/systemd/user/swayidle-restart.service
Normal file
6
usr/lib/systemd/user/swayidle-restart.service
Normal file
|
@ -0,0 +1,6 @@
|
|||
[Service]
|
||||
ExecStart=systemctl --user restart swayidle.service
|
||||
Type=oneshot
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
|
@ -6,7 +6,7 @@ ConditionPathExists=/usr/bin/swayidle
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/swayidle
|
||||
ExecStart=/usr/bin/swayidle -w
|
||||
|
||||
[Install]
|
||||
WantedBy=river-session.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
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
VALUE=$(echo "$(brightnessctl get) * 100 / $(brightnessctl max)" | bc)
|
||||
VALUE=$(light -G | cut -d'.' -f1)
|
||||
TEXT="Brightness: ${VALUE}%"
|
||||
|
||||
notify-send \
|
||||
|
|
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