adding nyxt and zola base
This commit is contained in:
parent
f7c0143e18
commit
240df1fa41
17 changed files with 8481 additions and 337 deletions
|
@ -1,45 +1,37 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Check to see if nyxt is running
|
||||
if pgrep -x nyxt > /dev/null; then
|
||||
echo running
|
||||
if [ $(pgrep -c nyxt) -gt 0 ]; then
|
||||
echo "ff running"
|
||||
|
||||
if [ $XDG_SESSION_TYPE = "x11" ]; then
|
||||
if [ "$XDG_SESSION_TYPE" = "x11" ]; then
|
||||
#X11
|
||||
nyxtrg=$(wmctrl -lx | rg nyxt | awk '{print $1}')
|
||||
ffrg=$(wmctrl -lx | rg nyxt | awk '{print $1}')
|
||||
# echo $emacsrg
|
||||
|
||||
if [ -z $nyxtrg ]; then
|
||||
echo regnyxt
|
||||
nyxt
|
||||
if [ -z $ffrg ]; then
|
||||
exec nyxt
|
||||
exit
|
||||
else
|
||||
wmctrl -ia $nyxtrg
|
||||
exec wmctrl -ia $ffrg
|
||||
exit
|
||||
fi
|
||||
else
|
||||
echo wayland
|
||||
if [ $KDE_FULL_SESSION = "true" ]; then
|
||||
ww -f nyxt -c nyxt
|
||||
if [ "$KDE_FULL_SESSION" = "true" ]; then
|
||||
echo "KDE"
|
||||
exec /home/chris/bin/ww -fa nyxt -c nyxt
|
||||
exit
|
||||
else
|
||||
# WAYLAND
|
||||
nyxtrg=$(wlrctl window list | rg nyxt:)
|
||||
ffrg=$(hyprctl clients | rg nyxt)
|
||||
|
||||
nyxtwin=$(echo $nyxtrg | sed 's/.*\: //')
|
||||
# echo $nyxtwin
|
||||
ffwin=$(echo $ffrg | sed 's/.*\: //')
|
||||
# echo $ffwin
|
||||
|
||||
wlrctl toplevel focus nyxt
|
||||
exec hyprctl dispatch focuswindow nyxt
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
else
|
||||
echo not running
|
||||
machine=$(hostname)
|
||||
if [ $machine = "syl" ]; then
|
||||
# env GDK_DPI_SCALE=0.5 GDK_SCALE=2 nyxt
|
||||
nyxt
|
||||
else
|
||||
nyxt
|
||||
fi
|
||||
exec nyxt
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue