From 29bd21e32de79756d45d4cec53670306a8d578ab Mon Sep 17 00:00:00 2001 From: Fabio Lenherr Date: Wed, 8 Mar 2023 12:08:15 +0100 Subject: [PATCH 1/2] feat: Add spotify_player to laptop config --- eww_laptop/scripts/bar_toggle.sh | 11 +++++++++++ hypr_laptop/hyprland.conf | 8 ++++---- 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100755 eww_laptop/scripts/bar_toggle.sh diff --git a/eww_laptop/scripts/bar_toggle.sh b/eww_laptop/scripts/bar_toggle.sh new file mode 100755 index 0000000..fc42071 --- /dev/null +++ b/eww_laptop/scripts/bar_toggle.sh @@ -0,0 +1,11 @@ +#! /bin/bash + +ISOPEN=$(eww windows | grep "*bar" | tr -d '*') + + +if [ "$ISOPEN" = "" ]; then +MONITOR=$(hyprctl monitors | grep -B 10 "focused: yes" | grep "ID" | awk -F '(' ' { print $2 } ' | tr -d 'ID ):') + eww open bar +else + eww close "$ISOPEN" +fi diff --git a/hypr_laptop/hyprland.conf b/hypr_laptop/hyprland.conf index f06a7fb..f678122 100644 --- a/hypr_laptop/hyprland.conf +++ b/hypr_laptop/hyprland.conf @@ -102,9 +102,9 @@ bind=SUPERSHIFT,L,exec, playerctl --all-players -a pause & swaylock -c 000000 & bind=,XF86AudioMute,exec, $HOME/.config/eww/scripts/toggle-mute bind=,XF86AudioLowerVolume,exec, $HOME/.config/eww/scripts/change-volume sink -5% bind=,XF86AudioRaiseVolume,exec, $HOME/.config/eww/scripts/change-volume sink +5% -bind=,XF86AudioPlay,exec, playerctl --player=ncspot,firefox play-pause -bind=,XF86AudioNext,exec, playerctl --player=ncspot,firefox next -bind=,XF86AudioPrev,exec, playerctl --player=ncspot,firefox previous +bind=,XF86AudioPlay,exec, playerctl --player=spotify_player,firefox play-pause +bind=,XF86AudioNext,exec, playerctl --player=spotify_player,firefox next +bind=,XF86AudioPrev,exec, playerctl --player=spotify_player,firefox previous bind=,XF86MonBrightnessDown,exec, $HOME/.config/eww/scripts/change-brightness brightness 10%- bind=,XF86MonBrightnessUp,exec, $HOME/.config/eww/scripts/change-brightness brightness +10% bind=SUPERSHIFT,S,exec, grim -g "$(slurp)" - | swappy -f - @@ -184,5 +184,5 @@ exec-once=nheko # exec-once=flatpak run --branch=stable --arch=x86_64 --command=/app/bin/schildichat-desktop --file-forwarding chat.schildi.desktop --enable-features=ozonePlatform,WebRTCPipeWireCapturer --ozone-platform=wayland exec-once=firefox exec-once=nextcloud -exec-once=kitty -e ncspot +exec-once=kitty spotify exec-once = copyq --start-server From fe575440970392593359077bec5b38a6f114b938 Mon Sep 17 00:00:00 2001 From: Fabio Lenherr Date: Thu, 9 Mar 2023 19:32:13 +0100 Subject: [PATCH 2/2] fix: revert to latexmk due to vimtex... --- nvim/lua/plugins/plugins.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/lua/plugins/plugins.lua b/nvim/lua/plugins/plugins.lua index 3cef678..60747cf 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 = 'tectonic'") + vim.cmd("let g:vimtex_compiler_method = 'latexmk'") vim.cmd( "let g:vimtex_compiler_latexmk = {'options': ['-pdf', '-shell-escape', '-file-line-error', '--extra-mem-bot=10000000', '-synctex=1', '-interaction=nonstopmode',],}" ) @@ -118,7 +118,7 @@ return { ["f"] = "close_window", }, position = "right", - scan_mode = "deep", + scan_mode = "deep", }, }, },