Compare commits

...
18 Commits
Author SHA1 Message Date
JosephFerano 69af07dc49 emacs: require org? 2026-05-11 13:22:02 +07:00
JosephFerano 017c4b0b7d emacs: guard against missing gptel keys 2026-05-11 13:19:52 +07:00
JosephFerano 77b1b6f999 emacs: comment out dotenv 2026-05-11 13:14:37 +07:00
JosephFerano 5c4d83590c emacs: centaur tabs package 2026-05-11 13:10:11 +07:00
JosephFerano a949d2b57b emacs: C-x b 2026-05-11 13:07:22 +07:00
JosephFerano 45ed3a8081 script: battery-notify check if we are already on AC 2026-05-09 18:02:46 +07:00
JosephFerano eebfbdf622 fish: I don't know 2026-05-09 18:02:43 +07:00
JosephFerano 508bdeb553 qtile: Move to corners 2026-05-09 18:02:01 +07:00
JosephFerano 6511ef9860 emacs: centaur-tabs, fix some gptel stuff 2026-05-09 18:00:12 +07:00
JosephFerano a5a40d6636 emacs: Use expand-file-name, fix truncate-lines, better keybindings 2026-05-09 17:59:51 +07:00
JosephFerano 7fdcfa458c emacs: emacs style for remaining SPC keybindings, fix nano-calendar scaling, use emacs for magit 2026-04-13 10:46:10 +08:00
JosephFerano b6aec65c87 emacs: emacs style ergonomic buffer keybindings, more clean up 2026-04-12 20:49:13 +08:00
JosephFerano d4879ef719 emacs: Fix olivetti mode issue, add a manual toggle check 2026-04-11 18:37:32 +08:00
JosephFerano d199950bc3 emacs: Get rid of unused stuff, use more default or emacs style keybindings 2026-04-11 17:18:22 +08:00
JosephFerano e9a736f9c2 emacs: clojure stuff, magit functions, lsp, cider error stuff 2026-02-23 14:15:01 +07:00
JosephFerano 9cb8126a8c emacs: Fix clojure nesting 2025-11-17 09:27:33 +07:00
JosephFerano 95c69be2c6 scripts: power-profile-switch.sh 2025-11-16 15:14:39 +07:00
JosephFerano 3c6e2521b0 qtile: mod + hjkl with emacs, s-mod + s for fullscreen screenshot to clipboard 2025-11-16 15:12:53 +07:00
7 changed files with 636 additions and 886 deletions

No files matched your search

