lots of refactoring

This commit is contained in:
Chris Cochrun 2023-06-09 07:02:04 -05:00
parent a1191ff72a
commit e6901ef554
21 changed files with 37 additions and 103 deletions

View file

@ -404,7 +404,7 @@ calendar:indeterminate {
color: $base0D;
font-size : 14px;
font-weight : bold;
// margin : 11px 5px 0px 0px;
margin : 3px 5px 0px 0px;
}
.app-icon {

View file

@ -35,34 +35,6 @@
(literal
:content workspace))
;; (defwidget workspaces []
;; (box
;; :class "works"
;; :orientation "h"
;; :spacing 5
;; :space-evenly "false"
;; :valign "center"
;; (button
;; :onclick "hyprctl dispatch workspace 1"
;; :onrightclick "hyprctl dispatch workspace 1 && $HOME/.config/hypr/themes/neon/scripts/default_app"
;; :class "0$o1$f1" "")
;; (button
;; :onclick "hyprctl dispatch workspace 2"
;; :onrightclick "hyprctl dispatch workspace 2 && $HOME/.config/hypr/themes/neon/scripts/default_app"
;; :class "0$o2$f2" "")
;; (button
;; :onclick "hyprctl dispatch workspace 3"
;; :onrightclick "hyprctl dispatch workspace 3 && $HOME/.config/hypr/themes/neon/scripts/default_app"
;; :class "0$o3$f3" "")
;; (button
;; :onclick "hyprctl dispatch workspace 4"
;; :onrightclick "hyprctl dispatch workspace 4 && $HOME/.config/hypr/themes/neon/scripts/default_app"
;; :class "0$o4$f4" "")
;; (button
;; :onclick "hyprctl dispatch workspace 5"
;; :onrightclick "hyprctl dispatch workspace 5 && $HOME/.config/hypr/themes/neon/scripts/default_app"
;; :class "0$o5$f5" "")))
(defwidget appnames []
(eventbox
:onhover "${EWW_CMD} update control_reveal=true"
@ -93,52 +65,6 @@
:class "app-button"
:onclick "hyprctl dispatch killactive 1" ""))))))
;; (defwidget bright []
;; (eventbox
;; :onhover "${EWW_CMD} update br_reveal=true"
;; :onhoverlost "${EWW_CMD} update br_reveal=false"
;; :visible {HOST == "kaladin" ? "false" : "true"}
;; (box
;; :class "module"
;; :space-evenly "false"
;; :orientation "h"
;; :spacing "3"
;; (scale
;; :class "brightbar"
;; :value brightness_percent
;; :orientation "h"
;; :tooltip "${brightness_percent}%"
;; :max 100
;; :min 0
;; :onchange "brightnessctl s {}%" )
;; (label
;; :text ""
;; :class "bright_icon"
;; :tooltip "brightness"))))
;; (defwidget volume []
;; (eventbox
;; :onhover "${EWW_CMD} update vol_reveal=true"
;; :onhoverlost "${EWW_CMD} update vol_reveal=false"
;; (box
;; :class "module-2"
;; :space-evenly "false"
;; :orientation "h"
;; :spacing "3"
;; (scale
;; :class "volbar"
;; :value volume_percent
;; :draw-value: true
;; :orientation "h"
;; :tooltip "${volume_percent}%"
;; :max 150
;; :min 0
;; :onchange "pamixer --set-volume {}" )
;; (button
;; :onclick "scripts/pop audio"
;; :class "volume_icon"
;; "墳"))))
(defwidget wifi []
(eventbox
:onhover "${EWW_CMD} update wifi_rev=true"

View file

@ -1,25 +0,0 @@
#!/usr/bin/env bash
if [ $(hostname) = "syl" ]; then
if [ $XDG_SESSION_TYPE = "x11" ]; then
style="laptop"
else
style="laptop-wayland"
#echo "this is hidpi"
fi
else
style="desktop"
#echo "this is not hidpi"
fi
rofi -no-lazy-grab -modi combi -show combi -combi-modi "drun,run" -theme launchers-git/"$style".rasi
# wofi --show drun,run
# $@ &
# c=0
# while ! xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -id $(xdotool search -class 'rofi') ; do
# sleep .1
# c=$((c+1))
# [[ c = 50 ]] && exit; # stop script window didn't appear after 5 seconds
# done

View file

@ -22,7 +22,17 @@
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
xdg.userDirs.desktop = "${config.home.homeDirectory}/desk";
xdg.userDirs.documents = "${config.home.homeDirectory}/docs";
xdg.userDirs.download = "${config.home.homeDirectory}/dls";
xdg.userDirs.music = "${config.home.homeDirectory}/music";
xdg.userDirs.pictures = "${config.home.homeDirectory}/pics";
xdg.userDirs.publicShare = "${config.home.homeDirectory}/public";
# xdg.userDirs.temptlates = "${config.home.homeDirectory}/templates";
xdg.userDirs.videos = "${config.home.homeDirectory}/vids";
accounts.email = {
maildirBasePath = "$HOME/mail";
accounts = {
personal = {
address = "chris@cochrun.xyz";
@ -125,7 +135,6 @@
home.file.".config/mpv" = {
source = ../.config/mpv;
recursive = true;
};
services.nextcloud-client = {

View file

@ -137,7 +137,7 @@ with lib;
python3
airshipper
# hyprland
(callPackage ../ydotool { })
# (callPackage ./ydotool { })
# (libsForQt5.callPackage /home/chris/dev/LightlyShaders {}) # LightlyShaders
# (libsForQt5.callPackage /home/chris/.dotfiles/RoundedSBE {})
# (libsForQt5.callPackage /home/chris/dev/church-presenter {}) # librepresenter

BIN
scripts/geticons Executable file

Binary file not shown.

View file

@ -1 +0,0 @@
/home/chris/.dotfiles/rofi/launchers-git/launcher.sh

25
scripts/launcher.sh Executable file
View file

@ -0,0 +1,25 @@
#!/usr/bin/env bash
if [ $(hostname) = "syl" ]; then
if [ $XDG_SESSION_TYPE = "x11" ]; then
style="laptop"
else
style="laptop-wayland"
#echo "this is hidpi"
fi
else
style="desktop"
#echo "this is not hidpi"
fi
rofi -no-lazy-grab -modi combi -show combi -combi-modi "drun,run" -theme launchers-git/"$style".rasi
# wofi --show drun,run
# $@ &
# c=0
# while ! xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -id $(xdotool search -class 'rofi') ; do
# sleep .1
# c=$((c+1))
# [[ c = 50 ]] && exit; # stop script window didn't appear after 5 seconds
# done