mirror of https://github.com/mitchell/dotfiles.git
Refactor btre function, update vm_rm, add bspc window rule
This commit is contained in:
parent
3955031560
commit
34ff14442e
|
@ -33,6 +33,7 @@ bspc config gapless_monocle false
|
||||||
bspc config focused_border_color '#92971a'
|
bspc config focused_border_color '#92971a'
|
||||||
|
|
||||||
bspc rule -a 'firefox:*:Picture-in-Picture' state=floating sticky=on
|
bspc rule -a 'firefox:*:Picture-in-Picture' state=floating sticky=on
|
||||||
|
bspc rule -a 'origin.exe:*' state=floating
|
||||||
# bspc rule -a Gimp desktop='^8' state=floating follow=on
|
# bspc rule -a Gimp desktop='^8' state=floating follow=on
|
||||||
# bspc rule -a Chromium desktop='^2'
|
# bspc rule -a Chromium desktop='^2'
|
||||||
# bspc rule -a mplayer2 state=floating
|
# bspc rule -a mplayer2 state=floating
|
||||||
|
|
|
@ -2,21 +2,33 @@ function btre -a device -d 'Reconnect to a known bluetooth device'
|
||||||
set -l devices CC:98:8B:3E:6B:9D 00:1B:66:E3:07:3A
|
set -l devices CC:98:8B:3E:6B:9D 00:1B:66:E3:07:3A
|
||||||
set -l index 1
|
set -l index 1
|
||||||
|
|
||||||
if test -n "$device"
|
switch device
|
||||||
set index $device
|
case sony
|
||||||
|
set index 1
|
||||||
|
return
|
||||||
|
case senn
|
||||||
|
set index 2
|
||||||
|
return
|
||||||
|
case '*'
|
||||||
|
test -n "$device"; and set index $device
|
||||||
end
|
end
|
||||||
|
|
||||||
bluetoothctl power on
|
bluetoothctl power on
|
||||||
|
|
||||||
bluetoothctl remove $devices[$index]
|
and bluetoothctl remove $devices[$index]
|
||||||
|
|
||||||
nohup bluetoothctl scan on >/dev/null &
|
echo \n"--- Press enter to continue ---"\n
|
||||||
sleep 2
|
bluetoothctl scan on &
|
||||||
|
read -P ''
|
||||||
|
|
||||||
bluetoothctl pair $devices[$index]
|
bluetoothctl pair $devices[$index]
|
||||||
bluetoothctl trust $devices[$index]
|
or return $status
|
||||||
bluetoothctl connect $devices[$index]
|
read -p 'echo \n"--- Press enter to continue ---"\n'
|
||||||
sleep 2
|
|
||||||
|
|
||||||
pkill bluetoothctl
|
bluetoothctl trust $devices[$index]
|
||||||
|
and bluetoothctl connect $devices[$index]
|
||||||
|
or return $status
|
||||||
|
read -p 'echo \n"--- Press enter to continue ---"\n'
|
||||||
|
|
||||||
|
kill %1
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
function vm_rm -a domain -d 'Destroy, undefine, and delete the volume of a domain'
|
function vm_rm -a domain -d 'Destroy, undefine, and delete the volume of a domain'
|
||||||
virsh destroy $domain
|
virsh destroy $domain
|
||||||
virsh undefine $domain
|
virsh undefine $domain
|
||||||
virsh vol-delete /home/m/libvirt/$domain.qcow2
|
virsh vol-delete /home/libvirt/$domain.qcow2
|
||||||
end
|
end
|
||||||
|
|
|
@ -18,6 +18,7 @@ This repo contains my preferred configurations for:
|
||||||
- sxhkd (Linux)
|
- sxhkd (Linux)
|
||||||
- yabaiwm (macOS)
|
- yabaiwm (macOS)
|
||||||
- skhd (macOS)
|
- skhd (macOS)
|
||||||
|
- conky
|
||||||
|
|
||||||
## Scripts
|
## Scripts
|
||||||
|
|
||||||
|
@ -47,7 +48,7 @@ To run sync script using curl: `curl https://raw.githubusercontent.com/mitchell/
|
||||||
|
|
||||||
Upgrade from Debian stable to unstable.
|
Upgrade from Debian stable to unstable.
|
||||||
|
|
||||||
### `provision_debian`
|
### `provision_linux`
|
||||||
|
|
||||||
Dependencies
|
Dependencies
|
||||||
|
|
||||||
|
@ -55,5 +56,5 @@ Dependencies
|
||||||
|
|
||||||
**Description**
|
**Description**
|
||||||
|
|
||||||
Provision various environments and tools on Debian. Run `./run help` and peek inside for more
|
Provision various environments and tools on Debian or Arch linux. Has
|
||||||
information.
|
commands for terminal_env, desktop_env, and more. Take a peek.
|
||||||
|
|
Loading…
Reference in New Issue