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
|
||||
|
||||
VALUE=$(light -G | cut -d'.' -f1)
|
||||
VALUE=$(brightnessctl get)
|
||||
TEXT="Brightness: ${VALUE}%"
|
||||
|
||||
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
|
||||
|
||||
* Initial upload
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
},
|
||||
|
||||
"custom/dunst": {
|
||||
"exec": "/usr/share/miracle-wm/scripts/dunst.sh",
|
||||
"exec": "/usr/share/tileos/scripts/dunst.sh",
|
||||
"on-click": "dunstctl set-paused toggle",
|
||||
"restart-interval": 1,
|
||||
},
|
||||
|
@ -93,7 +93,7 @@
|
|||
"format": " {}",
|
||||
"min-length": 5,
|
||||
"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": {
|
||||
|
@ -168,7 +168,7 @@
|
|||
},
|
||||
"tooltip-format": "{icon} {volume}% {format_source}",
|
||||
"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"
|
||||
},
|
||||
|
||||
|
|
|
@ -66,9 +66,9 @@
|
|||
"on": "",
|
||||
"off": ""
|
||||
},
|
||||
"exec": "fallback_latitude=50.1 fallback_longitude=8.7 latitude= longitude= /usr/share/niri/scripts/sunset.sh",
|
||||
"on-click": "/usr/share/niri/scripts/sunset.sh toggle; pkill -RTMIN+6 waybar",
|
||||
"exec-if": "/usr/share/niri/scripts/sunset.sh check",
|
||||
"exec": "fallback_latitude=50.1 fallback_longitude=8.7 latitude= longitude= /usr/share/tileos/scripts/sunset.sh",
|
||||
"on-click": "/usr/share/tileos/scripts/sunset.sh toggle; pkill -RTMIN+6 waybar",
|
||||
"exec-if": "/usr/share/tileos/scripts/sunset.sh check",
|
||||
"signal": 6
|
||||
},
|
||||
|
||||
|
@ -85,7 +85,7 @@
|
|||
},
|
||||
|
||||
"custom/dunst": {
|
||||
"exec": "/usr/share/niri/scripts/dunst.sh",
|
||||
"exec": "/usr/share/tileos/scripts/dunst.sh",
|
||||
"on-click": "dunstctl set-paused toggle",
|
||||
"restart-interval": 1,
|
||||
},
|
||||
|
@ -162,7 +162,7 @@
|
|||
},
|
||||
"tooltip-format": "{icon} {volume}% {format_source}",
|
||||
"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"
|
||||
},
|
||||
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
export XDG_CURRENT_DESKTOP=wlroots
|
||||
export XDG_SESSION_DESKTOP="${XDG_SESSION_DESKTOP:-wlroots}"
|
||||
export XDG_CURRENT_DESKTOP=qtile
|
||||
export XDG_SESSION_DESKTOP="${XDG_SESSION_DESKTOP:-qtile}"
|
||||
export XDG_SESSION_TYPE=wayland
|
||||
VARIABLES="DESKTOP_SESSION XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE"
|
||||
VARIABLES="${VARIABLES} DISPLAY WAYLAND_DISPLAY"
|
||||
SESSION_TARGET="qtile-session.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
|
||||
dbus-update-activation-environment --systemd ${VARIABLES:- --all} &
|
||||
|
|
|
@ -188,16 +188,16 @@ screens = [
|
|||
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"),
|
||||
"Button3": lazy.spawn("/usr/share/qtile/scripts/clipboard.sh --del")
|
||||
"Button3": lazy.spawn("/usr/share/tileos/scripts/clipboard.sh --del")
|
||||
},
|
||||
),
|
||||
widget.Spacer(length = 8),
|
||||
# Idle inhibitor
|
||||
widget.GenPollText(
|
||||
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],
|
||||
decorations=[
|
||||
BorderDecoration(
|
||||
|
@ -205,7 +205,7 @@ screens = [
|
|||
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.CPU(
|
||||
|
|
|
@ -48,8 +48,8 @@ keys = [
|
|||
desc="Spawn a command using a prompt widget"
|
||||
),
|
||||
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}'"),
|
||||
desc="Launch Rofi menu"
|
||||
lazy.spawn("wofi --show drun --allow-images --allow-markup --hide-scroll --no-actions -lines 10 -width 35 --prompt "Search" --term '{terminal}'"),
|
||||
desc="Launch Wofi menu"
|
||||
),
|
||||
# Switch between windows
|
||||
Key(
|
||||
|
@ -166,19 +166,19 @@ keys = [
|
|||
Key(
|
||||
[],
|
||||
"XF86AudioMute",
|
||||
lazy.spawn("/usr/share/qtile/scripts/volume-control.sh mute"),
|
||||
lazy.spawn("/usr/share/tileos/scripts/volume-control.sh mute"),
|
||||
desc='Mute audio'
|
||||
),
|
||||
Key(
|
||||
[],
|
||||
"XF86AudioLowerVolume",
|
||||
lazy.spawn("/usr/share/qtile/scripts/volume-control.sh down"),
|
||||
lazy.spawn("/usr/share/tileos/scripts/volume-control.sh down"),
|
||||
desc='Volume down'
|
||||
),
|
||||
Key(
|
||||
[],
|
||||
"XF86AudioRaiseVolume",
|
||||
lazy.spawn("/usr/share/qtile/scripts/volume-control.sh up"),
|
||||
lazy.spawn("/usr/share/tileos/scripts/volume-control.sh up"),
|
||||
desc='Volume up'
|
||||
),
|
||||
|
||||
|
@ -186,13 +186,13 @@ keys = [
|
|||
Key(
|
||||
[],
|
||||
"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'
|
||||
),
|
||||
Key(
|
||||
[],
|
||||
"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'
|
||||
),
|
||||
|
||||
|
@ -201,28 +201,28 @@ keys = [
|
|||
Key(
|
||||
[],
|
||||
"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'
|
||||
),
|
||||
# Take a screenshot of the selected region
|
||||
Key(
|
||||
[mod],
|
||||
"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'
|
||||
),
|
||||
# Capture region of screen to clipboard
|
||||
Key(
|
||||
[mod,"shift"],
|
||||
"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'
|
||||
),
|
||||
# Take a screenshot of the selected window
|
||||
Key(
|
||||
[mod, "control"],
|
||||
"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'
|
||||
),
|
||||
|
||||
|
|
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_SHUTDOWN_TARGET="river-session-shutdown.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
|
||||
# shellcheck disable=SC2086
|
||||
|
@ -46,7 +46,7 @@ riverctl spawn "$HOME"/.azotebg
|
|||
riverctl spawn "$HOME"/.config/river/keybindings.sh
|
||||
|
||||
# Keybindings help overlay
|
||||
riverctl spawn /usr/share/river/scripts/help.sh & disown
|
||||
riverctl spawn /usr/share/tileos/scripts/help.sh & disown
|
||||
|
||||
# Clipboard daemon
|
||||
pkill wl-paste
|
||||
|
@ -66,7 +66,7 @@ pkill pcmanfm-qt
|
|||
pcmanfm-qt -d & disown
|
||||
|
||||
# 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
|
||||
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""
|
||||
|
||||
# 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_mute="/usr/share/river/scripts/mic-mute.sh"
|
||||
mic_mute="/usr/share/tileos/scripts/mic-mute.sh"
|
||||
|
||||
# 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="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)
|
||||
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
|
||||
|
||||
# Set keyboard repeat rate
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
|
||||
"custom/help": {
|
||||
"format": "",
|
||||
"on-click": "/usr/share/river/scripts/help.sh --toggle",
|
||||
"on-click": "/usr/share/tileos/scripts/help.sh --toggle",
|
||||
"tooltip": "false"
|
||||
},
|
||||
|
||||
|
@ -70,8 +70,8 @@
|
|||
"off": ""
|
||||
},
|
||||
"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",
|
||||
"exec-if": "/usr/share/river/scripts/sunset.sh check",
|
||||
"on-click": "/usr/share/tileos/scripts/sunset.sh toggle; pkill -RTMIN+6 waybar",
|
||||
"exec-if": "/usr/share/tileos/scripts/sunset.sh check",
|
||||
"signal": 6
|
||||
},
|
||||
|
||||
|
@ -88,7 +88,7 @@
|
|||
},
|
||||
|
||||
"custom/dunst": {
|
||||
"exec": "/usr/share/river/scripts/dunst.sh",
|
||||
"exec": "/usr/share/tileos/scripts/dunst.sh",
|
||||
"on-click": "dunstctl set-paused toggle",
|
||||
"restart-interval": 1,
|
||||
},
|
||||
|
@ -165,7 +165,7 @@
|
|||
},
|
||||
"tooltip-format": "{icon} {volume}% {format_source}",
|
||||
"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"
|
||||
},
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
"tooltip-format": "{tooltip}",
|
||||
"exec": "echo '{\"class\": \"recording\",\"text\":\"\",\"tooltip\":\"press $mod+Esc to stop recording\"}'",
|
||||
"exec-if": "pgrep wf-recorder",
|
||||
"on-click": "/usr/share/sway/scripts/recorder.sh",
|
||||
"on-click": "/usr/share/tileos/scripts/recorder.sh",
|
||||
"signal": 8
|
||||
},
|
||||
|
||||
|
@ -75,7 +75,7 @@
|
|||
|
||||
"custom/help": {
|
||||
"format": "",
|
||||
"on-click": "/usr/share/sway/scripts/help.sh --toggle",
|
||||
"on-click": "/usr/share/tileos/scripts/help.sh --toggle",
|
||||
"tooltip": "false"
|
||||
},
|
||||
|
||||
|
@ -90,8 +90,8 @@
|
|||
"off": ""
|
||||
},
|
||||
"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",
|
||||
"exec-if": "/usr/share/sway/scripts/sunset.sh check",
|
||||
"on-click": "/usr/share/tileos/scripts/sunset.sh toggle; pkill -RTMIN+6 waybar",
|
||||
"exec-if": "/usr/share/tileos/scripts/sunset.sh check",
|
||||
"signal": 6
|
||||
},
|
||||
|
||||
|
@ -108,7 +108,7 @@
|
|||
},
|
||||
|
||||
"custom/dunst": {
|
||||
"exec": "/usr/share/sway/scripts/dunst.sh",
|
||||
"exec": "/usr/share/tileos/scripts/dunst.sh",
|
||||
"on-click": "dunstctl set-paused toggle",
|
||||
"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
|
||||
|
||||
## 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 ##
|
||||
$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 ##
|
||||
$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 ##
|
||||
$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 ##
|
||||
$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'>+ [<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 {
|
||||
$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
|
||||
|
||||
# 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
|
||||
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
|
||||
|
||||
# Rofi theme
|
||||
|
@ -31,13 +31,13 @@ set $bindsym bindsym --to-code
|
|||
set $bluetooth $flock $term_float bluetuith
|
||||
|
||||
# Volume notification
|
||||
set $volume_bar /usr/share/sway/scripts/volume-notify.sh
|
||||
set $volume_bar /usr/share/tileos/scripts/volume-notify.sh
|
||||
|
||||
# Brightness notification
|
||||
set $brightness_bar /usr/share/sway/scripts/brightness-notify.sh
|
||||
set $brightness_bar /usr/share/tileos/scripts/brightness-notify.sh
|
||||
|
||||
# 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_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_up pulsemixer --change-volume +5 && $volume_bar
|
||||
set $volume_mute pulsemixer --toggle-mute && $volume_bar
|
||||
set $mic_mute /usr/share/sway/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
|
||||
set $mic_mute /usr/share/tileos/scripts/mic-mute.sh
|
||||
|
||||
# Pulseaudo command
|
||||
set $pulseaudio $term_float pulsemixer
|
||||
|
@ -58,10 +54,10 @@ set $pulseaudio $term_float pulsemixer
|
|||
set $calendar $term_float calcurse
|
||||
|
||||
# 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
|
||||
set $help /usr/share/sway/scripts/help.sh --toggle
|
||||
set $help /usr/share/tileos/scripts/help.sh --toggle
|
||||
|
||||
# Workspace names
|
||||
set $ws1 number 1
|
||||
|
@ -73,7 +69,7 @@ set $ws6 number 6
|
|||
set $ws7 number 7
|
||||
set $ws8 number 8
|
||||
set $ws9 number 9
|
||||
set $ws10 "<span baseline_shift='-20pt' weight='bold'>🖵</span>"
|
||||
set $ws10 number 10
|
||||
|
||||
# Screenshot
|
||||
set $grimshot /usr/bin/grimshot
|
||||
|
@ -91,16 +87,16 @@ set $screenshot_active $pipe_active | $swappy && $notify_paste
|
|||
set $polkit_agent /usr/bin/mate-polkit &
|
||||
|
||||
# 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
|
||||
set $autotiling '[ -x "$(command -v autotiling)" ] && autotiling -w 1 3 5 7 9'
|
||||
|
||||
# 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
|
||||
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
|
||||
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'
|
||||
|
||||
# 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
|
||||
set $toggle_shorcuts_inhibitor 'swaymsg "seat - shortcuts_inhibitor toggle"'
|
||||
|
|
Loading…
Add table
Reference in a new issue