mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
Compare commits
6 Commits
hefty-hype
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| d192a25faa | |||
| 0bfade5c36 | |||
| d619ddcd82 | |||
| 3cb611c04e | |||
| f5b2b7548d | |||
| e0f2a34949 |
@@ -16,8 +16,8 @@ listener {
|
|||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 600 # 10mins
|
timeout = 600 # 10mins
|
||||||
on-timeout = hyprctl dispatch 'hl.dsp.dpms(false)'
|
on-timeout = hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })'
|
||||||
on-resume = hyprctl dispatch 'hl.dsp.dpms(true)'
|
on-resume = hyprctl dispatch 'hl.dsp.dpms({ action = "enable" })'
|
||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
|
|||||||
@@ -202,12 +202,12 @@ for i = 1, 10 do
|
|||||||
end, { description = "Window: Send to workspace " .. i })
|
end, { description = "Window: Send to workspace " .. i })
|
||||||
end
|
end
|
||||||
--# We also use raw keycodes because some keyboard layouts register number keys as different chars. The codes can be verified with `wev`
|
--# We also use raw keycodes because some keyboard layouts register number keys as different chars. The codes can be verified with `wev`
|
||||||
for i = 1, 10 do
|
-- for i = 1, 10 do
|
||||||
local numberkey = { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }
|
-- local numberkey = { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }
|
||||||
hl.bind("SUPER + ALT + code:" .. numberkey[i], function()
|
-- hl.bind("SUPER + ALT + code:" .. numberkey[i], function()
|
||||||
hl.dispatch(hl.dsp.window.move({ workspace = workspace_in_group(i), follow = false }))
|
-- hl.dispatch(hl.dsp.window.move({ workspace = workspace_in_group(i), follow = false }))
|
||||||
end)
|
-- end)
|
||||||
end
|
-- end
|
||||||
--# keypad numbers
|
--# keypad numbers
|
||||||
for i = 1, 10 do
|
for i = 1, 10 do
|
||||||
local numpadkey = { 87, 88, 89, 83, 84, 85, 79, 80, 81, 90 }
|
local numpadkey = { 87, 88, 89, 83, 84, 85, 79, 80, 81, 90 }
|
||||||
|
|||||||
@@ -2,11 +2,12 @@ groups=(illogical-impulse)
|
|||||||
pkgname=illogical-impulse-microtex-git
|
pkgname=illogical-impulse-microtex-git
|
||||||
_pkgname=MicroTeX
|
_pkgname=MicroTeX
|
||||||
pkgver=r494.0e3707f
|
pkgver=r494.0e3707f
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
pkgdesc='MicroTeX for illogical-impulse dotfiles.'
|
pkgdesc='MicroTeX for illogical-impulse dotfiles.'
|
||||||
#pkgdesc="A dynamic, cross-platform, and embeddable LaTeX rendering library"
|
#pkgdesc="A dynamic, cross-platform, and embeddable LaTeX rendering library"
|
||||||
arch=("x86_64")
|
arch=("x86_64")
|
||||||
url="https://github.com/NanoMichael/${_pkgname}"
|
#url="https://github.com/NanoMichael/${_pkgname}"
|
||||||
|
url="https://github.com/end-4/${_pkgname}"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
depends=(
|
depends=(
|
||||||
tinyxml2
|
tinyxml2
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ v remove_deprecated_dependencies
|
|||||||
|
|
||||||
# Issue #363
|
# Issue #363
|
||||||
case $SKIP_SYSUPDATE in
|
case $SKIP_SYSUPDATE in
|
||||||
true) sleep 0;;
|
true) true;;
|
||||||
*) v sudo pacman -Syu;;
|
*) v sudo pacman -Syu;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@@ -105,7 +105,7 @@ done
|
|||||||
## Optional dependencies
|
## Optional dependencies
|
||||||
if pacman -Qs ^plasma-browser-integration$ ;then SKIP_PLASMAINTG=true;fi
|
if pacman -Qs ^plasma-browser-integration$ ;then SKIP_PLASMAINTG=true;fi
|
||||||
case $SKIP_PLASMAINTG in
|
case $SKIP_PLASMAINTG in
|
||||||
true) sleep 0;;
|
true) true;;
|
||||||
*)
|
*)
|
||||||
if $ask;then
|
if $ask;then
|
||||||
echo -e "${STY_YELLOW}[$0]: NOTE: The size of \"plasma-browser-integration\" is ~600 KiB, but if you don't yet have KDE on your system it'll pull an extra ~600MiB of packages.${STY_RST}"
|
echo -e "${STY_YELLOW}[$0]: NOTE: The size of \"plasma-browser-integration\" is ~600 KiB, but if you don't yet have KDE on your system it'll pull an extra ~600MiB of packages.${STY_RST}"
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ fi
|
|||||||
|
|
||||||
# Update System
|
# Update System
|
||||||
case $SKIP_SYSUPDATE in
|
case $SKIP_SYSUPDATE in
|
||||||
true) sleep 0 ;;
|
true) true ;;
|
||||||
*) v sudo dnf upgrade --refresh -y ;;
|
*) v sudo dnf upgrade --refresh -y ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
@@ -123,6 +123,6 @@ fi
|
|||||||
# http://stackoverflow.com/questions/45125516
|
# http://stackoverflow.com/questions/45125516
|
||||||
export MACHINE_ARCH=$(uname -m)
|
export MACHINE_ARCH=$(uname -m)
|
||||||
case "${MACHINE_ARCH}" in
|
case "${MACHINE_ARCH}" in
|
||||||
"x86_64") sleep 0;;
|
"x86_64") true;;
|
||||||
*) print_os_group_id_functions+=(print_os_group_id_architecture);;
|
*) print_os_group_id_functions+=(print_os_group_id_architecture);;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
function try { "$@" || sleep 0; }
|
function try { "$@" || true; }
|
||||||
function v(){
|
function v(){
|
||||||
echo -e "####################################################"
|
echo -e "####################################################"
|
||||||
echo -e "${STY_BLUE}[$0]: Next command:${STY_RST}"
|
echo -e "${STY_BLUE}[$0]: Next command:${STY_RST}"
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ printf "\n"
|
|||||||
pause
|
pause
|
||||||
|
|
||||||
case $ask in
|
case $ask in
|
||||||
false) sleep 0 ;;
|
false) true ;;
|
||||||
*)
|
*)
|
||||||
printf "${STY_BLUE}"
|
printf "${STY_BLUE}"
|
||||||
printf "${STY_BOLD}Do you want to confirm every time before a command executes?${STY_RST}\n"
|
printf "${STY_BOLD}Do you want to confirm every time before a command executes?${STY_RST}\n"
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ elif [[ "$OS_GROUP_ID" =~ ^(arch|gentoo|fedora)$ ]]; then
|
|||||||
printf "${STY_RED}Still proceed?${STY_RST}\n"
|
printf "${STY_RED}Still proceed?${STY_RST}\n"
|
||||||
read -p "[y/N]: " p
|
read -p "[y/N]: " p
|
||||||
case "$p" in
|
case "$p" in
|
||||||
[yY])sleep 0;;
|
[yY])true;;
|
||||||
*)echo "Aborting...";exit 1;;
|
*)echo "Aborting...";exit 1;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ get_next_backup_number() {
|
|||||||
|
|
||||||
# Run user preference wizard
|
# Run user preference wizard
|
||||||
case "$ask" in
|
case "$ask" in
|
||||||
false) sleep 0 ;;
|
false) true ;;
|
||||||
*) wizard_update_preferences ;;
|
*) wizard_update_preferences ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
#####################################################################################
|
#####################################################################################
|
||||||
# MISC (For dots/.config/* but not quickshell, not fish, not Hyprland, not fontconfig)
|
# MISC (For dots/.config/* but not quickshell, not fish, not Hyprland, not fontconfig)
|
||||||
case "${SKIP_MISCCONF}" in
|
case "${SKIP_MISCCONF}" in
|
||||||
true) sleep 0;;
|
true) true;;
|
||||||
*)
|
*)
|
||||||
for i in $(find dots/.config/ -mindepth 1 -maxdepth 1 ! -name 'quickshell' ! -name 'fish' ! -name 'hypr' ! -name 'fontconfig' -exec basename {} \;); do
|
for i in $(find dots/.config/ -mindepth 1 -maxdepth 1 ! -name 'quickshell' ! -name 'fish' ! -name 'hypr' ! -name 'fontconfig' -exec basename {} \;); do
|
||||||
# i="dots/.config/$i"
|
# i="dots/.config/$i"
|
||||||
@@ -20,7 +20,7 @@ case "${SKIP_MISCCONF}" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
case "${SKIP_QUICKSHELL}" in
|
case "${SKIP_QUICKSHELL}" in
|
||||||
true) sleep 0;;
|
true) true;;
|
||||||
*)
|
*)
|
||||||
# Should overwriting the whole directory not only ~/.config/quickshell/ii/ cuz https://github.com/end-4/dots-hyprland/issues/2294#issuecomment-3448671064
|
# Should overwriting the whole directory not only ~/.config/quickshell/ii/ cuz https://github.com/end-4/dots-hyprland/issues/2294#issuecomment-3448671064
|
||||||
install_dir__sync dots/.config/quickshell "$XDG_CONFIG_HOME"/quickshell
|
install_dir__sync dots/.config/quickshell "$XDG_CONFIG_HOME"/quickshell
|
||||||
@@ -28,14 +28,14 @@ case "${SKIP_QUICKSHELL}" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
case "${SKIP_FISH}" in
|
case "${SKIP_FISH}" in
|
||||||
true) sleep 0;;
|
true) true;;
|
||||||
*)
|
*)
|
||||||
install_dir__sync_exclude dots/.config/fish "$XDG_CONFIG_HOME"/fish "conf.d"
|
install_dir__sync_exclude dots/.config/fish "$XDG_CONFIG_HOME"/fish "conf.d"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "${SKIP_FONTCONFIG}" in
|
case "${SKIP_FONTCONFIG}" in
|
||||||
true) sleep 0;;
|
true) true;;
|
||||||
*)
|
*)
|
||||||
case "$FONTSET_DIR_NAME" in
|
case "$FONTSET_DIR_NAME" in
|
||||||
"") install_dir__sync dots/.config/fontconfig "$XDG_CONFIG_HOME"/fontconfig ;;
|
"") install_dir__sync dots/.config/fontconfig "$XDG_CONFIG_HOME"/fontconfig ;;
|
||||||
@@ -45,7 +45,7 @@ esac
|
|||||||
|
|
||||||
# For Hyprland
|
# For Hyprland
|
||||||
case "${SKIP_HYPRLAND}" in
|
case "${SKIP_HYPRLAND}" in
|
||||||
true) sleep 0;;
|
true) true;;
|
||||||
*)
|
*)
|
||||||
install_dir__sync dots/.config/hypr/hyprland "$XDG_CONFIG_HOME"/hypr/hyprland
|
install_dir__sync dots/.config/hypr/hyprland "$XDG_CONFIG_HOME"/hypr/hyprland
|
||||||
if [ -f "${XDG_CONFIG_HOME}/hypr/hyprland.conf" ]; then
|
if [ -f "${XDG_CONFIG_HOME}/hypr/hyprland.conf" ]; then
|
||||||
@@ -57,7 +57,7 @@ case "${SKIP_HYPRLAND}" in
|
|||||||
done
|
done
|
||||||
for i in hyprland.lua ; do
|
for i in hyprland.lua ; do
|
||||||
case "${SKIP_HYPRLAND_ENTRY}" in
|
case "${SKIP_HYPRLAND_ENTRY}" in
|
||||||
true) sleep 0;;
|
true) true;;
|
||||||
*) install_file "dots/.config/hypr/$i" "${XDG_CONFIG_HOME}/hypr/$i" ;;
|
*) install_file "dots/.config/hypr/$i" "${XDG_CONFIG_HOME}/hypr/$i" ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user