From 88981c72f40f02848b9d095d8047699a645f5423 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 19 Oct 2023 09:47:49 -0500 Subject: [PATCH] updates to tridactyl --- .config/hypr/hyprland.conf | 22 +++++++---- .config/tridactyl/themes/snazzy.css | 59 ++++++++++++++++++++++++----- guix/home.scm | 7 ++-- 3 files changed, 67 insertions(+), 21 deletions(-) diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index faf8e21..e5de580 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -6,10 +6,11 @@ monitor=HDMI-A-1,preferred,3640x900,1 #monitor=HDMI-A-1,preferred,0x0,1 #monitor=DP-1,preferred,2680x0,1.5 #monitor=DP-2,preferred,1600x0,1 -workspace=DP-2,2 -workspace=DP-1,1 -workspace=HDMI-A-1,3 -monitor=DP-2,transform,1 +workspace=1,monitor:eDP-1,1,default:true +workspace=2,monitor:HDMI-A-1,2,default:true +workspace=9,monitor:DP-2,9,gapsout:0,default:true +workspace=1,monitor:DP-1,1,default:true +monitor=HDMI-A-1,transform,1 input { # kb_layout= @@ -24,6 +25,7 @@ input { accel_profile=adaptive follow_mouse=2 + float_switch_override_focus=0 touchpad { natural_scroll=1 @@ -31,8 +33,12 @@ input { } } +xwayland { + use_nearest_neighbor = false + # force_zero_scaling = true +} + general { - max_fps=60 # deprecated, unused # main_mod=SUPER gaps_in=15 @@ -119,7 +125,7 @@ windowrule=float,mpv windowrule=size 90% 76%,mpv windowrule=center,mpv windowrule=opaque,mpv -windowrule=workspace 1,mpv +#windowrule=workspace 1,mpv windowrule=size 90% 90%,title:Picture-in-Picture windowrule=workspace 1,rofi # windowrule=pin,mpv @@ -148,7 +154,7 @@ bind = SUPER,w,exec,/home/chris/bin/window.sh bind = SUPER,E,exec,/home/chris/bin/emacslof bind = SUPER,d,exec,emacsclient -c -e '(dired-jump)' bind = SUPER,v,exec,emacsclient -e '(chris/dired-open-videos)' -bind = SUPER,B,exec,/home/chris/bin/qblof +bind = SUPER,B,exec,/home/chris/bin/fflof bind = SUPER,A,exec,alacritty --class pulsemixer -e pulsemixer bind = SUPERCTRL,i,exec,alacritty --class btop -e btop bind = ,Print,exec,screenshot @@ -225,5 +231,5 @@ exec-once = hyprctl dispatch --batch "splitratio 1; splitration -0.35" exec-once = dbus-update-activation-environment --all exec-once = jellyfin-mpv-shim exec-once = hyprctl setcursor phinger-cursors-light 24 -exec-once = swaybg -i ~/pics/wallpapers/guix.svg +exec-once = swaybg -m fill -i ~/pics/wallpapers/adventure.jpg exec-once = swayidle -w timeout 300 'swaylock -S --effect-blur 20x3 --fade-in 1 --effect-vignette 0.5:1 --grace 60' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -S --effect-blur 20x3 --effect-vignette 0.5:1' diff --git a/.config/tridactyl/themes/snazzy.css b/.config/tridactyl/themes/snazzy.css index 3af245b..f8b41ee 100644 --- a/.config/tridactyl/themes/snazzy.css +++ b/.config/tridactyl/themes/snazzy.css @@ -22,6 +22,7 @@ --tridactyl-url-bg: var(--base00); --tridactyl-highlight-box-bg: var(--base0D); --tridactyl-highlight-box-fg: var(--base00); + --tridactyl-cmplt-option-height: 1.4em; /* Hint character tags */ --tridactyl-hintspan-fg: var(--base00) !important; @@ -36,8 +37,15 @@ } #command-line-holder { order: 1; - /*border: 2px solid var(--base0B);*/ - color: var(--tridactyl-bg); + /* border: 2px solid var(--base0B); */ + color: var(--tridactyl-bg) !important; + background: var(--tridactyl-bg) !important; +} +:root #completions table tr td.prefix, +:root #completions table tr td.privatewindow, +:root #completions table tr td.container, +:root #completions table tr td.icon { + display: none; } #tridactyl-input { color: var(--tridactyl-fg); @@ -51,7 +59,7 @@ } #completions table { font-size: 1.0rem !important; - font-weight: 800 !important; + font-weight: 600 !important; border-spacing: 0; table-layout: fixed; padding: 1rem; @@ -59,8 +67,9 @@ padding-bottom: 1rem; } -#completions > div { max-height: calc(30 * var(--option-height)); - min-height: calc(10 * var(--option-height)); +#completions > div { + max-height: calc(20 * var(--tridactyl-cmplt-option-height)); + min-height: calc(10 * var(--tridactyl-cmplt-option-height)); } /* COMPLETIONS */ @@ -118,6 +127,36 @@ padding-bottom: 0.2rem; } +:root #completions .HistoryCompletionSource { + max-height: unset; + min-height: unset; +} + +:root #completions .HistoryCompletionSource table { + width: 100%; + font-size: 9pt; + border-spacing: 0; + table-layout: fixed; +} + +/* redundancy 2: redundancy 2: more redundancy */ +:root #completions .BmarkCompletionSource { + max-height: unset; + min-height: unset; +} +:root #completions .BufferCompletionSource table { + width: unset; + font-size: unset; + border-spacing: unset; + table-layout: unset; +} + +:root #completions table tr { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + #cmdline_iframe { position: fixed !important; bottom: unset; top: 25% !important; @@ -125,7 +164,7 @@ z-index: 2147483647 !important; width: 80% !important; box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 20px !important; - border-radius: 30px !important; + border-radius: 25px !important; /*filter: blur(15px);*/ } @@ -154,7 +193,7 @@ /* border-color: yellow !important; */ /* } */ -body { - color: var(--tridactyl-bg); - box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 20px !important; -} +/* body { */ +/* color: var(--tridactyl-bg); */ +/* box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 20px !important; */ +/* } */ diff --git a/guix/home.scm b/guix/home.scm index 11c310a..a96390f 100644 --- a/guix/home.scm +++ b/guix/home.scm @@ -120,6 +120,7 @@ "ffmpegthumbs" "ffmpegthumbnailer" "kio" + "nim" "kio-fuse" "ifuse" "libimobiledevice" @@ -249,7 +250,7 @@ "emacs-org-re-reveal" "emacs-org-ql" "emacs-org-msg" - ;; "emacs-nov-el" + "emacs-nov-el" "emacs-calfw" "emacs-transmission" "emacs-emojify" @@ -368,8 +369,8 @@ ("ytd" . "yt-dlp -o \\\"~/vids/%(title)s.%(ext)s\\\" $1"))) (config (list ;; (plain-file "home-manager" "fenv source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh") - (plain-file "direnv" "direnv hook fish | source") - (local-file "../.config/fish/config.fish"))))) + (plain-file "direnv" "direnv hook fish | source") + (local-file "../.config/fish/config.fish"))))) (simple-service 'config home-xdg-configuration-files-service-type `(("hypr" ,(local-file "../.config/hypr" #:recursive? #t))