Skip to content

Commit

Permalink
new host: niji
Browse files Browse the repository at this point in the history
  • Loading branch information
noriah committed Nov 29, 2024
1 parent 80f289d commit 8093a20
Show file tree
Hide file tree
Showing 14 changed files with 150 additions and 31 deletions.
7 changes: 6 additions & 1 deletion bin/catnip-alacritty.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/bash

catnip -d spotify -r 122880 -n 2048 -bt 1 -bs 3 -bw 5 -i -dt 9 -sas 6 -sf 55
WINDOW_NAME="Catnip Visualizer"

wmctrl -r "$WINDOW_NAME" -b add,above,sticky

catnip -d spotify -r 122880 -n 2048 -i -dt 1 -bt 0 -bw 7 -sm 3 -bw 5 -sas 4 -sf 40

# catnip -d spotify -r 122880 -n 2048 -bt 1 -bs 1 -bw 2 -i -dt 8 -sas 6 -sf 55
1 change: 1 addition & 0 deletions bin/ksnipit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ksnip -r
8 changes: 8 additions & 0 deletions bin/screenoff.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

revert() {
xset dpms 0 0 0
}
trap revert HUP INT TERM
xset +dpms dpms 9 9 9
revert
1 change: 1 addition & 0 deletions bin/snipit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
maim -s -u | xclip -selection clipboard -t image/png
3 changes: 2 additions & 1 deletion etc/alacritty/default/alacritty.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[general]
live_config_reload = true

[colors.bright]
Expand Down Expand Up @@ -32,7 +33,7 @@ blinking = "On"

[font]
builtin_box_drawing = true
size = 6.0
size = 12.0

[font.normal]
family = "FiraCode Nerd Font"
Expand Down
2 changes: 1 addition & 1 deletion etc/alacritty/default/alacritty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ font:
#style: Bold Italic

# Point size
size: 6.0
size: 10.0

# Offset is the extra space around each character. `offset.y` can be thought
# of as modifying the line spacing, and `offset.x` as modifying the letter
Expand Down
23 changes: 15 additions & 8 deletions etc/alacritty/default/visualizer.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,33 @@ foreground = "#f7f7f7"

[font]
builtin_box_drawing = true
size = 4.5
size = 0.5

[font.normal]
family = "Fira Code"

[scrolling]
history = 0

[terminal.shell]
program = "/home/vix/opt/den/bin/catnip-alacritty.sh"

[window]
decorations = "full"
decorations = "none"
dynamic_padding = true
dynamic_title = false
opacity = 1.0
opacity = 0.0
resize_increments = true
title = "Visualizer"
title = "Catnip Visualizer"

[window.class]
general = "Visualizer"
instance = "Visualizer"
general = "Catnip Visualizer"
instance = "Catnip Visualizer"

[window.dimensions]
columns = 298
lines = 19
columns = 2496
lines = 60

[window.position]
x = 1472
y = 1674
24 changes: 14 additions & 10 deletions etc/alacritty/default/visualizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,30 @@
# Configuration for Alacritty, the GPU enhanced terminal emulator.

window:
title: Visualizer
title: Catnip Visualizer
dynamic_title: false
class:
instance: Visualizer
general: Visualizer
instance: Catnip Visualizer
general: Catnip Visualizer

resize_increments: true
dynamic_padding: true
decorations: full
opacity: 1.0
decorations: none
opacity: 0.0
# opacity: 0.5647

dimensions:
columns: 298
lines: 19
columns: 2496
lines: 60

# dimensions:
# columns: 126
# lines: 336

position:
x: 1472
y: 1674


# position:
# x: 3120
Expand All @@ -34,7 +38,7 @@ font:
normal:
family: "Fira Code"

size: 4.5
size: 0.5
builtin_box_drawing: true

colors:
Expand All @@ -54,5 +58,5 @@ colors:
# regardless of their background color.
transparent_background_colors: true

# shell:
# program: /home/nor/opt/den/bin/alacritty-catnip.sh
shell:
program: /home/vix/opt/den/bin/alacritty-catnip.sh
2 changes: 1 addition & 1 deletion etc/burrow/neofetch.zsh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FETCH_CONFIG="$HOME_ETC/neofetch/config.conf"
FETCH_ASCII="$HOME_ETC/neofetch/noriah.txt"
FETCH_COLORS="15 16 209 26"
FETCH_COLORS="15 16 209 29"
22 changes: 22 additions & 0 deletions etc/den/host/niji.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# niji is an AMD Desktop running Linux
export WORKSPACE_DIR="$HOME/workspace"

den::conf linux.zsh

