Updates
This commit is contained in:
parent
bbfa43dde9
commit
81fdf76484
@ -37,5 +37,8 @@ fi
|
||||
if [ -d ~/dotfiles-versions/$version/swappy ]; then
|
||||
_installSymLink swappy ~/.config/swappy ~/dotfiles/swappy/ ~/.config
|
||||
fi
|
||||
if [ -d ~/dotfiles-versions/$version/swappy ]; then
|
||||
_installSymLink eww ~/.config/eww ~/dotfiles/eww/ ~/.config
|
||||
fi
|
||||
echo ":: Symbolic links created."
|
||||
echo
|
||||
|
@ -8,7 +8,7 @@ monitorrestored=0
|
||||
|
||||
_showRestoreOptions() {
|
||||
echo "The following configurations can be transferred into the new installation."
|
||||
echo "(SPACE = select/unselect a profile. RETURN = confirm. ESC/No selection = Skip Restore)"
|
||||
echo "(SPACE = select/unselect a profile. RETURN = confirm. CTRL-C/No selection = Skip Restore)"
|
||||
echo ""
|
||||
restorelist=""
|
||||
if [ -f ~/dotfiles/.bashrc ]; then
|
||||
|
@ -1,8 +1,10 @@
|
||||
if [ "$restored" == "1" ]; then
|
||||
if [ -f ~/dotfiles/.settings/settings.json ] ;then
|
||||
echo -e "${GREEN}"
|
||||
figlet "Restore Settings"
|
||||
echo -e "${NONE}"
|
||||
python .install/restore.py
|
||||
fi
|
||||
else
|
||||
if [ -f ~/dotfiles/.settings/settings.json ] ;then
|
||||
rm ~/dotfiles/.settings/settings.json
|
||||
|
@ -1,4 +1 @@
|
||||
#!/bin/bash
|
||||
# screen=0
|
||||
screen=$(hyprctl activewindow -j | jq '.monitor')
|
||||
echo $screen
|
||||
auto
|
@ -1 +1 @@
|
||||
2.9RC2
|
||||
2.9RC3
|
@ -1,4 +1,4 @@
|
||||
# ML4W Dotfiles 2.9 RC2
|
||||
# ML4W Dotfiles 2.9
|
||||
|
||||
An advanced configuration of Hyprland and Qtile for Arch Linux based distributions. This package includes an installation script to install and setup the required components.
|
||||
|
||||
|
0
eww/eww.yuck
Normal file
0
eww/eww.yuck
Normal file
@ -8,7 +8,13 @@ if [[ ! `pidof eww` ]]; then
|
||||
sleep 0.5
|
||||
fi
|
||||
|
||||
sc=$($HOME/dotfiles/.settings/eww-monitor.sh)
|
||||
if [ -f $HOME/dotfiles/.settings/eww-monitor.sh ] && [ $(cat $HOME/dotfiles/.settings/eww-monitor.sh) != "auto" ] ;then
|
||||
echo ":: Using monitor id from $HOME/dotfiles/.settings/eww-monitor.sh"
|
||||
sc=$(cat $HOME/dotfiles/.settings/eww-monitor.sh)
|
||||
else
|
||||
echo ":: Autodetect current focused monitor."
|
||||
sc=$(python $HOME/dotfiles/hypr/scripts/active-monitor.py)
|
||||
fi
|
||||
if [[ ! -f "$FILE" ]]; then
|
||||
touch "$FILE"
|
||||
echo ":: Opening on Monitor $sc"
|
||||
|
18
hypr/scripts/active-monitor.py
Normal file
18
hypr/scripts/active-monitor.py
Normal file
@ -0,0 +1,18 @@
|
||||
import sys
|
||||
import subprocess
|
||||
import os
|
||||
import json
|
||||
import pathlib
|
||||
import shutil
|
||||
|
||||
# Get script path
|
||||
pathname = os.path.dirname(sys.argv[0])
|
||||
homeFolder = os.path.expanduser('~') # Path to home folder
|
||||
dotfiles = homeFolder + "/dotfiles/"
|
||||
|
||||
result = subprocess.run(["bash", dotfiles + "hypr/scripts/monitors.sh"], capture_output=True, text=True)
|
||||
monitors_json = result.stdout.strip()
|
||||
monitors_arr = json.loads(monitors_json)
|
||||
for row in monitors_arr:
|
||||
if row["focused"]:
|
||||
print(row["id"])
|
@ -1,4 +1,6 @@
|
||||
#!/bin/bash
|
||||
EWW=`which eww`
|
||||
killall eww
|
||||
${EWW} daemon
|
||||
if [[ ! `pidof eww` ]]; then
|
||||
${EWW} daemon
|
||||
sleep 0.5
|
||||
fi
|
||||
|
2
hypr/scripts/monitors.sh
Executable file
2
hypr/scripts/monitors.sh
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
hyprctl -j monitors
|
@ -58,8 +58,8 @@
|
||||
|
||||
// ML4W Welcome App
|
||||
"custom/ml4w-welcome": {
|
||||
"on-click": "sleep 0.5 && ~/dotfiles/eww/ml4w-sidebar/launch.sh",
|
||||
"on-click-right": "sleep 0.5 && ~/dotfiles/apps/ML4W_Welcome-x86_64.AppImage",
|
||||
"on-click": "sleep 0.3 && ~/dotfiles/eww/ml4w-sidebar/launch.sh",
|
||||
"on-click-right": "sleep 0.3 && ~/dotfiles/apps/ML4W_Welcome-x86_64.AppImage",
|
||||
"format": " ",
|
||||
"tooltip": false
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user