diff --git a/README.org b/README.org index dc99375..4834c42 100644 --- a/README.org +++ b/README.org @@ -319,6 +319,7 @@ btop qrencode brave scribus +darktable qutebrowser # firefox kate @@ -346,7 +347,8 @@ lxappearance spotdl kdenlive rubberband -ffmpeg +ffmpeg-full +texlive.combined.scheme-full wlroots picom-next pamixer @@ -362,6 +364,7 @@ element-desktop-wayland scrcpy python # hyprland + #+end_src Here are some dev tools that I often have on a few devices. diff --git a/fish/config.fish b/fish/config.fish index 8fcd1c6..970bc39 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -217,6 +217,7 @@ alias ecc "emacsclient -c" alias mkdir "mkdir -pv" alias nupd "update-nix" alias nupg "upgrade-nix" +alias nixs "nix search nixpkgs" alias myip "curl icanhazip.com" alias ytd "yt-dlp -o ~/Videos/%(title)s.%(ext)s" diff --git a/scripts/kdenlivelof b/scripts/kdenlivelof new file mode 100755 index 0000000..c4a6aa9 --- /dev/null +++ b/scripts/kdenlivelof @@ -0,0 +1,36 @@ +#!/bin/sh + +# Check to see if an kdenlive is running +if [ $(pgrep -c kdenlive) -gt 0 ]; then + + if [ $XDG_SESSION_TYPE = "x11" ]; then + #X11 + kdenliverg=$(wmctrl -lx | rg kdenlive.kdenlive | rg -v org-agenda | awk '{print $1}') + # echo $kdenliverg + + if [ -z $kdenliverg ]; then + exec kdenlive & + exit + else + exec wmctrl -ia $kdenliverg + exit + fi + else + if [ $KDE_FULL_SESSION = "true" ]; then + exec /home/chris/bin/ww -fa Kdenlive -c kdenlive + exit + else + # WAYLAND + kdenliverg=$(wlrctl window list | rg -v 'kdenlive:\sorg-agenda' | rg 'kdenlive:') + + kdenlivewin=$(echo $kdenliverg | sed 's/.*\: //') + # echo $kdenlivewin + + exec wlrctl toplevel focus title:"$kdenlivewin" + exit + fi + fi + +else + exec kdenlive & +fi diff --git a/system/kaladin/configuration.nix b/system/kaladin/configuration.nix index b1a5dae..ca38c6b 100644 --- a/system/kaladin/configuration.nix +++ b/system/kaladin/configuration.nix @@ -232,6 +232,7 @@ qrencode brave scribus + darktable qutebrowser # firefox kate @@ -259,7 +260,8 @@ spotdl kdenlive rubberband - ffmpeg + ffmpeg-full + texlive.combined.scheme-full wlroots picom-next pamixer @@ -275,6 +277,7 @@ scrcpy python # hyprland + blender neofetch # ethminer diff --git a/system/syl/configuration.nix b/system/syl/configuration.nix index c7e5f07..3fba912 100644 --- a/system/syl/configuration.nix +++ b/system/syl/configuration.nix @@ -242,6 +242,7 @@ qrencode brave scribus + darktable qutebrowser # firefox kate @@ -269,7 +270,8 @@ spotdl kdenlive rubberband - ffmpeg + ffmpeg-full + texlive.combined.scheme-full wlroots picom-next pamixer @@ -285,6 +287,7 @@ scrcpy python # hyprland + neofetch afetch yafetch diff --git a/user/home.nix b/user/home.nix index ee308cc..be925ca 100644 --- a/user/home.nix +++ b/user/home.nix @@ -409,6 +409,10 @@ recursive = true; }; + home.file."bin/kdenlivelof" = { + source = ../scripts/kdenlivelof; + }; + programs.starship.enable = true; programs.zsh = { enable = true;