From 38d3bf7ae9ee81239adcae487a08ef0ba77687f5 Mon Sep 17 00:00:00 2001 From: js0ny Date: Mon, 3 Feb 2025 09:23:00 +0000 Subject: [PATCH] shell qol update --- platforms/linux/hypr/hyprland.conf | 17 +++++++++++++++++ platforms/linux/kde/dolphinrc | 3 ++- tools/doom/config.el | 3 ++- tools/fish/conf.d/alias.fish | 6 ++++++ tools/powershell/Aliases.ps1 | 1 + tools/zsh/mod/alias.zsh | 3 +++ 6 files changed, 31 insertions(+), 2 deletions(-) diff --git a/platforms/linux/hypr/hyprland.conf b/platforms/linux/hypr/hyprland.conf index bde4dd3..a6e2ab6 100644 --- a/platforms/linux/hypr/hyprland.conf +++ b/platforms/linux/hypr/hyprland.conf @@ -69,13 +69,30 @@ $menu = wofi # exec-once = $terminal # exec-once = nm-applet & # exec-once = waybar & hyprpaper & mako & systemctl --user start hyprpolkitagent & fcitx5 & albert +# Top Bar exec-once = waybar & +# Notifications exec-once = mako & +# wallpapers exec-once = hyprpaper & +# Authentication agent exec-once = systemctl --user start hyprpolkitagent +# Input Method exec-once = fcitx5 & +# Clipboard history (called by wofi) exec-once = wl-paste --watch cliphist store # exec-once = QT_SCALE_FACTOR=1 albert & +# Bluetooth Manager +exec-once = blueman-tray & +# Time Tracker +exec-once = aw-qt & +# https://github.com/hyprwm/Hyprland/discussions/5867 +exec = gsettings set org.gnome.desktop.interface gtk-theme "Breeze-Dark" # for GTK3 apps +exec = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" # for GTK4 apps + +env = QT_QPA_PLATFORMTHEME,qt6ct # for Qt apps +# https://discuss.kde.org/t/the-themes-i-use-with-qt6ct-are-not-applied-in-discover/17118 +env = QT_QUICK_CONTROLS_STYLE,org.kde.desktop diff --git a/platforms/linux/kde/dolphinrc b/platforms/linux/kde/dolphinrc index e5cc131..0c22157 100644 --- a/platforms/linux/kde/dolphinrc +++ b/platforms/linux/kde/dolphinrc @@ -1,4 +1,5 @@ [General] +UseTabForSwitchingSplitView=true Version=202 ViewPropsTimestamp=2024,12,10,0,19,35.931 @@ -14,4 +15,4 @@ MenuBar=Disabled ToolBarsMovable=Disabled [PreviewSettings] -Plugins=appimagethumbnail,avif,blenderthumbnail,comicbookthumbnail,djvuthumbnail,ebookthumbnail,exrthumbnail,heif,jxl,jpegthumbnail,kraorathumbnail,windowsimagethumbnail,windowsexethumbnail,mobithumbnail,opendocumentthumbnail,gsthumbnail,rawthumbnail,svgthumbnail,gdk-pixbuf-thumbnailer,cursorthumbnail,imagethumbnail,fontthumbnail,directorythumbnail,textthumbnail,ffmpegthumbs,audiothumbnail +Plugins=appimagethumbnail,audiothumbnail,avif,blenderthumbnail,comicbookthumbnail,cursorthumbnail,djvuthumbnail,ebookthumbnail,exrthumbnail,directorythumbnail,fontthumbnail,heif,imagethumbnail,jpegthumbnail,jxl,kraorathumbnail,windowsexethumbnail,windowsimagethumbnail,mobithumbnail,opendocumentthumbnail,gsthumbnail,rawthumbnail,svgthumbnail,textthumbnail,ffmpegthumbs,gdk-pixbuf-thumbnailer diff --git a/tools/doom/config.el b/tools/doom/config.el index af64646..aacea60 100644 --- a/tools/doom/config.el +++ b/tools/doom/config.el @@ -42,7 +42,8 @@ ;; If you use `org' and don't want your org files in the default location below, ;; change `org-directory'. It must be set before org loads! -(setq org-directory "~/Documents/OrgFiles/") +(setq org-directory "~/OrgFiles/") +(setq org-roam-directory "~/OrgFiles/roam/") ;; Whenever you reconfigure a package, make sure to wrap your config in an diff --git a/tools/fish/conf.d/alias.fish b/tools/fish/conf.d/alias.fish index 8c35a72..dd4a69d 100644 --- a/tools/fish/conf.d/alias.fish +++ b/tools/fish/conf.d/alias.fish @@ -47,6 +47,12 @@ function tv touch $argv[1] && nvim $argv[1] end +# Create a new file, if the directory does not exist, create it +# Arg: a file name +function mt + mkdir -p (dirname $argv[1]) && touch $argv[1] +end + # Use neovide as gVim abbr --add gvi "neovide" diff --git a/tools/powershell/Aliases.ps1 b/tools/powershell/Aliases.ps1 index b919191..45948f7 100644 --- a/tools/powershell/Aliases.ps1 +++ b/tools/powershell/Aliases.ps1 @@ -23,6 +23,7 @@ function tv { param ( [string] $filename) New-Item $filename && nvim $filename } function cdls { param( [string] $dirname) Set-Location $dirname && Get-ChildItem } function zls { param( [string] $dirname) z $dirname && Get-ChildItem } function zl { param( [string] $dirname) z $dirname && lsd } +function mt { param( [string] $dirname) New-Item -ItemType File -Name $dirname -Force } ### Dev ### diff --git a/tools/zsh/mod/alias.zsh b/tools/zsh/mod/alias.zsh index 76d268e..4ce8b5d 100644 --- a/tools/zsh/mod/alias.zsh +++ b/tools/zsh/mod/alias.zsh @@ -53,6 +53,9 @@ tc(){ tv(){ touch $1 && nvim $1 } +mt(){ + mkdir -p $(dirname $1) && touch $1 +} alias update="source $DOTFILES/scripts/update.zsh"