summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bash_profile3
-rw-r--r--.config/emacs/Emacs.org20
-rw-r--r--.config/emacs/init.el18
-rw-r--r--.config/hypr/binds.conf4
-rw-r--r--.config/hypr/hyprlock.conf134
-rw-r--r--.config/mpd/.gitignore4
-rw-r--r--.config/mpd/mpd.conf20
-rw-r--r--.config/mpd/mpd.pid1
-rw-r--r--.config/waybar/config2
-rw-r--r--.gitignore1
-rwxr-xr-xscripts/restartsearxng3
-rwxr-xr-xscripts/startup1
-rwxr-xr-xscripts/yt-dla8
-rw-r--r--scripts/yt-dlv8
14 files changed, 128 insertions, 99 deletions
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
("<return>" . 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
("<return>" . 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 = <i>$FAIL <b>($ATTEMPTS)</b></i> # 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