den::host::set::color 135
den::user::set::color 204

# burrow plugin vim_mode

# GCP SDK
# GCP_SDK=""
# burrow plugin gcloud

# SSH Specific things
SSH_HOST_SOCK="${HOME}/.1password/agent.sock"
burrow plugin ssh

burrow plugin tmux

burrow plugin tor

16 changes: 8 additions & 8 deletions etc/i3/startup
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ exec --no-startup-id gnome-keyring-daemon --start --components=secrets
exec --no-startup-id DISPLAY=":0" picom -b

# Center Top Bar
exec --no-startup-id polybar -r main-top
#exec --no-startup-id polybar -r main-top

# Center Bottom Bar
exec --no-startup-id polybar -r main-bottom
#exec --no-startup-id polybar -r main-bottom

# Left Top Bar
exec --no-startup-id polybar -r left-top
#exec --no-startup-id polybar -r left-top

# Left Bottom Bar
exec --no-startup-id polybar -r left-bottom
#exec --no-startup-id polybar -r left-bottom

# Right Top Bar
exec --no-startup-id polybar -r right-top
#exec --no-startup-id polybar -r right-top

# Right Bottom Bar
exec --no-startup-id polybar -r right-bottom
#exec --no-startup-id polybar -r right-bottom

# Launch Bar
#exec_always --no-startup-id albert
Expand All @@ -51,6 +51,6 @@ exec --no-startup-id 1password --silent
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1

# set backgrounds
exec_always --no-startup-id nitrogen --restore
#exec_always --no-startup-id nitrogen --restore

exec --no-startup-id /bin/sh -c "pkill -15 opensnitch-ui; opensnitch-ui"
#exec --no-startup-id /bin/sh -c "pkill -15 opensnitch-ui; opensnitch-ui"
32 changes: 32 additions & 0 deletions etc/polybar/hosts/niji.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
; Host specific config for ersa

[displays]
center = DisplayPort-0
left = dummy
right = DisplayPort-1


[modules]
center-top-left = symbol sep
center-top-center = player player-controls
center-top-right = sep pipewire-control-jamesdsp sep forecast aqi sep date time

center-bottom-left = i3 i3-mode sep cpu memory sep nvidia-smi-all sep
center-bottom-center =
center-bottom-right = sep loadavg sep uptime sep kernel-release sep

left-top-left = symbol sep
left-top-center = player player-controls
left-top-right = sep pipewire-control-jamesdsp sep date time

left-bottom-left = i3 i3-mode sep
left-bottom-center =
left-bottom-right =

right-top-left = symbol sep
right-top-center = player player-controls
right-top-right = sep pipewire-control-jamesdsp sep date time

right-bottom-left = i3 i3-mode sep
right-bottom-center =
right-bottom-right =
33 changes: 33 additions & 0 deletions usr/foxden/setup/plans/gnome.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apply_gsettings() {
# key bindings
gsettings set org.gnome.desktop.wm.keybindings activate-window-menu "['<Alt>space']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-left "['<Super><Shift>Page_Up']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-right "['<Super><Shift>Page_Down']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "['<Super>Page_Up']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "['<Super>Page_Down']"
gsettings set org.gnome.desktop.wm.keybindings close "['<Super>q']"

gsettings set org.gnome.mutter.keybindings switch-monitor "['XF86Display']"

gsettings set org.gnome.shell.keybindings shift-overview-down "['']"
gsettings set org.gnome.shell.keybindings shift-overview-up "['']"
gsettings set org.gnome.shell.keybindings toggle-overview "['<Super>c']"
gsettings set org.gnome.settings-daemon.plugins.media-keys screensaver "['<Control><Super>q']"

# resize with mouse
gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier "'<Control><Super>'"
gsettings set org.gnome.desktop.wm.preferences resize-with-right-button true

# stop overlay
gsettings set org.gnome.mutter overlay-key "''"

echo "set gnome settings"
}

if den::is::linux; then
apply_gsettings
else
echo "noop"
fi

unset -f apply_gsettings
7 changes: 6 additions & 1 deletion usr/vscode/settings/client.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,5 +289,10 @@
"rust-analyzer.semanticHighlighting.operator.specialization.enable": true,
"rust-analyzer.inlayHints.closureReturnTypeHints.enable": "with_block",
"rust-analyzer.inlayHints.bindingModeHints.enable": true,
"editor.minimap.autohide": true
"editor.minimap.autohide": true,
"spellright.language": [],
"spellright.documentTypes": [
"latex",
"plaintext"
]
}

0 comments on commit 8093a20

Please sign in to comment.