aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSpacedio <spacedio@thernusen.net>2026-04-08 22:15:39 -0400
committerSpacedio <spacedio@thernusen.net>2026-04-08 22:15:39 -0400
commit087ebd3772bfe1f2c0b7a4e5acec3c7677da1b47 (patch)
treec689425a5c18e0e85872015722a254e42e8a8426
parent559cc182a5c359679b9b8bb56c12cb946e090d29 (diff)
downloaddotfiles-087ebd3772bfe1f2c0b7a4e5acec3c7677da1b47.tar.gz
Commit of Blade Stealth specific config.
-rw-r--r--alacritty/.config/alacritty/alacritty.toml2
-rw-r--r--bashrc/.bash_profile9
-rw-r--r--i3/.config/i3/config47
-rwxr-xr-xi3/.config/i3/scripts/power_timer.sh19
-rw-r--r--nvim/.config/nvim/lazy-lock.json2
-rw-r--r--nvim/.config/nvim/lua/plugins/treesitter.lua62
-rw-r--r--polybar/.config/polybar/config.ini18
-rwxr-xr-xpolybar/.config/polybar/scripts/mic-status.sh29
-rwxr-xr-xpolybar/.config/polybar/scripts/mic.sh23
-rw-r--r--x11/.Xresources10
-rw-r--r--x11/.xinitrc2
-rw-r--r--x11/.xprofile14
12 files changed, 166 insertions, 71 deletions
diff --git a/alacritty/.config/alacritty/alacritty.toml b/alacritty/.config/alacritty/alacritty.toml
index b4a6a02..9e7f5ab 100644
--- a/alacritty/.config/alacritty/alacritty.toml
+++ b/alacritty/.config/alacritty/alacritty.toml
@@ -9,4 +9,4 @@ x = 6
[font]
normal = { family = "Hasklug Nerd Font Propo", style = "Regular" }
-size = 8
+size = 12
diff --git a/bashrc/.bash_profile b/bashrc/.bash_profile
new file mode 100644
index 0000000..ac667e7
--- /dev/null
+++ b/bashrc/.bash_profile
@@ -0,0 +1,9 @@
+# .bash_profile
+
+# Get the aliases and functions
+[ -f $HOME/.bashrc ] && . $HOME/.bashrc
+
+# Start X11 automatically on TTY1 login
+if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
+ exec startx
+fi \ No newline at end of file
diff --git a/i3/.config/i3/config b/i3/.config/i3/config
index d19c3d3..6d1ded8 100644
--- a/i3/.config/i3/config
+++ b/i3/.config/i3/config
@@ -21,22 +21,25 @@ font pango:Hasklug Nerd Font Mono 12
# Start XDG autostart .desktop files using dex. See also
# https://wiki.archlinux.org/index.php/XDG_Autostart
-exec --no-startup-id dex --autostart --environment i3
+#exec --no-startup-id dex --autostart --environment i3
exec --no-startup-id pulseaudio --start &
-exec_always --no-startup-id feh --bg-scale ~/.config/background/bg1.jpg
+exec --no-startup-id /usr/bin/openrazer-daemon
+exec --no-startup-id brightnessctl set 40%
+exec_always --no-startup-id feh --bg-scale ~/.config/backgrounds/bg3.jpg
exec_always --no-startup-id ~/.config/polybar/launch.sh
-exec_always --no-startup-id "picom --config ~/.config/picom/picom.conf"
+#exec_always --no-startup-id "picom --config ~/.config/picom/picom.conf"
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
# they are included here as an example. Modify as you see fit.
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
-exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
+exec --no-startup-id xss-lock -- physlock -m -d
+exec --no-startup-id ~/.config/i3/scripts/power_timer.sh
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
-exec --no-startup-id nm-applet
+#exec --no-startup-id nm-applet
# Autofocus on hover, also when switching workspaces
focus_follows_mouse yes
@@ -102,6 +105,9 @@ bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
+bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl s +5%
+bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl s 5%-
+
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
@@ -217,7 +223,36 @@ bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
-bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
+#bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
+
+
+
+
+# Define the menu labels
+set $sysmenu System: (l)ock, (e)xit i3, (s)uspend, (r)eboot, (Shift+s)hutdown
+
+mode "$sysmenu" {
+ # Lock the screen
+ bindsym l exec --no-startup-id physlock -p "Authentication required" -m -d, mode "default"
+
+ # THE CHOICE YOU WANTED: Just exit i3 (Logout)
+ bindsym e exec --no-startup-id i3-msg exit, mode "default"
+
+ # Power states (using elogind)
+ bindsym s exec --no-startup-id loginctl suspend, mode "default"
+ bindsym r exec --no-startup-id loginctl reboot, mode "default"
+ bindsym Shift+s exec --no-startup-id loginctl poweroff, mode "default"
+
+ # Return to default mode (Cancel)
+ bindsym Return mode "default"
+ bindsym Escape mode "default"
+}
+
+# Bind it to a key - replacing the default exit behavior
+bindsym $mod+Shift+e mode "$sysmenu"
+
+
+
# resize window (you can also use the mouse for that)
mode "resize" {
diff --git a/i3/.config/i3/scripts/power_timer.sh b/i3/.config/i3/scripts/power_timer.sh
new file mode 100755
index 0000000..bb1166a
--- /dev/null
+++ b/i3/.config/i3/scripts/power_timer.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+# Define your timeouts (in seconds)
+AC_LOCK=600 # 10 minutes on AC
+AC_DPMS=610
+
+BATT_LOCK=120 # 2 minutes on Battery
+BATT_DPMS=130
+
+# Check if AC adapter is online
+AC_ONLINE= $(cat /sys/class/power_supply/A*/online 2>/dev/null)
+
+if [ "$AC_ONLINE" = "1" ]; then
+ xset s $AC_LOCK
+ xset dpms $AC_DPMS $AC_DPMS $AC_DPMS
+else
+ xset s $BATT_LOCK
+ xset dpms $BATT_DPMS $BATT_DPMS $BATT_DPMS
+fi
diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json
index 48dfe4f..c64e4e9 100644
--- a/nvim/.config/nvim/lazy-lock.json
+++ b/nvim/.config/nvim/lazy-lock.json
@@ -6,7 +6,7 @@
"cmp-path": { "branch": "main", "commit": "c642487086dbd9a93160e1679a1327be111cbc25" },
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
"friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" },
- "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
+ "lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
"lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "6c4830e37743b060d13c9269394176aea6a0fbc8" },
"mason.nvim": { "branch": "main", "commit": "44d1e90e1f66e077268191e3ee9d2ac97cc18e65" },
diff --git a/nvim/.config/nvim/lua/plugins/treesitter.lua b/nvim/.config/nvim/lua/plugins/treesitter.lua
index e430504..cc4d1fd 100644
--- a/nvim/.config/nvim/lua/plugins/treesitter.lua
+++ b/nvim/.config/nvim/lua/plugins/treesitter.lua
@@ -1,35 +1,31 @@
return {
- 'nvim-treesitter/nvim-treesitter',
- branch = 'master', -- Important: Use the 'main' branch
- build = ':TSUpdate',
- config = function()
-
- -- Configure nvim-treesitter with ensure_installed
- require("nvim-treesitter.configs").setup({
- ensure_installed = {
- 'lua',
- 'vim',
- 'python',
- 'javascript',
- 'typescript',
- 'go',
- 'yaml',
- 'bash',
- 'html',
- 'css',
- 'markdown',
- 'markdown_inline',
- 'sql',
- },
- highlight = {
- enable = true,
- },
- indent = {
- enable = true,
- },
-})
-
-
-
- end,
+ 'nvim-treesitter/nvim-treesitter',
+ branch = 'master', -- Important: Use the 'main' branch
+ build = ':TSUpdate',
+ config = function()
+ -- Configure nvim-treesitter with ensure_installed
+ require("nvim-treesitter.configs").setup({
+ ensure_installed = {
+ 'lua',
+ 'vim',
+ 'python',
+ 'javascript',
+ 'typescript',
+ 'go',
+ 'yaml',
+ 'bash',
+ 'html',
+ 'css',
+ 'markdown',
+ 'markdown_inline',
+ 'sql',
+ },
+ highlight = {
+ enable = true,
+ },
+ indent = {
+ enable = true,
+ },
+ })
+ end,
}
diff --git a/polybar/.config/polybar/config.ini b/polybar/.config/polybar/config.ini
index b6d3693..5c35631 100644
--- a/polybar/.config/polybar/config.ini
+++ b/polybar/.config/polybar/config.ini
@@ -34,6 +34,8 @@ screenchange-reload = true
pseudo-transparency = true
[bar/main]
+#dpi = ${xrdb:Xft.dpi:96}
+dpi = 144
width = 100%
height = 30pt
@@ -65,7 +67,7 @@ module-margin = 0
modules-left = void space space date space space xwindow
modules-center = xworkspaces
-modules-right = cpu space space memory space separator space mic space space pulseaudio space separator space wlan space separator space battery space
+modules-right = cpu space space memory space separator space mic space pulseaudio space separator space wlan space separator space battery space
;modules-right = pulseaudio cpu memory wlan battery date
@@ -137,12 +139,14 @@ label-foreground = ${colors.foreground}
[module/mic]
type = custom/script
-exec = ~/.config/polybar/scripts/mic.sh
-interval = 1 # Update interval in seconds
-format-foreground = ${colors.foreground}
-format = <label>
-label = %output%
-click-left = ~/Scripts/mic.sh 1
+exec = ~/.config/polybar/scripts/mic-status.sh
+tail = true
+; Click to toggle mute
+click-left = pactl set-source-mute @DEFAULT_SOURCE@ toggle
+; Scroll up to increase volume
+scroll-up = pactl set-source-volume @DEFAULT_SOURCE@ +5%
+; Scroll down to decrease volume
+scroll-down = pactl set-source-volume @DEFAULT_SOURCE@ -5%
[module/pulseaudio]
type = internal/pulseaudio
diff --git a/polybar/.config/polybar/scripts/mic-status.sh b/polybar/.config/polybar/scripts/mic-status.sh
new file mode 100755
index 0000000..aae580c
--- /dev/null
+++ b/polybar/.config/polybar/scripts/mic-status.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+# Function to check the default source's mute status
+get_mic_status() {
+ # We look for the default source and check its 'Mute' field
+ STATUS=$(pactl get-source-mute @DEFAULT_SOURCE@ | awk '{print $2}')
+
+ # Convert the volume to percentage
+ mic_percentage=$(pactl get-source-volume @DEFAULT_SOURCE@ | awk -F'/' '/Volume:/ {print $2}' | xargs)
+
+ if [ "$STATUS" = "yes" ]; then
+ #echo " Muted" # Use your preferred icon/text
+ echo "󰍭 $mic_percentage"
+ else
+ echo "󰍬 $mic_percentage"
+ fi
+}
+
+# 1. Output the status immediately on startup
+get_mic_status
+
+# 2. Subscribe to 'change' events from PulseAudio
+# The '-r' ensures backslashes aren't mangled
+pactl subscribe | while read -r event; do
+ # Only refresh if the event involves a 'source' (microphone)
+ if echo "$event" | grep -q "source"; then
+ get_mic_status
+ fi
+done
diff --git a/polybar/.config/polybar/scripts/mic.sh b/polybar/.config/polybar/scripts/mic.sh
deleted file mode 100755
index 2ed3165..0000000
--- a/polybar/.config/polybar/scripts/mic.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-
-mic_source=$(pactl info | grep "Default Source:" | awk '{print $3}')
-
-if [ "$1" == "1" ]; then
- # Left mouse button clicked - toggle microphone mute status
- pactl set-source-mute "$mic_source" toggle
-fi
-
-# Get the microphone status (mute/unmute)
-mic_status=$(pactl list sources | awk -v mic_source="$mic_source" '/^Source/ {in_source=0} $0 ~ ("Name: " mic_source) {in_source=1} in_source && /Mute:/ {print $2}')
-
-mic_volume=$(pactl list sources | awk -v mic_source="$mic_source" '/^Source/ {in_source=0} $0 ~ ("Name: " mic_source) {in_source=1} in_source && /Volume:/ {print $5}')
-
-# Convert the volume to percentage
-mic_percentage=$(awk -v volume="$mic_volume" 'BEGIN {split(volume, a, "%"); print a[1]}')
-
-# Check the microphone status and set the output accordingly
-if [ "$mic_status" == "yes" ]; then
- echo " Muted"
-else
- echo " $mic_percentage%"
-fi
diff --git a/x11/.Xresources b/x11/.Xresources
new file mode 100644
index 0000000..e4c56af
--- /dev/null
+++ b/x11/.Xresources
@@ -0,0 +1,10 @@
+Xft.dpi: 192
+
+Xft.autohint: 0
+Xft.lcdfilter: lcddefault
+Xft.hintstyle: hintslight
+Xft.hinting: 1
+Xft.antialias: 1
+Xft.rgba: rgb
+
+Xcursor.size: 48
diff --git a/x11/.xinitrc b/x11/.xinitrc
new file mode 100644
index 0000000..53ef1fb
--- /dev/null
+++ b/x11/.xinitrc
@@ -0,0 +1,2 @@
+. ~/.xprofile
+exec i3
diff --git a/x11/.xprofile b/x11/.xprofile
new file mode 100644
index 0000000..176d4ad
--- /dev/null
+++ b/x11/.xprofile
@@ -0,0 +1,14 @@
+xrdb -merge ~/.Xresources
+
+xrandr --output eDP-1 --auto
+
+#export GDK_SCALE=2
+#export GDK_DPI_SCALE=0.5
+export GDK_DPI_SCALE=1
+
+export QT_AUTO_SCREEN_SCALE_FACTOR=1
+export QT_ENABLE_HIGHDPI_SCALING=1
+
+export _JAVA_OPTIONS='-Dsun.java2d.uiScale=2'
+
+picom --backend xrender --vsync --use-damage &