Change scripts path, minor fixes
This commit is contained in:
parent
1e6634beaa
commit
549bfbd2c7
31 changed files with 176 additions and 94 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
VALUE=$(light -G | cut -d'.' -f1)
|
VALUE=$(brightnessctl get)
|
||||||
TEXT="Brightness: ${VALUE}%"
|
TEXT="Brightness: ${VALUE}%"
|
||||||
|
|
||||||
notify-send \
|
notify-send \
|
||||||
|
|
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -1,3 +1,9 @@
|
||||||
|
tileos-settings (2.0.6~tileos) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Change scripts path, minor fixes
|
||||||
|
|
||||||
|
-- Aleksey Samoilov <samoilov.lex@gmail.com> Wed, 11 Jun 2025 22:21:42 +0400
|
||||||
|
|
||||||
tileos-settings (2.0.5~tileos) unstable; urgency=medium
|
tileos-settings (2.0.5~tileos) unstable; urgency=medium
|
||||||
|
|
||||||
* Initial upload
|
* Initial upload
|
||||||
|
|
|
@ -84,7 +84,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"custom/dunst": {
|
"custom/dunst": {
|
||||||
"exec": "/usr/share/miracle-wm/scripts/dunst.sh",
|
"exec": "/usr/share/tileos/scripts/dunst.sh",
|
||||||
"on-click": "dunstctl set-paused toggle",
|
"on-click": "dunstctl set-paused toggle",
|
||||||
"restart-interval": 1,
|
"restart-interval": 1,
|
||||||
},
|
},
|
||||||
|
@ -93,7 +93,7 @@
|
||||||
"format": " {}",
|
"format": " {}",
|
||||||
"min-length": 5,
|
"min-length": 5,
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"on-click": "swaymsg input $(swaymsg -t get_inputs --raw | jq '[.[] | select(.type == \"keyboard\")][0] | .identifier') xkb_switch_layout next"
|
"on-click": "miraclemsg input $(miraclemsg -t get_inputs --raw | jq '[.[] | select(.type == \"keyboard\")][0] | .identifier') xkb_switch_layout next"
|
||||||
},
|
},
|
||||||
|
|
||||||
"custom/clipboard": {
|
"custom/clipboard": {
|
||||||
|
@ -168,7 +168,7 @@
|
||||||
},
|
},
|
||||||
"tooltip-format": "{icon} {volume}% {format_source}",
|
"tooltip-format": "{icon} {volume}% {format_source}",
|
||||||
"on-click": "alacritty --class floating_shell -e pulsemixer",
|
"on-click": "alacritty --class floating_shell -e pulsemixer",
|
||||||
"on-click-middle": "pulsemixer --toggle-mute && /usr/share/miracle-wm/scripts/volume-notify.sh",
|
"on-click-middle": "pulsemixer --toggle-mute && /usr/share/tileos/scripts/volume-notify.sh",
|
||||||
"on-click-right": "pavucontrol"
|
"on-click-right": "pavucontrol"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -66,9 +66,9 @@
|
||||||
"on": "",
|
"on": "",
|
||||||
"off": ""
|
"off": ""
|
||||||
},
|
},
|
||||||
"exec": "fallback_latitude=50.1 fallback_longitude=8.7 latitude= longitude= /usr/share/niri/scripts/sunset.sh",
|
"exec": "fallback_latitude=50.1 fallback_longitude=8.7 latitude= longitude= /usr/share/tileos/scripts/sunset.sh",
|
||||||
"on-click": "/usr/share/niri/scripts/sunset.sh toggle; pkill -RTMIN+6 waybar",
|
"on-click": "/usr/share/tileos/scripts/sunset.sh toggle; pkill -RTMIN+6 waybar",
|
||||||
"exec-if": "/usr/share/niri/scripts/sunset.sh check",
|
"exec-if": "/usr/share/tileos/scripts/sunset.sh check",
|
||||||
"signal": 6
|
"signal": 6
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"custom/dunst": {
|
"custom/dunst": {
|
||||||
"exec": "/usr/share/niri/scripts/dunst.sh",
|
"exec": "/usr/share/tileos/scripts/dunst.sh",
|
||||||
"on-click": "dunstctl set-paused toggle",
|
"on-click": "dunstctl set-paused toggle",
|
||||||
"restart-interval": 1,
|
"restart-interval": 1,
|
||||||
},
|
},
|
||||||
|
@ -162,7 +162,7 @@
|
||||||
},
|
},
|
||||||
"tooltip-format": "{icon} {volume}% {format_source}",
|
"tooltip-format": "{icon} {volume}% {format_source}",
|
||||||
"on-click": "alacritty --class floating_shell -e pulsemixer",
|
"on-click": "alacritty --class floating_shell -e pulsemixer",
|
||||||
"on-click-middle": "pulsemixer --toggle-mute && /usr/share/river/scripts/volume-notify.sh",
|
"on-click-middle": "pulsemixer --toggle-mute && /usr/share/tileos/scripts/volume-notify.sh",
|
||||||
"on-click-right": "pavucontrol"
|
"on-click-right": "pavucontrol"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
export XDG_CURRENT_DESKTOP=wlroots
|
export XDG_CURRENT_DESKTOP=qtile
|
||||||
export XDG_SESSION_DESKTOP="${XDG_SESSION_DESKTOP:-wlroots}"
|
export XDG_SESSION_DESKTOP="${XDG_SESSION_DESKTOP:-qtile}"
|
||||||
export XDG_SESSION_TYPE=wayland
|
export XDG_SESSION_TYPE=wayland
|
||||||
VARIABLES="DESKTOP_SESSION XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE"
|
VARIABLES="DESKTOP_SESSION XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE"
|
||||||
VARIABLES="${VARIABLES} DISPLAY WAYLAND_DISPLAY"
|
VARIABLES="${VARIABLES} DISPLAY WAYLAND_DISPLAY"
|
||||||
SESSION_TARGET="qtile-session.target"
|
SESSION_TARGET="qtile-session.target"
|
||||||
SESSION_XDG_AUTOSTART_TARGET="qtile-xdg-autostart.target"
|
SESSION_XDG_AUTOSTART_TARGET="qtile-xdg-autostart.target"
|
||||||
SNI_CHECK="/usr/share/qtile/scripts/wait-sni-ready"
|
SNI_CHECK="/usr/share/tileos/scripts/wait-sni-ready"
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
dbus-update-activation-environment --systemd ${VARIABLES:- --all} &
|
dbus-update-activation-environment --systemd ${VARIABLES:- --all} &
|
||||||
|
@ -38,4 +38,4 @@ pcmanfm-qt -d &
|
||||||
|
|
||||||
# Clipboard daemon
|
# Clipboard daemon
|
||||||
pkill wl-paste
|
pkill wl-paste
|
||||||
wl-paste --watch cliphist store &
|
wl-paste --watch cliphist store &
|
||||||
|
|
|
@ -188,16 +188,16 @@ screens = [
|
||||||
border_width = [0, 0, 2, 0],
|
border_width = [0, 0, 2, 0],
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
mouse_callbacks={"Button1": lazy.spawn("/usr/share/qtile/scripts/clipboard.sh --list"),
|
mouse_callbacks={"Button1": lazy.spawn("/usr/share/tileos/scripts/clipboard.sh --list"),
|
||||||
"Button2": lazy.spawn("rm -f ~/.cache/cliphist/db"),
|
"Button2": lazy.spawn("rm -f ~/.cache/cliphist/db"),
|
||||||
"Button3": lazy.spawn("/usr/share/qtile/scripts/clipboard.sh --del")
|
"Button3": lazy.spawn("/usr/share/tileos/scripts/clipboard.sh --del")
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
widget.Spacer(length = 8),
|
widget.Spacer(length = 8),
|
||||||
# Idle inhibitor
|
# Idle inhibitor
|
||||||
widget.GenPollText(
|
widget.GenPollText(
|
||||||
update_interval=1,
|
update_interval=1,
|
||||||
func=lambda: subprocess.check_output(os.path.expanduser("/usr/share/qtile/scripts/idle-inhibit")).decode(),
|
func=lambda: subprocess.check_output(os.path.expanduser("/usr/share/tileos/scripts/idle-inhibit")).decode(),
|
||||||
foreground = qtile_colors[5],
|
foreground = qtile_colors[5],
|
||||||
decorations=[
|
decorations=[
|
||||||
BorderDecoration(
|
BorderDecoration(
|
||||||
|
@ -205,7 +205,7 @@ screens = [
|
||||||
border_width = [0, 0, 2, 0],
|
border_width = [0, 0, 2, 0],
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
mouse_callbacks={'Button1': lazy.spawn(os.path.expanduser("/usr/share/qtile/scripts/idle-inhibit toggle"), shell=True)}
|
mouse_callbacks={'Button1': lazy.spawn(os.path.expanduser("/usr/share/tileos/scripts/idle-inhibit toggle"), shell=True)}
|
||||||
),
|
),
|
||||||
widget.Spacer(length = 8),
|
widget.Spacer(length = 8),
|
||||||
widget.CPU(
|
widget.CPU(
|
||||||
|
|
|
@ -48,8 +48,8 @@ keys = [
|
||||||
desc="Spawn a command using a prompt widget"
|
desc="Spawn a command using a prompt widget"
|
||||||
),
|
),
|
||||||
Key([mod], "d",
|
Key([mod], "d",
|
||||||
lazy.spawn("rofi -show combi -combi-modi 'drun,run' -terminal terminal -ssh-command '{terminal} {ssh-client} {host} [-p {port}]' -run-shell-command '{terminal} {cmd}'"),
|
lazy.spawn("wofi --show drun --allow-images --allow-markup --hide-scroll --no-actions -lines 10 -width 35 --prompt "Search" --term '{terminal}'"),
|
||||||
desc="Launch Rofi menu"
|
desc="Launch Wofi menu"
|
||||||
),
|
),
|
||||||
# Switch between windows
|
# Switch between windows
|
||||||
Key(
|
Key(
|
||||||
|
@ -166,19 +166,19 @@ keys = [
|
||||||
Key(
|
Key(
|
||||||
[],
|
[],
|
||||||
"XF86AudioMute",
|
"XF86AudioMute",
|
||||||
lazy.spawn("/usr/share/qtile/scripts/volume-control.sh mute"),
|
lazy.spawn("/usr/share/tileos/scripts/volume-control.sh mute"),
|
||||||
desc='Mute audio'
|
desc='Mute audio'
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[],
|
[],
|
||||||
"XF86AudioLowerVolume",
|
"XF86AudioLowerVolume",
|
||||||
lazy.spawn("/usr/share/qtile/scripts/volume-control.sh down"),
|
lazy.spawn("/usr/share/tileos/scripts/volume-control.sh down"),
|
||||||
desc='Volume down'
|
desc='Volume down'
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[],
|
[],
|
||||||
"XF86AudioRaiseVolume",
|
"XF86AudioRaiseVolume",
|
||||||
lazy.spawn("/usr/share/qtile/scripts/volume-control.sh up"),
|
lazy.spawn("/usr/share/tileos/scripts/volume-control.sh up"),
|
||||||
desc='Volume up'
|
desc='Volume up'
|
||||||
),
|
),
|
||||||
|
|
||||||
|
@ -186,13 +186,13 @@ keys = [
|
||||||
Key(
|
Key(
|
||||||
[],
|
[],
|
||||||
"XF86MonBrightnessDown",
|
"XF86MonBrightnessDown",
|
||||||
lazy.spawn("/usr/share/qtile/scripts/brightness-control.sh down"),
|
lazy.spawn("/usr/share/tileos/scripts/brightness.sh down && /usr/share/tileos/scripts/brightness-notify.sh"),
|
||||||
desc='Brightness down'
|
desc='Brightness down'
|
||||||
),
|
),
|
||||||
Key(
|
Key(
|
||||||
[],
|
[],
|
||||||
"XF86MonBrightnessUp",
|
"XF86MonBrightnessUp",
|
||||||
lazy.spawn("/usr/share/qtile/scripts/brightness-control.sh up"),
|
lazy.spawn("/usr/share/tileos/scripts/brightness.sh up && /usr/share/tileos/scripts/brightness-notify.sh"),
|
||||||
desc='Brightness up'
|
desc='Brightness up'
|
||||||
),
|
),
|
||||||
|
|
||||||
|
@ -201,28 +201,28 @@ keys = [
|
||||||
Key(
|
Key(
|
||||||
[],
|
[],
|
||||||
"Print",
|
"Print",
|
||||||
lazy.spawn("/usr/share/qtile/scripts/screenshot.sh"),
|
lazy.spawn("/usr/share/tileos/scripts/screenshot.sh"),
|
||||||
desc='Save the screens of the currently focused output to the screenshots folder'
|
desc='Save the screens of the currently focused output to the screenshots folder'
|
||||||
),
|
),
|
||||||
# Take a screenshot of the selected region
|
# Take a screenshot of the selected region
|
||||||
Key(
|
Key(
|
||||||
[mod],
|
[mod],
|
||||||
"Print",
|
"Print",
|
||||||
lazy.spawn("/usr/share/qtile/scripts/screenshot.sh selected-region"),
|
lazy.spawn("/usr/share/tileos/scripts/screenshot.sh selected-region"),
|
||||||
desc='Save the selected region of the screen to the screenshots folder'
|
desc='Save the selected region of the screen to the screenshots folder'
|
||||||
),
|
),
|
||||||
# Capture region of screen to clipboard
|
# Capture region of screen to clipboard
|
||||||
Key(
|
Key(
|
||||||
[mod,"shift"],
|
[mod,"shift"],
|
||||||
"Print",
|
"Print",
|
||||||
lazy.spawn("/usr/share/qtile/scripts/screenshot.sh save-to-clipboard"),
|
lazy.spawn("/usr/share/tileos/scripts/screenshot.sh save-to-clipboard"),
|
||||||
desc='Capture a region of the screen to the clipboard'
|
desc='Capture a region of the screen to the clipboard'
|
||||||
),
|
),
|
||||||
# Take a screenshot of the selected window
|
# Take a screenshot of the selected window
|
||||||
Key(
|
Key(
|
||||||
[mod, "control"],
|
[mod, "control"],
|
||||||
"Print",
|
"Print",
|
||||||
lazy.spawn("/usr/share/qtile/scripts/screenshot.sh focused-window"),
|
lazy.spawn("/usr/share/tileos/scripts/screenshot.sh focused-window"),
|
||||||
desc='Save the selected window to the screenshots folder'
|
desc='Save the selected window to the screenshots folder'
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|
6
qtile/usr/share/tileos/scripts/clipboard.sh
Executable file
6
qtile/usr/share/tileos/scripts/clipboard.sh
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
--list) cliphist list | rofi -dmenu -p "Select item to copy:" -lines 10 -width 35 | cliphist decode | wl-copy;;
|
||||||
|
--del) cliphist list | rofi -dmenu -p "Select item to delete:" -lines 10 -width 35 | cliphist delete;;
|
||||||
|
esac
|
29
qtile/usr/share/tileos/scripts/idle-inhibit
Executable file
29
qtile/usr/share/tileos/scripts/idle-inhibit
Executable file
|
@ -0,0 +1,29 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Qtile idle-inhibitor toggle
|
||||||
|
function toggle {
|
||||||
|
if pgrep -f "swayidle" > /dev/null
|
||||||
|
then
|
||||||
|
systemctl --user stop swayidle.service
|
||||||
|
notify-send -r 5556 -u normal " Screensaver Disabled"
|
||||||
|
else
|
||||||
|
systemctl --user start swayidle.service
|
||||||
|
notify-send -r 5556 -u normal " Screensaver Enabled"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
toggle)
|
||||||
|
toggle
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
if pgrep -f "swayidle" > /dev/null
|
||||||
|
then
|
||||||
|
icon=""
|
||||||
|
else
|
||||||
|
icon=""
|
||||||
|
fi
|
||||||
|
printf "%s" "$icon"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
34
qtile/usr/share/tileos/scripts/screenshot.sh
Executable file
34
qtile/usr/share/tileos/scripts/screenshot.sh
Executable file
|
@ -0,0 +1,34 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
selected-region)
|
||||||
|
# Take a screenshot of the selected region
|
||||||
|
grim -t png -g "$(slurp)" ~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).png
|
||||||
|
notify-send -u normal "Screenshot of selected region is saved"
|
||||||
|
;;
|
||||||
|
save-to-clipboard)
|
||||||
|
# Take a screenshot and save it to the clipboard
|
||||||
|
grim -g "$(slurp -d)" - | wl-copy
|
||||||
|
notify-send -u normal "Screenshot copied to the clipboard"
|
||||||
|
;;
|
||||||
|
focused-window)
|
||||||
|
# Take a screenshot of the focused window
|
||||||
|
pos=$(qtile cmd-obj -o window -f get_position | awk '{ print $1" "$2}' | tr -dc '0-9 ')
|
||||||
|
xpos=$(echo $pos | awk '{ print $1 }')
|
||||||
|
ypos=$(echo $pos | awk '{ print $2 }')
|
||||||
|
size=$(qtile cmd-obj -o window -f get_size | awk '{ print $1" "$2}' | tr -dc '0-9 ')
|
||||||
|
xsize=$(echo $size | awk '{ print $1 }')
|
||||||
|
ysize=$(echo $size | awk '{ print $2 }')
|
||||||
|
xsize=$((xsize+4)) # Value added is 2 times the border width
|
||||||
|
ysize=$((ysize+4)) # Value added is 2 times the border width
|
||||||
|
grim -g "$xpos"",""$ypos $xsize""x""$ysize" -t png ~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).png
|
||||||
|
notify-send -u normal "Screenshot of the focused window is saved"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
# Take a screenshot of the currently focused output and save it into screenshots
|
||||||
|
output="$(qtile cmd-obj -o core -f eval -a "self._current_output.wlr_output.name" | awk -F"['']" '/,/{print $2}')"
|
||||||
|
grim -o $output -t png ~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%m-%s).png
|
||||||
|
notify-send -u normal "Screenshot saved"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
38
qtile/usr/share/tileos/scripts/volume-control.sh
Executable file
38
qtile/usr/share/tileos/scripts/volume-control.sh
Executable file
|
@ -0,0 +1,38 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
function send_notification {
|
||||||
|
local VOLUME=$(pulsemixer --get-volume)
|
||||||
|
# get first percent value
|
||||||
|
local VOLUME=${VOLUME%%%*}
|
||||||
|
local VOLUME=${VOLUME##* }
|
||||||
|
|
||||||
|
local TEXT="Volume: ${VOLUME}%"
|
||||||
|
case $(pulsemixer --get-mute) in
|
||||||
|
*1)
|
||||||
|
TEXT="Volume: muted"
|
||||||
|
VOLUME=0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
notify-send \
|
||||||
|
--expire-time 800 \
|
||||||
|
--hint string:x-canonical-private-synchronous:volume \
|
||||||
|
--hint "int:value:$VOLUME" \
|
||||||
|
--hint "int:transient:1" \
|
||||||
|
"${TEXT}"
|
||||||
|
}
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
up)
|
||||||
|
pulsemixer --change-volume +5
|
||||||
|
send_notification
|
||||||
|
;;
|
||||||
|
down)
|
||||||
|
pulsemixer --change-volume -5
|
||||||
|
send_notification
|
||||||
|
;;
|
||||||
|
mute)
|
||||||
|
pulsemixer --toggle-mute
|
||||||
|
send_notification
|
||||||
|
;;
|
||||||
|
esac
|
|
@ -8,7 +8,7 @@ VARIABLES="${VARIABLES} DISPLAY WAYLAND_DISPLAY"
|
||||||
SESSION_TARGET="river-session.target"
|
SESSION_TARGET="river-session.target"
|
||||||
SESSION_SHUTDOWN_TARGET="river-session-shutdown.target"
|
SESSION_SHUTDOWN_TARGET="river-session-shutdown.target"
|
||||||
SESSION_XDG_AUTOSTART_TARGET="river-xdg-autostart.target"
|
SESSION_XDG_AUTOSTART_TARGET="river-xdg-autostart.target"
|
||||||
SNI_CHECK="/usr/share/river/scripts/wait-sni-ready"
|
SNI_CHECK="/usr/share/tileos/scripts/wait-sni-ready"
|
||||||
|
|
||||||
if hash dbus-update-activation-environment 2>/dev/null; then
|
if hash dbus-update-activation-environment 2>/dev/null; then
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
|
@ -46,7 +46,7 @@ riverctl spawn "$HOME"/.azotebg
|
||||||
riverctl spawn "$HOME"/.config/river/keybindings.sh
|
riverctl spawn "$HOME"/.config/river/keybindings.sh
|
||||||
|
|
||||||
# Keybindings help overlay
|
# Keybindings help overlay
|
||||||
riverctl spawn /usr/share/river/scripts/help.sh & disown
|
riverctl spawn /usr/share/tileos/scripts/help.sh & disown
|
||||||
|
|
||||||
# Clipboard daemon
|
# Clipboard daemon
|
||||||
pkill wl-paste
|
pkill wl-paste
|
||||||
|
@ -66,7 +66,7 @@ pkill pcmanfm-qt
|
||||||
pcmanfm-qt -d & disown
|
pcmanfm-qt -d & disown
|
||||||
|
|
||||||
# Screenshot notification
|
# Screenshot notification
|
||||||
riverctl spawn /usr/share/river/scripts/screenshot-notify.sh & disown
|
riverctl spawn /usr/share/tileos/scripts/screenshot-notify.sh & disown
|
||||||
|
|
||||||
# Set background and border color
|
# Set background and border color
|
||||||
riverctl background-color 0x002b36
|
riverctl background-color 0x002b36
|
||||||
|
|
|
@ -10,13 +10,13 @@ term="alacritty"
|
||||||
launcher="eval wofi --show drun --allow-images --allow-markup --hide-scroll --no-actions -lines 10 -width 35 --term $term --prompt "Search""
|
launcher="eval wofi --show drun --allow-images --allow-markup --hide-scroll --no-actions -lines 10 -width 35 --term $term --prompt "Search""
|
||||||
|
|
||||||
# Volume changing notify
|
# Volume changing notify
|
||||||
volume_bar="/usr/share/river/scripts/volume-notify.sh"
|
volume_bar="/usr/share/tileos/scripts/volume-notify.sh"
|
||||||
|
|
||||||
# Mic volume mute
|
# Mic volume mute
|
||||||
mic_mute="/usr/share/river/scripts/mic-mute.sh"
|
mic_mute="/usr/share/tileos/scripts/mic-mute.sh"
|
||||||
|
|
||||||
# Brightness changing notify
|
# Brightness changing notify
|
||||||
brightness_bar="/usr/share/river/scripts/brightness-notify.sh"
|
brightness_bar="/usr/share/tileos/scripts/brightness-notify.sh"
|
||||||
|
|
||||||
# Screenshot notify
|
# Screenshot notify
|
||||||
screenshot_notify="eval [[ $(wl-paste -l) == "image/png" ]] && notify-send 'Screenshot copied to clipboard'"
|
screenshot_notify="eval [[ $(wl-paste -l) == "image/png" ]] && notify-send 'Screenshot copied to clipboard'"
|
||||||
|
@ -166,7 +166,7 @@ do
|
||||||
|
|
||||||
# Control screen backlight brightness with brightnessctl (https://github.com/Hummer12007/brightnessctl)
|
# 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 XF86MonBrightnessUp spawn "brightnessctl set +5% && $brightness_bar"
|
||||||
riverctl map $mode None XF86MonBrightnessDown spawn "brightnessctl set 5%- && $brightness_bar"
|
riverctl map $mode None XF86MonBrightnessDown spawn "brightnessctl set -5% && $brightness_bar"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Set keyboard repeat rate
|
# Set keyboard repeat rate
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
|
|
||||||
"custom/help": {
|
"custom/help": {
|
||||||
"format": "",
|
"format": "",
|
||||||
"on-click": "/usr/share/river/scripts/help.sh --toggle",
|
"on-click": "/usr/share/tileos/scripts/help.sh --toggle",
|
||||||
"tooltip": "false"
|
"tooltip": "false"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -70,8 +70,8 @@
|
||||||
"off": ""
|
"off": ""
|
||||||
},
|
},
|
||||||
"exec": "fallback_latitude=50.1 fallback_longitude=8.7 latitude= longitude= /usr/share/river/scripts/sunset.sh",
|
"exec": "fallback_latitude=50.1 fallback_longitude=8.7 latitude= longitude= /usr/share/river/scripts/sunset.sh",
|
||||||
"on-click": "/usr/share/river/scripts/sunset.sh toggle; pkill -RTMIN+6 waybar",
|
"on-click": "/usr/share/tileos/scripts/sunset.sh toggle; pkill -RTMIN+6 waybar",
|
||||||
"exec-if": "/usr/share/river/scripts/sunset.sh check",
|
"exec-if": "/usr/share/tileos/scripts/sunset.sh check",
|
||||||
"signal": 6
|
"signal": 6
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"custom/dunst": {
|
"custom/dunst": {
|
||||||
"exec": "/usr/share/river/scripts/dunst.sh",
|
"exec": "/usr/share/tileos/scripts/dunst.sh",
|
||||||
"on-click": "dunstctl set-paused toggle",
|
"on-click": "dunstctl set-paused toggle",
|
||||||
"restart-interval": 1,
|
"restart-interval": 1,
|
||||||
},
|
},
|
||||||
|
@ -165,7 +165,7 @@
|
||||||
},
|
},
|
||||||
"tooltip-format": "{icon} {volume}% {format_source}",
|
"tooltip-format": "{icon} {volume}% {format_source}",
|
||||||
"on-click": "alacritty --class floating_shell -e pulsemixer",
|
"on-click": "alacritty --class floating_shell -e pulsemixer",
|
||||||
"on-click-middle": "pulsemixer --toggle-mute && /usr/share/river/scripts/volume-notify.sh",
|
"on-click-middle": "pulsemixer --toggle-mute && /usr/share/tileos/scripts/volume-notify.sh",
|
||||||
"on-click-right": "pavucontrol"
|
"on-click-right": "pavucontrol"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
"tooltip-format": "{tooltip}",
|
"tooltip-format": "{tooltip}",
|
||||||
"exec": "echo '{\"class\": \"recording\",\"text\":\"\",\"tooltip\":\"press $mod+Esc to stop recording\"}'",
|
"exec": "echo '{\"class\": \"recording\",\"text\":\"\",\"tooltip\":\"press $mod+Esc to stop recording\"}'",
|
||||||
"exec-if": "pgrep wf-recorder",
|
"exec-if": "pgrep wf-recorder",
|
||||||
"on-click": "/usr/share/sway/scripts/recorder.sh",
|
"on-click": "/usr/share/tileos/scripts/recorder.sh",
|
||||||
"signal": 8
|
"signal": 8
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
|
|
||||||
"custom/help": {
|
"custom/help": {
|
||||||
"format": "",
|
"format": "",
|
||||||
"on-click": "/usr/share/sway/scripts/help.sh --toggle",
|
"on-click": "/usr/share/tileos/scripts/help.sh --toggle",
|
||||||
"tooltip": "false"
|
"tooltip": "false"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -90,8 +90,8 @@
|
||||||
"off": ""
|
"off": ""
|
||||||
},
|
},
|
||||||
"exec": "fallback_latitude=50.1 fallback_longitude=8.7 latitude= longitude= /usr/share/sway/scripts/sunset.sh",
|
"exec": "fallback_latitude=50.1 fallback_longitude=8.7 latitude= longitude= /usr/share/sway/scripts/sunset.sh",
|
||||||
"on-click": "/usr/share/sway/scripts/sunset.sh toggle; pkill -RTMIN+6 waybar",
|
"on-click": "/usr/share/tileos/scripts/sunset.sh toggle; pkill -RTMIN+6 waybar",
|
||||||
"exec-if": "/usr/share/sway/scripts/sunset.sh check",
|
"exec-if": "/usr/share/tileos/scripts/sunset.sh check",
|
||||||
"signal": 6
|
"signal": 6
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"custom/dunst": {
|
"custom/dunst": {
|
||||||
"exec": "/usr/share/sway/scripts/dunst.sh",
|
"exec": "/usr/share/tileos/scripts/dunst.sh",
|
||||||
"on-click": "dunstctl set-paused toggle",
|
"on-click": "dunstctl set-paused toggle",
|
||||||
"restart-interval": 1,
|
"restart-interval": 1,
|
||||||
},
|
},
|
||||||
|
|
|
@ -113,16 +113,16 @@ $bindsym $mod+Shift+9 move container to workspace $ws9, exec $focus_ws $ws9
|
||||||
$bindsym $mod+Shift+0 move container to workspace $ws10, exec $focus_ws $ws10
|
$bindsym $mod+Shift+0 move container to workspace $ws10, exec $focus_ws $ws10
|
||||||
|
|
||||||
## Launch // Open launcher in a new workspace ##
|
## Launch // Open launcher in a new workspace ##
|
||||||
$bindsym $mod+Shift+d exec /usr/share/sway/scripts/first-empty-workspace.py --switch, exec $menu
|
$bindsym $mod+Shift+d exec /usr/share/tileos/scripts/first-empty-workspace.py --switch, exec $menu
|
||||||
|
|
||||||
## Navigation // Switch to a new workspace ##
|
## Navigation // Switch to a new workspace ##
|
||||||
$bindsym $mod+n exec /usr/share/sway/scripts/first-empty-workspace.py --switch
|
$bindsym $mod+n exec /usr/share/tileos/scripts/first-empty-workspace.py --switch
|
||||||
|
|
||||||
## Action // Move focused window to a new workspace ##
|
## Action // Move focused window to a new workspace ##
|
||||||
$bindsym $mod+Shift+n exec /usr/share/sway/scripts/first-empty-workspace.py --move
|
$bindsym $mod+Shift+n exec /usr/share/tileos/scripts/first-empty-workspace.py --move
|
||||||
|
|
||||||
## Action // Move focused window to a new workspace and switch there ##
|
## Action // Move focused window to a new workspace and switch there ##
|
||||||
$bindsym $mod+Shift+m exec /usr/share/sway/scripts/first-empty-workspace.py --move --switch
|
$bindsym $mod+Shift+m exec /usr/share/tileos/scripts/first-empty-workspace.py --move --switch
|
||||||
|
|
||||||
## Action // Toogle shortcuts inhibition // $mod + Control_R ##
|
## Action // Toogle shortcuts inhibition // $mod + Control_R ##
|
||||||
$bindsym --inhibited $mod+Control_R exec $toggle_shorcuts_inhibitor
|
$bindsym --inhibited $mod+Control_R exec $toggle_shorcuts_inhibitor
|
||||||
|
|
|
@ -2,7 +2,7 @@ set $mode_recording "<span foreground='$sky'></span> \
|
||||||
<span foreground='$mauve'><b>Record</b></span> <span foreground='$sky'>(<b>r</b>)</span> \
|
<span foreground='$mauve'><b>Record</b></span> <span foreground='$sky'>(<b>r</b>)</span> \
|
||||||
<span foreground='$mauve'>+ [<span foreground='$sky'><b>Shift</b></span> for ]</span>"
|
<span foreground='$mauve'>+ [<span foreground='$sky'><b>Shift</b></span> for ]</span>"
|
||||||
|
|
||||||
set $recorder /usr/share/sway/scripts/recorder.sh
|
set $recorder /usr/share/tileos/scripts/recorder.sh
|
||||||
|
|
||||||
mode --pango_markup $mode_recording {
|
mode --pango_markup $mode_recording {
|
||||||
$bindsym r exec $recorder, mode "default"
|
$bindsym r exec $recorder, mode "default"
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
#
|
|
||||||
# Screenmirror:
|
|
||||||
#
|
|
||||||
# The mode allows the user to mirror the headless output.
|
|
||||||
# This is primarily used when screencasting to cast only the windows that
|
|
||||||
# belong to the headless output instead of casting the entire screen.
|
|
||||||
#
|
|
||||||
# See the following link for more details:
|
|
||||||
# https://github.com/emersion/xdg-desktop-portal-wlr/issues/107#issuecomment-1596107337
|
|
||||||
|
|
||||||
# set $screenmirror /usr/share/sway/scripts/screenmirror.sh
|
|
||||||
# set $start_mirror systemd-cat $screenmirror $headless
|
|
||||||
# set $stop_mirror systemd-cat $screenmirror -k
|
|
||||||
|
|
||||||
# ## Launch // Switch to the workspace for mirroring ##
|
|
||||||
# $bindsym $mod+0 exec $start_mirror, workspace $ws10
|
|
||||||
# ## Launch // Switch back from the workspace for mirroring ##
|
|
||||||
# $bindsym $mod+Mod1+0 exec $stop_mirror, workspace back_and_forth
|
|
|
@ -1,9 +0,0 @@
|
||||||
# This output configuration is required for the screenmirror mode to work.
|
|
||||||
|
|
||||||
#set $headless HEADLESS-1
|
|
||||||
|
|
||||||
#output $headless {
|
|
||||||
# position 16000 16000
|
|
||||||
#}
|
|
||||||
#workspace $ws10 output $headless
|
|
||||||
#exec swaymsg create_output
|
|
|
@ -10,11 +10,11 @@ set $up k
|
||||||
set $right l
|
set $right l
|
||||||
|
|
||||||
# flock wrapper for running only one process
|
# flock wrapper for running only one process
|
||||||
set $flock /usr/share/sway/scripts/flock.sh
|
set $flock /usr/share/tileos/scripts/flock.sh
|
||||||
|
|
||||||
# Your preferred terminal emulator
|
# Your preferred terminal emulator
|
||||||
set $term alacritty
|
set $term alacritty
|
||||||
set $term_cwd $term --working-directory "$(/usr/share/sway/scripts/swaycwd.sh 2>/dev/null || echo $HOME)"
|
set $term_cwd $term --working-directory "$(/usr/share/tileos/scripts/swaycwd.sh 2>/dev/null || echo $HOME)"
|
||||||
set $term_float $term --class floating_shell -e
|
set $term_float $term --class floating_shell -e
|
||||||
|
|
||||||
# Rofi theme
|
# Rofi theme
|
||||||
|
@ -31,13 +31,13 @@ set $bindsym bindsym --to-code
|
||||||
set $bluetooth $flock $term_float bluetuith
|
set $bluetooth $flock $term_float bluetuith
|
||||||
|
|
||||||
# Volume notification
|
# Volume notification
|
||||||
set $volume_bar /usr/share/sway/scripts/volume-notify.sh
|
set $volume_bar /usr/share/tileos/scripts/volume-notify.sh
|
||||||
|
|
||||||
# Brightness notification
|
# Brightness notification
|
||||||
set $brightness_bar /usr/share/sway/scripts/brightness-notify.sh
|
set $brightness_bar /usr/share/tileos/scripts/brightness-notify.sh
|
||||||
|
|
||||||
# Brightness control
|
# Brightness control
|
||||||
set $brightness /usr/share/sway/scripts/brightness.sh
|
set $brightness /usr/share/tileos/scripts/brightness.sh
|
||||||
set $brightness_up $brightness up && $brightness_bar
|
set $brightness_up $brightness up && $brightness_bar
|
||||||
set $brightness_down $brightness down && $brightness_bar
|
set $brightness_down $brightness down && $brightness_bar
|
||||||
|
|
||||||
|
@ -45,11 +45,7 @@ set $brightness_down $brightness down && $brightness_bar
|
||||||
set $volume_down pulsemixer --change-volume -5 && $volume_bar
|
set $volume_down pulsemixer --change-volume -5 && $volume_bar
|
||||||
set $volume_up pulsemixer --change-volume +5 && $volume_bar
|
set $volume_up pulsemixer --change-volume +5 && $volume_bar
|
||||||
set $volume_mute pulsemixer --toggle-mute && $volume_bar
|
set $volume_mute pulsemixer --toggle-mute && $volume_bar
|
||||||
set $mic_mute /usr/share/sway/scripts/mic-mute.sh
|
set $mic_mute /usr/share/tileos/scripts/mic-mute.sh
|
||||||
|
|
||||||
# Clipboard history
|
|
||||||
set $clipboard cliphist list | rofi -dmenu -font "$gui-font" -p "Select item to copy:" -lines 10 -width 35 | cliphist decode | wl-copy
|
|
||||||
set $clipboard-del cliphist list | rofi -dmenu -font "$gui-font" -p "Select item to delete:" -lines 10 -width 35 | cliphist delete
|
|
||||||
|
|
||||||
# Pulseaudo command
|
# Pulseaudo command
|
||||||
set $pulseaudio $term_float pulsemixer
|
set $pulseaudio $term_float pulsemixer
|
||||||
|
@ -58,10 +54,10 @@ set $pulseaudio $term_float pulsemixer
|
||||||
set $calendar $term_float calcurse
|
set $calendar $term_float calcurse
|
||||||
|
|
||||||
# Help overlay
|
# Help overlay
|
||||||
set $help_menu '[ -x "$(command -v nwg-wrapper)" ] && [ -f $HOME/.config/nwg-wrapper/help.sh ] && /usr/share/sway/scripts/help.sh'
|
set $help_menu '[ -x "$(command -v nwg-wrapper)" ] && [ -f $HOME/.config/nwg-wrapper/help.sh ] && /usr/share/tileos/scripts/help.sh'
|
||||||
|
|
||||||
# Help overlay command
|
# Help overlay command
|
||||||
set $help /usr/share/sway/scripts/help.sh --toggle
|
set $help /usr/share/tileos/scripts/help.sh --toggle
|
||||||
|
|
||||||
# Workspace names
|
# Workspace names
|
||||||
set $ws1 number 1
|
set $ws1 number 1
|
||||||
|
@ -73,7 +69,7 @@ set $ws6 number 6
|
||||||
set $ws7 number 7
|
set $ws7 number 7
|
||||||
set $ws8 number 8
|
set $ws8 number 8
|
||||||
set $ws9 number 9
|
set $ws9 number 9
|
||||||
set $ws10 "<span baseline_shift='-20pt' weight='bold'>🖵</span>"
|
set $ws10 number 10
|
||||||
|
|
||||||
# Screenshot
|
# Screenshot
|
||||||
set $grimshot /usr/bin/grimshot
|
set $grimshot /usr/bin/grimshot
|
||||||
|
@ -91,16 +87,16 @@ set $screenshot_active $pipe_active | $swappy && $notify_paste
|
||||||
set $polkit_agent /usr/bin/mate-polkit &
|
set $polkit_agent /usr/bin/mate-polkit &
|
||||||
|
|
||||||
# Night Light
|
# Night Light
|
||||||
set $wlsunset '[ -x "$(command -v wlsunset)" ] && /usr/share/sway/scripts/sunset.sh "on"'
|
set $wlsunset '[ -x "$(command -v wlsunset)" ] && /usr/share/tileos/scripts/sunset.sh "on"'
|
||||||
|
|
||||||
# Autotiling script
|
# Autotiling script
|
||||||
set $autotiling '[ -x "$(command -v autotiling)" ] && autotiling -w 1 3 5 7 9'
|
set $autotiling '[ -x "$(command -v autotiling)" ] && autotiling -w 1 3 5 7 9'
|
||||||
|
|
||||||
# Automatic workspace names
|
# Automatic workspace names
|
||||||
set $autoname_workspaces '[ -f /usr/share/sway/scripts/autoname-workspaces.py ] && /usr/share/sway/scripts/autoname-workspaces.py'
|
set $autoname_workspaces '[ -f /usr/share/tileos/scripts/autoname-workspaces.py ] && /usr/share/tileos/scripts/autoname-workspaces.py'
|
||||||
|
|
||||||
# switch between top-level containers (windows) in a workspace
|
# switch between top-level containers (windows) in a workspace
|
||||||
set $switch_toplevel '[ -f /usr/share/sway/scripts/switch-top-level.py ] && /usr/share/sway/scripts/switch-top-level.py'
|
set $switch_toplevel '[ -f /usr/share/tileos/scripts/switch-top-level.py ] && /usr/share/tileos/scripts/switch-top-level.py'
|
||||||
|
|
||||||
# Start PCmanFM-Qt as a daemon
|
# Start PCmanFM-Qt as a daemon
|
||||||
set $pcmanfm_daemon '[ -x "$(command -v pcmanfm-qt)" ] && pcmanfm-qt -d'
|
set $pcmanfm_daemon '[ -x "$(command -v pcmanfm-qt)" ] && pcmanfm-qt -d'
|
||||||
|
@ -122,7 +118,7 @@ set $update_rofi_theme mkdir -p $HOME/.config/rofi/ && echo $rofi_theme > $HOME/
|
||||||
set $calendar_daemon 'calcurse --daemon'
|
set $calendar_daemon 'calcurse --daemon'
|
||||||
|
|
||||||
# Notifications from Swappy
|
# Notifications from Swappy
|
||||||
set $swappy_notify '[ -x "$(command -v swappy)" ] && /usr/share/sway/scripts/screenshot-notify.sh'
|
set $swappy_notify '[ -x "$(command -v swappy)" ] && /usr/share/tileos/scripts/screenshot-notify.sh'
|
||||||
|
|
||||||
# Toggle shortcuts inhibition mode for the current focused window
|
# Toggle shortcuts inhibition mode for the current focused window
|
||||||
set $toggle_shorcuts_inhibitor 'swaymsg "seat - shortcuts_inhibitor toggle"'
|
set $toggle_shorcuts_inhibitor 'swaymsg "seat - shortcuts_inhibitor toggle"'
|
||||||
|
|
Loading…
Add table
Reference in a new issue