mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-31 09:59:15 +01:00
sxhkd: Add dropdown todos
Since I now use GNOME, I'll never go through these TODOs, however anyone is free to implement these ideas on their own time.
This commit is contained in:
parent
bd79606da0
commit
7af4af4f49
@ -2,6 +2,8 @@
|
|||||||
# New Start: A modern Arch workflow built with an emphasis on functionality.
|
# New Start: A modern Arch workflow built with an emphasis on functionality.
|
||||||
# Copyright (C) 2018 Donovan Glover
|
# Copyright (C) 2018 Donovan Glover
|
||||||
|
|
||||||
|
# TODO: Run this script when launching stuff, so we can use super+\ to launch anything + hide it again, and have terminal access
|
||||||
|
|
||||||
DROPDOWN_DPI=$(xrdb -query | grep Xft.dpi | cut -f 2)
|
DROPDOWN_DPI=$(xrdb -query | grep Xft.dpi | cut -f 2)
|
||||||
DROPDOWN_SCALE=$(($DROPDOWN_DPI / 96))
|
DROPDOWN_SCALE=$(($DROPDOWN_DPI / 96))
|
||||||
|
|
||||||
@ -15,6 +17,10 @@ x='kitty --name' # Executable
|
|||||||
id=$(xdo id -n $i)
|
id=$(xdo id -n $i)
|
||||||
rectangle=$((1700 * $DROPDOWN_SCALE))x$((600 * $DROPDOWN_SCALE))
|
rectangle=$((1700 * $DROPDOWN_SCALE))x$((600 * $DROPDOWN_SCALE))
|
||||||
offset=+$((110 * $DROPDOWN_SCALE))+$((100 * $DROPDOWN_SCALE))
|
offset=+$((110 * $DROPDOWN_SCALE))+$((100 * $DROPDOWN_SCALE))
|
||||||
|
# TODO: Use small window when holding shift
|
||||||
|
# TODO: Just use fullscreen from native bspwm/xorg instead of manually setting size
|
||||||
|
# rectangle=$((1920 * $DROPDOWN_SCALE))x$((1080 * $DROPDOWN_SCALE))
|
||||||
|
# offset=+$((0 * $DROPDOWN_SCALE))+$((0 * $DROPDOWN_SCALE))
|
||||||
|
|
||||||
bspc rule -r $c:$i
|
bspc rule -r $c:$i
|
||||||
bspc rule -a $c:$i sticky=on state=floating rectangle=$rectangle$offset
|
bspc rule -a $c:$i sticky=on state=floating rectangle=$rectangle$offset
|
||||||
|
Loading…
Reference in New Issue
Block a user