+1 -1
View File
@@ -101,7 +101,7 @@
(buffer-size) (buffer-size)
(erase-buffer) (erase-buffer)
(goto-char (point-min)) (goto-char (point-min))
(insert-image (create-image "/home/joe/.config/emacs/Emacs@256.png")) (insert-image (create-image (expand-file-name "Emacs@256.png" user-emacs-directory)))
(insert "\n\n\n") (insert "\n\n\n")
(insert "Welcome to Emacs!\n\n") (insert "Welcome to Emacs!\n\n")
;; (dashboard-insert-center "testing this thing out\n\n") ;; (dashboard-insert-center "testing this thing out\n\n")
+578 -875
View File
File diff suppressed because it is too large. Load diff
+3 -5
View File
@@ -1,6 +1,3 @@
if status is-interactive
# Commands to run in interactive sessions can go here
end
set -gx XDG_CONFIG_HOME /home/joe/.config set -gx XDG_CONFIG_HOME /home/joe/.config
set -gx XDG_DATA_HOME /home/joe/.local/share set -gx XDG_DATA_HOME /home/joe/.local/share
set -gx XDG_CACHE_HOME /home/joe/.cache set -gx XDG_CACHE_HOME /home/joe/.cache
@@ -76,12 +73,13 @@ end
fish_ssh_agent fish_ssh_agent
# The next line updates PATH for the Google Cloud SDK. # The next line updates PATH for the Google Cloud SDK.
if [ -f '/home/joe/Downloads/google-cloud-sdk/path.fish.inc' ]; . '/home/joe/Downloads/google-cloud-sdk/path.fish.inc'; end # if [ -f '/home/joe/Downloads/google-cloud-sdk/path.fish.inc' ]; . '/home/joe/Downloads/google-cloud-sdk/path.fish.inc'; end
# opam configuration # opam configuration
source /home/joe/.opam/opam-init/init.fish > /dev/null 2> /dev/null; or true # source /home/joe/.opam/opam-init/init.fish > /dev/null 2> /dev/null; or true
if test -e "/home/joe/Repositories/emsdk/emsdk_env.fish" if test -e "/home/joe/Repositories/emsdk/emsdk_env.fish"
source "/home/joe/Repositories/emsdk/emsdk_env.fish" source "/home/joe/Repositories/emsdk/emsdk_env.fish"
set -gx EMSDK_QUIET 1 set -gx EMSDK_QUIET 1
end end
alias claude="/home/joe/.claude/local/claude"
+2 -2
View File
@@ -15,7 +15,7 @@ SETUVAR WINEPREFIX:/home/joe/\x2elocal/share/wine
SETUVAR XDG_CACHE_HOME:/home/joe/\x2ecache SETUVAR XDG_CACHE_HOME:/home/joe/\x2ecache
SETUVAR XDG_CONFIG_HOME:/home/joe/\x2econfig SETUVAR XDG_CONFIG_HOME:/home/joe/\x2econfig
SETUVAR XDG_DATA_HOME:/home/joe/\x2elocal/share SETUVAR XDG_DATA_HOME:/home/joe/\x2elocal/share
SETUVAR __fish_initialized:3400 SETUVAR __fish_initialized:3800
SETUVAR _fisher_ankitsumitg_2F_docker_2D_fish_2D_completions_files:/home/joe/\x2econfig/fish/completions/docker\x2efish SETUVAR _fisher_ankitsumitg_2F_docker_2D_fish_2D_completions_files:/home/joe/\x2econfig/fish/completions/docker\x2efish
SETUVAR _fisher_plugins:ankitsumitg/docker\x2dfish\x2dcompletions SETUVAR _fisher_plugins:ankitsumitg/docker\x2dfish\x2dcompletions
SETUVAR fish_color_autosuggestion:969896 SETUVAR fish_color_autosuggestion:969896
@@ -36,7 +36,7 @@ SETUVAR fish_color_operator:00a6b2
SETUVAR fish_color_param:81a2be SETUVAR fish_color_param:81a2be
SETUVAR fish_color_quote:b5bd68 SETUVAR fish_color_quote:b5bd68
SETUVAR fish_color_redirection:8abeb7 SETUVAR fish_color_redirection:8abeb7
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack SETUVAR fish_color_search_match:white\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_status:red SETUVAR fish_color_status:red
SETUVAR fish_color_user:brgreen SETUVAR fish_color_user:brgreen
+38 -3
View File
@@ -84,16 +84,44 @@ def new_client(client):
y = client.group.screen.height - client.height - padding - 22 y = client.group.screen.height - client.height - padding - 22
client.set_position_floating(x,y) client.set_position_floating(x,y)
def move_to_corner(corner: str) -> Callable:
def _inner(qtile) -> None:
win = qtile.current_window
if win is None:
return
if not win.floating:
win.toggle_floating()
screen = qtile.current_screen
padding = 0
bar_height = 24
w = win.width
h = win.height
sw = screen.width
sh = screen.height
positions = {
"top-left": (padding, bar_height + padding),
"top-right": (sw - w - padding, bar_height + padding),
"bottom-left": (padding, sh - h - padding),
"bottom-right": (sw - w - padding, sh - h - padding),
}
x, y = positions[corner]
win.set_position_floating(x, y)
return _inner
keys = [ keys = [
# A list of available commands that can be bound to keys can be found # A list of available commands that can be bound to keys can be found
# at https://docs.qtile.org/en/latest/manual/config/lazy.html # at https://docs.qtile.org/en/latest/manual/config/lazy.html
# Switch between windows # Switch between windows
# .when(wm_class != 'kitty') # .when(wm_class != 'kitty')
# Key([mod], "h", lazy.function(move_focus, direction='left'), desc="Move focus to left"), # Key([mod], "h", lazy.function(move_focus, direction='left'), desc="Move focus to left"),
# Key([mod], "h", lazy.layout.left().when(focused=Match(wm_class=re.compile('(?![Ee]macs)'))), desc="Move focus to left"), Key([mod], "h", lazy.layout.left().when(focused=Match(wm_class=re.compile('(?![Ee]macs)'))), desc="Move focus to left"),
# Key([mod], "j", lazy.layout.down().when(focused=Match(wm_class=re.compile('(?![Ee]macs)'))), desc="Move focus to left"), # Key([mod], "j", lazy.layout.down().when(focused=Match(wm_class=re.compile('(?![Ee]macs)'))), desc="Move focus to left"),
# Key([mod], "k", lazy.layout.up().when(focused=Match(wm_class=re.compile('(?![Ee]macs)'))), desc="Move focus to left"), # Key([mod], "k", lazy.layout.up().when(focused=Match(wm_class=re.compile('(?![Ee]macs)'))), desc="Move focus to left"),
# Key([mod], "l", lazy.layout.right().when(focused=Match(wm_class=re.compile('(?![Ee]macs)'))), desc="Move focus to left"), Key([mod], "l", lazy.layout.right().when(focused=Match(wm_class=re.compile('(?![Ee]macs)'))), desc="Move focus to left"),
# Key([alt], "tab", lazy.layout.next(), desc="Move window focus to other window"), # Key([alt], "tab", lazy.layout.next(), desc="Move window focus to other window"),
Key([mod], "o", lazy.layout.normalize(), desc="Move window focus to other window"), Key([mod], "o", lazy.layout.normalize(), desc="Move window focus to other window"),
@@ -131,6 +159,7 @@ keys = [
Key([mod], "w", lazy.next_layout(), desc="Toggle between layouts"), Key([mod], "w", lazy.next_layout(), desc="Toggle between layouts"),
Key([mod, "control"], "w", lazy.function(get_current_window_info), desc="Get window info"), Key([mod, "control"], "w", lazy.function(get_current_window_info), desc="Get window info"),
Key([mod], "s", lazy.spawn("flameshot gui"), desc="Flameshot screenshot"), Key([mod], "s", lazy.spawn("flameshot gui"), desc="Flameshot screenshot"),
Key([mod, "shift"], "s", lazy.spawn("flameshot screen -n 0 -c"), desc="Flameshot screenshot screen to clipboard"),
# TODO: Figure out another binding for this # TODO: Figure out another binding for this
# Key([mod], "n", lazy.layout.normalize(), desc="Reset all window sizes"), # Key([mod], "n", lazy.layout.normalize(), desc="Reset all window sizes"),
@@ -160,19 +189,25 @@ keys = [
), ),
Key([mod], "t", lazy.window.toggle_floating(), desc="Toggle floating on the focused window"), Key([mod], "t", lazy.window.toggle_floating(), desc="Toggle floating on the focused window"),
Key([mod, "control"], "r", lazy.reload_config(), desc="Reload the config"), Key([mod, "control"], "r", lazy.reload_config(), desc="Reload the config"),
Key([mod, "shift"], "r", lazy.spawn("reload_wm.sh"), desc="Kill Unity"),
Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"), Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"),
Key([mod, alt], "space", lazy.function(toggle_language), desc="Toggle Language Layout"), Key([mod, alt], "space", lazy.function(toggle_language), desc="Toggle Language Layout"),
Key([mod], "r", lazy.spawncmd(), desc="Spawn a command using a prompt widget"), Key([mod], "r", lazy.spawncmd(), desc="Spawn a command using a prompt widget"),
Key([], "XF86AudioLowerVolume", lazy.spawn("amixer sset Master 5%-")), Key([], "XF86AudioLowerVolume", lazy.spawn("amixer sset Master 5%-")),
Key([], "XF86AudioRaiseVolume", lazy.spawn("amixer sset Master 5%+")), Key([], "XF86AudioRaiseVolume", lazy.spawn("amixer sset Master 5%+")),
Key([], "XF86Launch1", lazy.spawn("playerctl play-pause")), Key([], "XF86Launch1", lazy.spawn("playerctl play-pause")),
Key([], "XF86AudioMicMute", lazy.spawn("playerctl play-pause")),
Key([], "XF86AudioPlay", lazy.spawn("playerctl play-pause")), Key([], "XF86AudioPlay", lazy.spawn("playerctl play-pause")),
Key([], "XF86MonBrightnessDown", lazy.spawn("brightnessctl set 5%-")), Key([], "XF86MonBrightnessDown", lazy.spawn("brightnessctl set 5%-")),
Key([], "XF86MonBrightnessUp", lazy.spawn("brightnessctl set +5%")), Key([], "XF86MonBrightnessUp", lazy.spawn("brightnessctl set +5%")),
# This uses discrete values # This uses discrete values
Key([], "XF86KbdBrightnessDown", lazy.function(kbd_brightness_down)), Key([], "XF86KbdBrightnessDown", lazy.function(kbd_brightness_down)),
Key([], "XF86KbdBrightnessUp", lazy.function(kbd_brightness_up)), Key([], "XF86KbdBrightnessUp", lazy.function(kbd_brightness_up)),
Key([mod, "control", "shift", alt], "1", lazy.window.set_position_floating(5, 28), desc="Put the window in the corner"),
Key([mod, alt, "control", "shift"], "q", lazy.function(move_to_corner("top-left")), desc="Move float to top-left"),
Key([mod, alt, "control", "shift"], "w", lazy.function(move_to_corner("top-right")), desc="Move float to top-right"),
Key([mod, alt, "control", "shift"], "a", lazy.function(move_to_corner("bottom-left")), desc="Move float to bottom-left"),
Key([mod, alt, "control", "shift"], "s", lazy.function(move_to_corner("bottom-right")), desc="Move float to bottom-right"),
] ]
pape_dir = '/home/joe/Pictures/Wallpapers/' pape_dir = '/home/joe/Pictures/Wallpapers/'
+5
View File
@@ -1,6 +1,11 @@
#!/bin/bash #!/bin/bash
BATTERY_LEVEL=$(upower -i $(upower -e | grep 'BAT') | grep -E "percentage" | awk '{print $2}' | sed 's/%//') BATTERY_LEVEL=$(upower -i $(upower -e | grep 'BAT') | grep -E "percentage" | awk '{print $2}' | sed 's/%//')
AC_POWER=$(cat /sys/class/power_supply/AC0/online)
if [ $AC_POWER -eq 1 ]; then
exit
fi
if [ $BATTERY_LEVEL -le 5 ]; then if [ $BATTERY_LEVEL -le 5 ]; then
notify-send "Low Battery" "Battery level is ${BATTERY_LEVEL}%" -u critical notify-send "Low Battery" "Battery level is ${BATTERY_LEVEL}%" -u critical
exit exit
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
AC_STATE=$(cat /sys/class/power_supply/AC0/online)
if [ "$AC_STATE" -eq 1 ]; then
asusctl profile -P Balanced
else
asusctl profile -P Quiet
fi