From dd0c72082cc83fcb5e727573036251b70baf5d63 Mon Sep 17 00:00:00 2001 From: Fabio Lenherr / DashieTM Date: Wed, 8 Mar 2023 10:24:55 +0100 Subject: [PATCH] feat: use tectonic --- eww_desktop/scripts/cockpit_toggle | 2 +- eww_desktop/scripts/ncspot_control.sh | 8 +++++--- nvim/lua/plugins/lsp.lua | 1 + nvim/lua/plugins/plugins.lua | 2 +- rofi/themes/tokyonight.rasi | 1 + 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/eww_desktop/scripts/cockpit_toggle b/eww_desktop/scripts/cockpit_toggle index d23fb76..80dfd97 100755 --- a/eww_desktop/scripts/cockpit_toggle +++ b/eww_desktop/scripts/cockpit_toggle @@ -4,7 +4,7 @@ ISOPEN=$(eww windows | grep "*cockpit" | tr -d '*') if [ "$ISOPEN" = "" ]; then -MONITOR=$(hyprctl monitors | grep -B 7 "focused: yes" | grep "ID" | awk -F '(' ' { print $2 } ' | tr -d 'ID ):') +MONITOR=$(hyprctl monitors | grep -B 10 "focused: yes" | grep "ID" | awk -F '(' ' { print $2 } ' | tr -d 'ID ):') eww open cockpit_window_"$MONITOR" else eww close "$ISOPEN" diff --git a/eww_desktop/scripts/ncspot_control.sh b/eww_desktop/scripts/ncspot_control.sh index 477625c..cca2764 100755 --- a/eww_desktop/scripts/ncspot_control.sh +++ b/eww_desktop/scripts/ncspot_control.sh @@ -1,5 +1,7 @@ #! /bin/bash -NUM=$(pactl list clients short | grep "ncspot" | awk -F 'PipeWire' ' { print $1 } ' | tr -d ' \t\n') -CLIENT=$(pactl list sink-inputs short | grep "$NUM" | awk -F ' ' ' { print $1 }' | tr -d ' \t\n') -pactl set-sink-input-volume "$CLIENT" "$1" +NUM=$(pactl list clients short | rg "spotify_player" | awk -F 'PipeWire' ' { print $1 } ' | tr -d ' \t\n') +CHANGE=$(pactl list sink-inputs short | rg "$NUM" | awk -F ' ' ' { print $1 }' | tr -d ' \t\n') +pactl set-sink-input-volume "$CHANGE" "$1" +VOLUME=$(pactl list sink-inputs | rg "$NUM" -A7 | rg "Volume:" | awk -F ' ' ' { print $5 }' | tr -d '%') +dunstify -a "changeVolume" -r 2 -u low -i audio-volume-high -h int:value:"$VOLUME" "Spotify Volume: ${VOLUME}%" diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua index 72ea829..2320196 100644 --- a/nvim/lua/plugins/lsp.lua +++ b/nvim/lua/plugins/lsp.lua @@ -82,6 +82,7 @@ return { }, }, }, + texlab = {}, gopls = {}, sqls = {}, taplo = {}, diff --git a/nvim/lua/plugins/plugins.lua b/nvim/lua/plugins/plugins.lua index 8062bd5..e6a3304 100644 --- a/nvim/lua/plugins/plugins.lua +++ b/nvim/lua/plugins/plugins.lua @@ -100,7 +100,7 @@ return { -- require("vimtex").setup() vim.cmd("let g:vimtex_quickfix_mode=0") vim.cmd("let g:vimtex_view_general_viewer = 'evince'") - vim.cmd("let g:vimtex_compiler_method = 'latexmk'") + vim.cmd("let g:vimtex_compiler_method = 'tectonic'") vim.cmd( "let g:vimtex_compiler_latexmk = {'options': ['-pdf', '-shell-escape', '-file-line-error', '--extra-mem-bot=10000000', '-synctex=1', '-interaction=nonstopmode',],}" ) diff --git a/rofi/themes/tokyonight.rasi b/rofi/themes/tokyonight.rasi index ae8cc3e..65c63fd 100644 --- a/rofi/themes/tokyonight.rasi +++ b/rofi/themes/tokyonight.rasi @@ -20,6 +20,7 @@ configuration { window { display-name: ""; + hide-active-window: true; } timeout {