From e57370dbf542b165e430cc8c708677625a9f8ed4 Mon Sep 17 00:00:00 2001 From: JackJ30 Date: Mon, 9 Sep 2024 00:07:54 -0400 Subject: laptop config --- .bash_profile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .bash_profile (limited to '.bash_profile') diff --git a/.bash_profile b/.bash_profile new file mode 100644 index 0000000..a70742b --- /dev/null +++ b/.bash_profile @@ -0,0 +1,11 @@ +# +# ~/.bash_profile +# + +[[ -f ~/.bashrc ]] && . ~/.bashrc + +export PATH=$PATH:$HOME/.dotfiles/scripts + +if [[ -t 0 && $(tty) == /dev/tty1 && ! $DISPLAY ]]; then + exec dbus-launch --exit-with-session Hyprland +fi -- cgit v1.2.3 From 87d1769dcbdd5fe5e5ebde8f2bc6e490611947cb Mon Sep 17 00:00:00 2001 From: JackJ30 Date: Tue, 1 Oct 2024 15:41:38 -0400 Subject: I'm going through changes --- .bash_profile | 3 +- .config/emacs/Emacs.org | 20 ++++++- .config/emacs/init.el | 18 +++++- .config/hypr/binds.conf | 4 ++ .config/hypr/hyprlock.conf | 134 +++++++++++++-------------------------------- .config/mpd/.gitignore | 4 ++ .config/mpd/mpd.conf | 20 +++++++ .config/mpd/mpd.pid | 1 + .config/waybar/config | 2 +- .gitignore | 1 + scripts/restartsearxng | 3 + scripts/startup | 1 + scripts/yt-dla | 8 +++ scripts/yt-dlv | 8 +++ 14 files changed, 128 insertions(+), 99 deletions(-) create mode 100644 .config/mpd/.gitignore create mode 100644 .config/mpd/mpd.conf create mode 100644 .config/mpd/mpd.pid create mode 100755 scripts/restartsearxng create mode 100755 scripts/yt-dla create mode 100644 scripts/yt-dlv (limited to '.bash_profile') diff --git a/.bash_profile b/.bash_profile index a70742b..81ae1ca 100644 --- a/.bash_profile +++ b/.bash_profile @@ -4,7 +4,8 @@ [[ -f ~/.bashrc ]] && . ~/.bashrc -export PATH=$PATH:$HOME/.dotfiles/scripts +export PATH="$PATH:$HOME/.dotfiles/scripts" +export PATH="$PATH:/home/jack/.dotnet/tools" if [[ -t 0 && $(tty) == /dev/tty1 && ! $DISPLAY ]]; then exec dbus-launch --exit-with-session Hyprland diff --git a/.config/emacs/Emacs.org b/.config/emacs/Emacs.org index a98f70f..71a342c 100644 --- a/.config/emacs/Emacs.org +++ b/.config/emacs/Emacs.org @@ -6,6 +6,7 @@ #+begin_src emacs-lisp (setq make-backup-files nil create-lockfiles nil + erc-join-buffer 'window confirm-kill-processes nil) (setq inhibit-startup-message t @@ -372,6 +373,7 @@ best git frontend ever (c-mode . lsp) (c++-mode . lsp) (python-mode . lsp-deferred) + (csharp-mode . lsp) ;; if you want which-key integration (lsp-mode . lsp-enable-which-key-integration)) :commands lsp) @@ -420,7 +422,7 @@ best git frontend ever :config (setq company-show-numbers t company-minimum-prefix-length 1 - company-idle-delay 0 + company-idle-delay 0.2 company-backends '((company-files company-keywords @@ -484,3 +486,19 @@ best git frontend ever ("" . nil))) #+end_src +* Dired +#+begin_src emacs-lisp + (use-package dired + :ensure nil + :ensure nil + :commands (dired dired-jump) + :bind (:map dired-mode-map ("SPC" . dired-single-buffer)) + :config + (setq dired-dwim-target t) + (evil-collection-define-key 'normal 'dired-mode-map + "h" 'dired-single-up-directory + "l" 'dired-single-buffer)) + + (use-package dired-single + :commands (dired dired-jump)) +#+end_src diff --git a/.config/emacs/init.el b/.config/emacs/init.el index ffa75a9..e10998b 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -1,5 +1,6 @@ (setq make-backup-files nil create-lockfiles nil + erc-join-buffer 'window confirm-kill-processes nil) (setq inhibit-startup-message t @@ -333,6 +334,7 @@ (c-mode . lsp) (c++-mode . lsp) (python-mode . lsp-deferred) + (csharp-mode . lsp) ;; if you want which-key integration (lsp-mode . lsp-enable-which-key-integration)) :commands lsp) @@ -381,7 +383,7 @@ :config (setq company-show-numbers t company-minimum-prefix-length 1 - company-idle-delay 0 + company-idle-delay 0.2 company-backends '((company-files company-keywords @@ -437,3 +439,17 @@ ("C-c C->" . 'mc/mark-all-like-this) :map mc/keymap ("" . nil))) + +(use-package dired + :ensure nil + :ensure nil + :commands (dired dired-jump) + :bind (:map dired-mode-map ("SPC" . dired-single-buffer)) + :config + (setq dired-dwim-target t) + (evil-collection-define-key 'normal 'dired-mode-map + "h" 'dired-single-up-directory + "l" 'dired-single-buffer)) + +(use-package dired-single + :commands (dired dired-jump)) diff --git a/.config/hypr/binds.conf b/.config/hypr/binds.conf index b4646e9..186ee78 100644 --- a/.config/hypr/binds.conf +++ b/.config/hypr/binds.conf @@ -31,11 +31,15 @@ bind = $mainMod, E, exec, emacsclient -c # Move focus with mainMod + arrow keys bind = $mainMod, left, movefocus, l bind = $mainMod, right, movefocus, r +bind = $mainMod, n, cyclenext, prev +bind = $mainMod, p, cyclenext bind = $mainMod, up, movefocus, u bind = $mainMod, down, movefocus, d bind = $mainMod SHIFT,left ,movewindow, l bind = $mainMod SHIFT,right ,movewindow, r +bind = $mainMod SHIFT, n, swapnext, prev +bind = $mainMod SHIFT, p, swapnext bind = $mainMod SHIFT,up ,movewindow, u bind = $mainMod SHIFT,down ,movewindow, d diff --git a/.config/hypr/hyprlock.conf b/.config/hypr/hyprlock.conf index 3150f25..fb4be3c 100644 --- a/.config/hypr/hyprlock.conf +++ b/.config/hypr/hyprlock.conf @@ -1,102 +1,46 @@ -# $text_color = rgba(E3E1EFFF) -# $entry_background_color = rgba(12131C11) -# $entry_border_color = rgba(908F9F55) -# $entry_color = rgba(C6C5D6FF) -$text_color = rgba(FFFFFFFF) -$entry_background_color = rgba(33333311) -$entry_border_color = rgba(3B3B3B55) -$entry_color = rgba(FFFFFFFF) -$font_family = Rubik Light -$font_family_clock = Rubik Light -$font_material_symbols = Material Symbols Rounded +disable_loading_bar = true +hide_cursor = true +no_fade_in = true background { - # color = rgba(0D0D17FF) - color = rgba(000000FF) - # path = {{ SWWW_WALL }} - # path = screenshot - # blur_size = 5 - # blur_passes = 4 -} -input-field { monitor = - size = 250, 50 - outline_thickness = 2 - dots_size = 0.1 - dots_spacing = 0.3 - outer_color = $entry_border_color - inner_color = $entry_background_color - font_color = $entry_color - # fade_on_empty = true - - position = 0, 20 - halign = center - valign = center + path = screenshot + + # all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations + blur_passes = 2 # 0 disables blurring + blur_size = 2 + noise = 0.0117 + contrast = 0.8916 + brightness = 0.8172 + vibrancy = 0.1696 + vibrancy_darkness = 0.0 } - -label { # Clock - monitor = - text = $TIME - shadow_passes = 1 - shadow_boost = 0.5 - color = $text_color - font_size = 65 - font_family = $font_family_clock - - position = 0, 300 - halign = center - valign = center -} -label { # Greeting +input-field { monitor = - text = hi $USER !!! - shadow_passes = 1 - shadow_boost = 0.5 - color = $text_color - font_size = 20 - font_family = $font_family - - position = 0, 240 + size = 50, 50 + outline_thickness = 3 + dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8 + dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0 + dots_center = false + dots_rounding = -1 # -1 default circle, -2 follow input-field rounding + outer_color = rgb(151515) + inner_color = rgb(200, 200, 200) + font_color = rgb(10, 10, 10) + fade_on_empty = true + fade_timeout = 1000 # Milliseconds before fade_on_empty is triggered. + hide_input = true + rounding = -1 # -1 means complete rounding (circle/oval) + check_color = rgb(204, 136, 34) + fail_color = rgb(204, 34, 34) # if authentication failed, changes outer_color and fail message color + fail_text = $FAIL ($ATTEMPTS) # can be set to empty + fail_transition = 300 # transition time in ms between normal outer_color and fail_color + capslock_color = -1 + numlock_color = -1 + bothlock_color = -1 # when both locks are active. -1 means don't change outer color (same for above) + invert_numlock = false # change color if numlock is off + swap_font_color = false # see below + + position = 0, -20 halign = center valign = center -} -label { # lock icon - monitor = - text = lock - shadow_passes = 1 - shadow_boost = 0.5 - color = $text_color - font_size = 21 - font_family = $font_material_symbols - - position = 0, 65 - halign = center - valign = bottom -} -label { # "locked" text - monitor = - text = locked - shadow_passes = 1 - shadow_boost = 0.5 - color = $text_color - font_size = 14 - font_family = $font_family - - position = 0, 45 - halign = center - valign = bottom -} - -label { # Status - monitor = - text = cmd[update:5000] ~/.config/hypr/hyprlock/status.sh - shadow_passes = 1 - shadow_boost = 0.5 - color = $text_color - font_size = 14 - font_family = $font_family - - position = 30, -30 - halign = left - valign = top -} +} \ No newline at end of file diff --git a/.config/mpd/.gitignore b/.config/mpd/.gitignore new file mode 100644 index 0000000..af73ba5 --- /dev/null +++ b/.config/mpd/.gitignore @@ -0,0 +1,4 @@ +mpd.log +mpdstate +mpd.db +/playlists/ \ No newline at end of file diff --git a/.config/mpd/mpd.conf b/.config/mpd/mpd.conf new file mode 100644 index 0000000..0d0d817 --- /dev/null +++ b/.config/mpd/mpd.conf @@ -0,0 +1,20 @@ +bind_to_address "127.0.0.1" +#bind_to_address "~/.mpd/socket" +music_directory "~/Music" +playlist_directory "~/.config/mpd/playlists" +db_file "~/.config/mpd/mpd.db" +log_file "~/.config/mpd/mpd.log" +pid_file "~/.config/mpd/mpd.pid" +state_file "~/.config/mpd/mpdstate" +audio_output { + type "pipewire" + name "pw audio" + mixer_type "hardware" +} + +audio_output { + type "fifo" + name "my_fifo" + path "/tmp/mpd.fifo" + format "44100:16:2" +} diff --git a/.config/mpd/mpd.pid b/.config/mpd/mpd.pid new file mode 100644 index 0000000..30ed602 --- /dev/null +++ b/.config/mpd/mpd.pid @@ -0,0 +1 @@ +1378 diff --git a/.config/waybar/config b/.config/waybar/config index f14f700..8915b2b 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -5,7 +5,7 @@ "modules-left": ["hyprland/workspaces", "custom/separator", "tray"], "modules-center": ["hyprland/window"], - "modules-right": ["wireplumber", "custom/brightness", "battery", "cpu", "memory", "network", "custom/separator", "clock"], + "modules-right": ["wireplumber", "custom/brightness", "battery", "cpu", "memory", "custom/separator", "network", "custom/separator", "clock"], "hyprland/workspaces": { "format": "{id}", diff --git a/.gitignore b/.gitignore index e2e4f38..92d748d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /.config/emacs/recentf /.config/emacs/undotreefiles/ +/.config/emacs/elpa/ diff --git a/scripts/restartsearxng b/scripts/restartsearxng new file mode 100755 index 0000000..0593803 --- /dev/null +++ b/scripts/restartsearxng @@ -0,0 +1,3 @@ +#!/bin/sh +pkill -x uwsgi +uwsgi --ini $HOME/opt/searxng/searxng.ini diff --git a/scripts/startup b/scripts/startup index f69b35f..46e4c17 100755 --- a/scripts/startup +++ b/scripts/startup @@ -1,5 +1,6 @@ #!/bin/sh gpgconf -K gpg-agent +restartsearxng & restartemacs >/dev/null & pipewire & mpd & diff --git a/scripts/yt-dla b/scripts/yt-dla new file mode 100755 index 0000000..f87f145 --- /dev/null +++ b/scripts/yt-dla @@ -0,0 +1,8 @@ +#!/bin/sh + +echo "$1" +if [ -z "$1" ] ; then + echo "usage: $0 [url of youtube video]" + exit 1 +fi +yt-dlp -x --audio-format mp3 --audio-quality 0 "$1" diff --git a/scripts/yt-dlv b/scripts/yt-dlv new file mode 100644 index 0000000..6b96b4e --- /dev/null +++ b/scripts/yt-dlv @@ -0,0 +1,8 @@ +#!/bin/sh + +echo "$1" +if [ -z "$1" ] ; then + echo "usage: $0 [url of youtube video]" + exit 1 +fi +yt-dlp "$1" \ No newline at end of file -- cgit v1.2.3 From ae201197d96cc3989773da7dfd66b3e7291fe16f Mon Sep 17 00:00:00 2001 From: JackJ30 Date: Sat, 12 Oct 2024 21:39:45 -0400 Subject: shortcuts and other changes --- .bash_profile | 3 ++- .config/mpd/mpd.pid | 2 +- .stow-local-ignore | 1 + scripts/discord | 3 --- scripts/godot | 3 --- shortcuts/bottles | 1 + shortcuts/discord | 3 +++ shortcuts/godot | 3 +++ 8 files changed, 11 insertions(+), 8 deletions(-) delete mode 100644 scripts/discord delete mode 100755 scripts/godot create mode 100755 shortcuts/bottles create mode 100644 shortcuts/discord create mode 100755 shortcuts/godot (limited to '.bash_profile') diff --git a/.bash_profile b/.bash_profile index 81ae1ca..d737e42 100644 --- a/.bash_profile +++ b/.bash_profile @@ -5,7 +5,8 @@ [[ -f ~/.bashrc ]] && . ~/.bashrc export PATH="$PATH:$HOME/.dotfiles/scripts" -export PATH="$PATH:/home/jack/.dotnet/tools" +export PATH="$PATH:$HOME/.dotnet/tools" +export PATH="$PATH:$HOME/.dotfiles/shortcuts" if [[ -t 0 && $(tty) == /dev/tty1 && ! $DISPLAY ]]; then exec dbus-launch --exit-with-session Hyprland diff --git a/.config/mpd/mpd.pid b/.config/mpd/mpd.pid index 3f3c936..1b1818c 100644 --- a/.config/mpd/mpd.pid +++ b/.config/mpd/mpd.pid @@ -1 +1 @@ -1344 +1353 diff --git a/.stow-local-ignore b/.stow-local-ignore index 0ae4a8e..805a30f 100644 --- a/.stow-local-ignore +++ b/.stow-local-ignore @@ -1,5 +1,6 @@ /files /scripts +/shortcuts .*~undo-tree~ /.git .gitignore diff --git a/scripts/discord b/scripts/discord deleted file mode 100644 index 52af980..0000000 --- a/scripts/discord +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -discord-screenaudio \ No newline at end of file diff --git a/scripts/godot b/scripts/godot deleted file mode 100755 index a2d74f9..0000000 --- a/scripts/godot +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -godot-mono --single-window \ No newline at end of file diff --git a/shortcuts/bottles b/shortcuts/bottles new file mode 100755 index 0000000..bd26412 --- /dev/null +++ b/shortcuts/bottles @@ -0,0 +1 @@ +flatpak run com.usebottles.bottles \ No newline at end of file diff --git a/shortcuts/discord b/shortcuts/discord new file mode 100644 index 0000000..52af980 --- /dev/null +++ b/shortcuts/discord @@ -0,0 +1,3 @@ +#!/bin/sh + +discord-screenaudio \ No newline at end of file diff --git a/shortcuts/godot b/shortcuts/godot new file mode 100755 index 0000000..a2d74f9 --- /dev/null +++ b/shortcuts/godot @@ -0,0 +1,3 @@ +#!/bin/sh + +godot-mono --single-window \ No newline at end of file -- cgit v1.2.3