initial commit
This commit is contained in:
39
home/programs/alacritty/alacritty.toml
Normal file
39
home/programs/alacritty/alacritty.toml
Normal file
@@ -0,0 +1,39 @@
|
||||
[colors.bright]
|
||||
black = "#5c5855"
|
||||
blue = "#01a0e4"
|
||||
cyan = "#b5e4f4"
|
||||
green = "#01a252"
|
||||
magenta = "#a16a94"
|
||||
red = "#db2d20"
|
||||
white = "#f7f7f7"
|
||||
yellow = "#fded02"
|
||||
|
||||
[colors.cursor]
|
||||
cursor = "#a5a2a2"
|
||||
text = "#090300"
|
||||
|
||||
[colors.normal]
|
||||
black = "#090300"
|
||||
blue = "#01a0e4"
|
||||
cyan = "#b5e4f4"
|
||||
green = "#01a252"
|
||||
magenta = "#a16a94"
|
||||
red = "#db2d20"
|
||||
white = "#a5a2a2"
|
||||
yellow = "#fded02"
|
||||
|
||||
[colors.primary]
|
||||
background = "#0d0d0d"
|
||||
foreground = "#a5a2a2"
|
||||
|
||||
[font]
|
||||
size = 7.0
|
||||
[font.normal]
|
||||
family = "monospace"
|
||||
style = "Regular"
|
||||
|
||||
[terminal]
|
||||
|
||||
[terminal.shell]
|
||||
program = "/etc/profiles/per-user/synchronous/bin/zsh"
|
||||
|
||||
11
home/programs/alacritty/default.nix
Normal file
11
home/programs/alacritty/default.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
builtins,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.alacritty.settings = lib.trivial.importTOML ./alacritty.toml;
|
||||
}
|
||||
33
home/programs/bspwm/bspwmrc
Normal file
33
home/programs/bspwm/bspwmrc
Normal file
@@ -0,0 +1,33 @@
|
||||
#! /bin/sh
|
||||
# ██████╗ ███████╗██████╗ ██╗ ██╗███╗ ███?
|
||||
# ██╔══██╗██╔════╝██╔══██╗██║ ██║████╗ ████║
|
||||
# ██████╔╝███████╗██████╔╝██║ █╗ ██║██╔████╔██║
|
||||
# ██╔══██╗╚════██║██╔═══╝ ██║███╗██║██║╚██╔╝██║
|
||||
# ██████╔╝███████║██║ ╚███╔███╔╝██║ ╚═╝ ██║
|
||||
# ╚═════╝ ╚══════╝╚═╝ ╚══╝╚══╝ ╚═╝ ╚═╝
|
||||
|
||||
pgrep -x sxhkd > /dev/null || sxhkd &
|
||||
|
||||
xrandr --output eDP-1 --mode 1920x1080 --primary
|
||||
# xrandr --output HDMI-1 --mode 1920x1080 --same-as eDP-1 --scale 1x1
|
||||
|
||||
bspc monitor eDP-1 -d 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
||||
|
||||
bspc config border_width 2
|
||||
bspc config window_gap 2
|
||||
|
||||
bspc config split_ratio 0.50
|
||||
bspc config borderless_monocle true
|
||||
bspc config gapless_monocle true
|
||||
# bspc config merge_overlapping_monitors true
|
||||
bspc rule -a Zathura state=tiled
|
||||
bspc rule -a "Zotero" -o desktop="19" focus=off
|
||||
|
||||
bspc rule -a Gimp desktop='^8' state=floating follow=on
|
||||
bspc rule -a Chromium desktop='^2'
|
||||
bspc rule -a mplayer2 state=floating
|
||||
bspc rule -a Kupfer.py focus=on
|
||||
bspc rule -a Screenkey manage=off
|
||||
nitrogen --restore &
|
||||
# polybar mybar &
|
||||
# picom --daemon 2> /dev/null &
|
||||
17
home/programs/bspwm/default.nix
Normal file
17
home/programs/bspwm/default.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
xsession.windowManager.bspwm = {
|
||||
enable = true;
|
||||
extraConfig = builtins.readFile ./bspwmrc;
|
||||
};
|
||||
|
||||
# home.file.".config/bspwm/bspwmrc".source = ./bspwmrc;
|
||||
|
||||
# home.activation.sourceMyScript = lib.mkAfter ''
|
||||
# source "${config.xdg.configHome}/bspwm/bspwmrc"
|
||||
# '';
|
||||
}
|
||||
235
home/programs/cmus/autosave
Normal file
235
home/programs/cmus/autosave
Normal file
@@ -0,0 +1,235 @@
|
||||
set aaa_mode=all
|
||||
set altformat_current=%y
|
||||
set altformat_playlist=%d
|
||||
set altformat_title=cmus
|
||||
set altformat_trackwin= %f%= %d
|
||||
set auto_expand_albums_follow=false
|
||||
set auto_expand_albums_search=false
|
||||
set auto_expand_albums_selcur=false
|
||||
set auto_hide_playlists_panel=false
|
||||
set auto_reshuffle=true
|
||||
set block_key_paste=true
|
||||
set buffer_seconds=10
|
||||
set color_cmdline_attr=default
|
||||
set color_cmdline_bg=default
|
||||
set color_cmdline_fg=default
|
||||
set color_cur_sel_attr=default
|
||||
set color_error=lightred
|
||||
set color_info=lightyellow
|
||||
set color_separator=black
|
||||
set color_statusline_attr=default
|
||||
set color_statusline_bg=default
|
||||
set color_statusline_fg=blue
|
||||
set color_titleline_attr=default
|
||||
set color_titleline_bg=default
|
||||
set color_titleline_fg=blue
|
||||
set color_trackwin_album_attr=bold
|
||||
set color_trackwin_album_bg=default
|
||||
set color_trackwin_album_fg=default
|
||||
set color_win_attr=default
|
||||
set color_win_bg=default
|
||||
set color_win_cur=blue
|
||||
set color_win_cur_attr=default
|
||||
set color_win_cur_sel_attr=default
|
||||
set color_win_cur_sel_bg=darkgray
|
||||
set color_win_cur_sel_fg=default
|
||||
set color_win_dir=blue
|
||||
set color_win_fg=default
|
||||
set color_win_inactive_cur_sel_attr=default
|
||||
set color_win_inactive_cur_sel_bg=default
|
||||
set color_win_inactive_cur_sel_fg=blue
|
||||
set color_win_inactive_sel_attr=default
|
||||
set color_win_inactive_sel_bg=black
|
||||
set color_win_inactive_sel_fg=default
|
||||
set color_win_sel_attr=default
|
||||
set color_win_sel_bg=darkgray
|
||||
set color_win_sel_fg=default
|
||||
set color_win_title_attr=default
|
||||
set color_win_title_bg=default
|
||||
set color_win_title_fg=magenta
|
||||
set confirm_run=true
|
||||
set continue=true
|
||||
set continue_album=true
|
||||
set device=/dev/cdrom
|
||||
set display_artist_sort_name=false
|
||||
set dsp.alsa.device=default
|
||||
set dsp.ao.buffer_size=16384
|
||||
set dsp.ao.device_interface=
|
||||
set dsp.ao.driver=
|
||||
set dsp.ao.wav_counter=1
|
||||
set dsp.ao.wav_dir=/home/synchronous
|
||||
set dsp.jack.resampling_quality=2
|
||||
set dsp.jack.server_name=
|
||||
set dsp.oss.device=
|
||||
set follow=false
|
||||
set format_clipped_text=…
|
||||
set format_current=
|
||||
set format_playlist= . %a - %t
|
||||
set format_playlist_va= . %a - %t
|
||||
set format_statusline= %{status} %t%= %1{follow} %{?show_playback_position?%{position} %{?duration?/ %{duration} }?%{?duration?%{duration} }}
|
||||
set format_title=cmus
|
||||
set format_trackwin= . %t%=
|
||||
set format_trackwin_album=%l
|
||||
set format_trackwin_va= . %t%= %y
|
||||
set format_treewin= %l
|
||||
set format_treewin_artist= %a
|
||||
set icecast_default_charset=ISO-8859-1
|
||||
set id3_default_charset=ISO-8859-1
|
||||
set ignore_duplicates=false
|
||||
set input.aac.priority=50
|
||||
set input.cdio.priority=50
|
||||
set input.cue.priority=50
|
||||
set input.ffmpeg.priority=30
|
||||
set input.flac.priority=50
|
||||
set input.mad.priority=55
|
||||
set input.modplug.priority=50
|
||||
set input.mp4.priority=50
|
||||
set input.mpc.priority=50
|
||||
set input.vorbis.priority=50
|
||||
set input.wav.priority=50
|
||||
set input.wavpack.priority=50
|
||||
set lib_add_filter=
|
||||
set lib_sort=artist title
|
||||
set mixer.alsa.channel=Master
|
||||
set mixer.alsa.device=default
|
||||
set mixer.oss.channel=PCM
|
||||
set mixer.oss.device=
|
||||
set mixer.pulse.restore_volume=1
|
||||
set mouse=false
|
||||
set mpris=true
|
||||
set output_plugin=alsa
|
||||
set passwd=
|
||||
set pause_on_output_change=false
|
||||
set pl_env_vars=
|
||||
set pl_sort=
|
||||
set play_library=true
|
||||
set play_sorted=false
|
||||
set repeat=true
|
||||
set repeat_current=false
|
||||
set replaygain=disabled
|
||||
set replaygain_limit=true
|
||||
set replaygain_preamp=0.000000
|
||||
set resume=false
|
||||
set rewind_offset=5
|
||||
set scroll_offset=2
|
||||
set set_term_title=false
|
||||
set show_all_tracks=true
|
||||
set show_current_bitrate=false
|
||||
set show_hidden=false
|
||||
set show_playback_position=true
|
||||
set show_remaining_time=true
|
||||
set shuffle=albums
|
||||
set skip_track_info=false
|
||||
set smart_artist_sort=true
|
||||
set softvol=false
|
||||
set softvol_state=0 0
|
||||
set sort_albums_by_name=false
|
||||
set start_view=tree
|
||||
set status_display_program=
|
||||
set stop_after_queue=false
|
||||
set time_show_leading_zero=true
|
||||
set tree_width_max=0
|
||||
set tree_width_percent=33
|
||||
set wrap_search=true
|
||||
bind browser backspace browser-up
|
||||
bind browser i toggle show_hidden
|
||||
bind browser space win-activate
|
||||
bind browser u win-update
|
||||
bind common ! push shell
|
||||
bind common + vol +10%
|
||||
bind common , seek -1m
|
||||
bind common - vol -10%
|
||||
bind common . seek +1m
|
||||
bind common / search-start
|
||||
bind common 1 view tree
|
||||
bind common 2 view sorted
|
||||
bind common 3 view playlist
|
||||
bind common 4 view queue
|
||||
bind common 5 view browser
|
||||
bind common 6 view filters
|
||||
bind common 7 view settings
|
||||
bind common < seek -30
|
||||
bind common = vol +10%
|
||||
bind common > seek +30
|
||||
bind common ? search-b-start
|
||||
bind common B player-next-album
|
||||
bind common C toggle continue
|
||||
bind common D win-remove
|
||||
bind common E win-add-Q
|
||||
bind common F push filter
|
||||
bind common G win-bottom
|
||||
bind common I echo {}
|
||||
bind common L win-sel-cur
|
||||
bind common M toggle play_library
|
||||
bind common N search-prev
|
||||
bind common P win-mv-before
|
||||
bind common U win-update-cache
|
||||
bind common Z player-prev-album
|
||||
bind common [ vol +1% +0
|
||||
bind common ] vol +0 +1%
|
||||
bind common ^B win-page-up
|
||||
bind common ^C echo Type :quit<enter> to exit cmus.
|
||||
bind common ^D win-half-page-down
|
||||
bind common ^E win-scroll-down
|
||||
bind common ^F win-page-down
|
||||
bind common ^L refresh
|
||||
bind common ^R toggle repeat_current
|
||||
bind common ^U win-half-page-up
|
||||
bind common ^Y win-scroll-up
|
||||
bind common a win-add-l
|
||||
bind common b player-next
|
||||
bind common c player-pause
|
||||
bind common d run /home/zman/.config/cmus/cover-viewer
|
||||
bind common delete win-remove
|
||||
bind common down win-down
|
||||
bind common e win-add-q
|
||||
bind common end win-bottom
|
||||
bind common enter win-activate
|
||||
bind common f toggle follow
|
||||
bind common g win-top
|
||||
bind common h seek -5
|
||||
bind common home win-top
|
||||
bind common i invert
|
||||
bind common j win-down
|
||||
bind common k win-up
|
||||
bind common l seek +5
|
||||
bind common left seek -5
|
||||
bind common m toggle aaa_mode
|
||||
bind common mlb_click_bar player-pause
|
||||
bind common mlb_click_selected win-activate
|
||||
bind common mouse_scroll_down win-down
|
||||
bind common mouse_scroll_down_bar seek -5
|
||||
bind common mouse_scroll_down_title right-view
|
||||
bind common mouse_scroll_up win-up
|
||||
bind common mouse_scroll_up_bar seek +5
|
||||
bind common mouse_scroll_up_title left-view
|
||||
bind common n search-next
|
||||
bind common o toggle play_sorted
|
||||
bind common p win-mv-after
|
||||
bind common page_down win-page-down
|
||||
bind common page_up win-page-up
|
||||
bind common q quit -i
|
||||
bind common r toggle repeat
|
||||
bind common right seek +5
|
||||
bind common s toggle shuffle
|
||||
bind common space win-toggle
|
||||
bind common t toggle show_remaining_time
|
||||
bind common tab win-next
|
||||
bind common u update-cache
|
||||
bind common up win-up
|
||||
bind common v player-stop
|
||||
bind common x player-play
|
||||
bind common y win-add-p
|
||||
bind common z player-prev
|
||||
bind common { vol -1% -0
|
||||
bind common } vol -0 -1%
|
||||
bind library A set lib_sort=album discnumber tracknumber title filename
|
||||
bind library a set lib_sort=artist album discnumber tracknumber title filename
|
||||
fset 90s=date>=1990&date<2000
|
||||
fset classical=genre="Classical"
|
||||
fset missing-tag=!stream&(artist=""|album=""|title=""|tracknumber=-1|date=-1)
|
||||
fset mp3=filename="*.mp3"
|
||||
fset ogg=filename="*.ogg"
|
||||
fset ogg-or-mp3=ogg|mp3
|
||||
fset unheard=play_count=0
|
||||
factivate
|
||||
8
home/programs/cmus/default.nix
Normal file
8
home/programs/cmus/default.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
home.file.".config/cmus/rc".source = ./rc;
|
||||
home.file.".config/cmus/autosave".source = ./autosave;
|
||||
}
|
||||
34
home/programs/cmus/rc
Normal file
34
home/programs/cmus/rc
Normal file
@@ -0,0 +1,34 @@
|
||||
set output_plugin=alsa
|
||||
set dsp.alsa.device=default
|
||||
set mixer.alsa.device=default
|
||||
set mixer.alsa.channel=Master
|
||||
|
||||
# set altformat_current= %F%= %y
|
||||
# set altformat_playlist= %y
|
||||
set altformat_title=cmus
|
||||
# set altformat_trackwin= %f%= %y
|
||||
set format_current=
|
||||
# set format_playlist= %a - %l
|
||||
set format_title=cmus
|
||||
# set format_trackwin= . %t%= %y
|
||||
# set format_trackwin_va= . %t%= %y
|
||||
set confirm_run=true
|
||||
set aaa_mode=all
|
||||
set buffer_seconds=10
|
||||
set show_hidden=false
|
||||
set format_statusline= %{status} %t%= %1{follow} %{?show_playback_position?%{position} %{?duration?/ %{duration} }?%{?duration?%{duration} }}
|
||||
set format_title=cmus
|
||||
# set altformat_title=%f
|
||||
# set altformat_trackwin= %f
|
||||
set color_statusline_fg=blue
|
||||
set auto_expand_albums_selcur=false
|
||||
set auto_expand_albums_search=false
|
||||
set altformat_playlist=%d
|
||||
|
||||
set lib_sort=artist title
|
||||
set play_sorted=false
|
||||
set repeat=true
|
||||
|
||||
set format_playlist_va= . %a - %t
|
||||
set color_win_title_fg=magenta
|
||||
|
||||
7
home/programs/nitrogen/default.nix
Normal file
7
home/programs/nitrogen/default.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
home.file.".config/nitrogen/nitrogen.cfg".source = ./nitrogen.cfg;
|
||||
}
|
||||
12
home/programs/nitrogen/nitrogen.cfg
Normal file
12
home/programs/nitrogen/nitrogen.cfg
Normal file
@@ -0,0 +1,12 @@
|
||||
[geometry]
|
||||
posx=2
|
||||
posy=25
|
||||
sizex=1912
|
||||
sizey=1049
|
||||
|
||||
[nitrogen]
|
||||
view=icon
|
||||
recurse=true
|
||||
sort=alpha
|
||||
icon_caps=false
|
||||
dirs=/home/synchronous/.wallpapers;
|
||||
21
home/programs/programs.nix
Normal file
21
home/programs/programs.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
imports = [
|
||||
./alacritty/default.nix
|
||||
./zsh/default.nix
|
||||
./bspwm/default.nix
|
||||
./cmus/default.nix
|
||||
# ./nitrogen/defualt.nix
|
||||
./rofi/default.nix
|
||||
|
||||
./sxhkd/default.nix
|
||||
./bspwm/default.nix
|
||||
|
||||
./xbindkeys/default.nix
|
||||
];
|
||||
}
|
||||
25
home/programs/rofi/config.rasi
Normal file
25
home/programs/rofi/config.rasi
Normal file
@@ -0,0 +1,25 @@
|
||||
configuration {
|
||||
show-icons: true;
|
||||
display-drun: "";
|
||||
display-run: "";
|
||||
display-window: " ";
|
||||
display-combi: " ";
|
||||
kb-remove-char-back: "BackSpace";
|
||||
kb-remove-to-eol: "Control+Shift+e";
|
||||
kb-accept-entry: "Control+m,Return,KP_Enter";
|
||||
kb-mode-next: "Shift+Right,Control+Tab,Control+l";
|
||||
kb-mode-previous: "Shift+Left,Control+Shift+Tab,Control+h";
|
||||
kb-mode-complete: "Control+p";
|
||||
kb-row-up: "Up,Control+k,Shift+Tab,Shift+ISO_Left_Tab";
|
||||
kb-row-down: "Down,Control+j";
|
||||
timeout {
|
||||
action: "kb-cancel";
|
||||
delay: 0;
|
||||
}
|
||||
filebrowser {
|
||||
directories-first: true;
|
||||
sorting-method: "name";
|
||||
}
|
||||
}
|
||||
|
||||
@theme "./styles/main.rasi"
|
||||
18
home/programs/rofi/default.nix
Normal file
18
home/programs/rofi/default.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
# programs.rofi = {
|
||||
# enable = true;
|
||||
# configPath = "./config.rasi";
|
||||
# };
|
||||
|
||||
home.file.".config/rofi/config.rasi".source = ./config.rasi;
|
||||
|
||||
home.activation.copyRofiDir = lib.mkAfter ''
|
||||
mkdir -p ~/.config/rofi/styles
|
||||
cp -r ${./styles}/* ~/.config/rofi/styles/
|
||||
chmod -R u+w ~/.config/rofi/styles/
|
||||
'';
|
||||
}
|
||||
27
home/programs/rofi/styles/colors.rasi
Normal file
27
home/programs/rofi/styles/colors.rasi
Normal file
@@ -0,0 +1,27 @@
|
||||
configuration {
|
||||
font: "Liga SFMono Nerd Font 13";
|
||||
}
|
||||
|
||||
* {
|
||||
base00: #161616;
|
||||
base01: #262626;
|
||||
base02: #393939;
|
||||
base03: #525252;
|
||||
base04: #dde1e6;
|
||||
base05: #f2f4f8;
|
||||
base06: #ffffff;
|
||||
base07: #08bdba;
|
||||
base08: #3ddbd9;
|
||||
base09: #78a9ff;
|
||||
base0A: #ee5396;
|
||||
base0B: #33b1ff;
|
||||
base0C: #ff7eb6;
|
||||
base0D: #42be65;
|
||||
base0E: #be95ff;
|
||||
base0F: #82cfff;
|
||||
|
||||
background: @base01;
|
||||
prompt: @base00;
|
||||
text: @base04;
|
||||
select: @base00;
|
||||
}
|
||||
91
home/programs/rofi/styles/main.rasi
Normal file
91
home/programs/rofi/styles/main.rasi
Normal file
@@ -0,0 +1,91 @@
|
||||
@import "./colors.rasi"
|
||||
|
||||
configuration {
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
* {
|
||||
pink: @base0C;
|
||||
cyan: @base0F;
|
||||
green: #9ece6a;
|
||||
|
||||
accent-color: @base06;
|
||||
urgent-color: @base0A;
|
||||
|
||||
background-color: transparent;
|
||||
text-color: @text;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
window {
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
y-offset: 0px;
|
||||
|
||||
enabled: true;
|
||||
background-color: @background;
|
||||
cursor: "default";
|
||||
border: 1px;
|
||||
border-color: #565657;
|
||||
width: 700px;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
enabled: true;
|
||||
background-color: @prompt;
|
||||
padding: 10px;
|
||||
children: ["entry"];
|
||||
}
|
||||
|
||||
entry {
|
||||
enabled: true;
|
||||
padding: 0.75em 1.25em;
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 1;
|
||||
lines: 6;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
reverse: false;
|
||||
fixed-height: true;
|
||||
fixed-columns: true;
|
||||
margin: 0.5em 0 0.75em;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
prompt {
|
||||
text-color: @accent-color;
|
||||
|
||||
}
|
||||
|
||||
textbox {
|
||||
padding: 0.5em 1.5em;
|
||||
background-color: @prompt;
|
||||
}
|
||||
|
||||
element {
|
||||
enabled: true;
|
||||
margin: 0 0.25em;
|
||||
padding: 0.5em 0.75em;
|
||||
cursor: pointer;
|
||||
orientation: vertical;
|
||||
}
|
||||
|
||||
element-text {
|
||||
highlight: @green;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
font: "Liga SFMono Nerd Font 14";
|
||||
}
|
||||
|
||||
element-text selected {
|
||||
text-color: @cyan;
|
||||
}
|
||||
10
home/programs/sxhkd/default.nix
Normal file
10
home/programs/sxhkd/default.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services.sxhkd.enable = true;
|
||||
services.sxhkd.extraConfig = builtins.readFile ./sxhkdrc;
|
||||
|
||||
# home.file.".config/sxhkd/sxhkdrc".source = ./sxhkdrc;
|
||||
}
|
||||
257
home/programs/sxhkd/sxhkdrc
Normal file
257
home/programs/sxhkd/sxhkdrc
Normal file
@@ -0,0 +1,257 @@
|
||||
#
|
||||
# wm independent hotkeys
|
||||
#
|
||||
|
||||
# terminal emulator
|
||||
super + Return
|
||||
alacritty
|
||||
|
||||
# program launcher
|
||||
super + @space
|
||||
rofi -show drun
|
||||
#dmenu_run -b
|
||||
|
||||
# make sxhkd reload its configuration files:
|
||||
super + Escape
|
||||
pkill -usr1 -x sxhkd; notify-send 'sxhkd' 'Reloaded config'
|
||||
|
||||
#
|
||||
# bspwm hotkeys
|
||||
#
|
||||
|
||||
# quit/restart bspwm
|
||||
super + alt + {q,r}
|
||||
bspc {quit,wm -r}
|
||||
|
||||
# close and kill
|
||||
super + {_,shift + }w
|
||||
bspc node -{c,k}
|
||||
|
||||
# alternate between the tiled and monocle layout
|
||||
#super + m
|
||||
# bspc desktop -l next
|
||||
|
||||
# send the newest marked node to the newest preselected node super + y
|
||||
# bspc node newest.marked.local -n newest.!automatic.local
|
||||
|
||||
# swap the current node and the biggest window
|
||||
# super + g
|
||||
# bspc node -s biggest.window
|
||||
super + g
|
||||
librewolf www.google.com
|
||||
|
||||
super + shift + g
|
||||
librewolf --new-window "www.google.com"
|
||||
|
||||
super + z
|
||||
zotero
|
||||
|
||||
#
|
||||
# state/flags
|
||||
#
|
||||
|
||||
# set the window state
|
||||
# t -> tiled
|
||||
# shift + t -> smol tile
|
||||
# s -> floating
|
||||
# a -> fullscreen
|
||||
super + {t,shift + t,s,a}
|
||||
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
|
||||
|
||||
# set the node flags (commented out because I never use this >_>)
|
||||
# super + ctrl + {m,x,y,z}
|
||||
# bspc node -g {marked,locked,sticky,private}
|
||||
|
||||
#
|
||||
# focus/swap
|
||||
#
|
||||
|
||||
# focus the node in the given direction
|
||||
super + {_,shift + }{j,k,i,l}
|
||||
bspc node -{f,s} {west,south,north,east}
|
||||
|
||||
# focus the node for the given path jump
|
||||
# super + {p,b,comma,period}
|
||||
# bspc node -f @{parent,brother,first,second}
|
||||
|
||||
# focus the next/previous window in the current desktop
|
||||
super + {_,shift + }c
|
||||
bspc node -f {next,prev}.local.!hidden.window
|
||||
|
||||
# focus the next/previous desktop in the current monitor
|
||||
|
||||
# focus the last node/desktop
|
||||
super + {grave,Tab}
|
||||
bspc {node,desktop} -f last
|
||||
|
||||
# focus the older or newer node in the focus history
|
||||
#super + {o,i}
|
||||
# bspc wm -h off; \
|
||||
# bspc node {older,newer} -f; \
|
||||
# bspc wm -h on
|
||||
|
||||
# focus or send to the given desktop
|
||||
super + {_,shift + }{1-9,0}
|
||||
bspc {desktop -f,node -d} '^{1-9,10}'
|
||||
|
||||
super + alt + {_,shift + }{1,2,3,4,5,6,7,8,9,0}
|
||||
bspc {desktop -f, node -d} '{11,12,13,14,15,16,17,18,19,20}'
|
||||
|
||||
# swap between desktops
|
||||
|
||||
XF86WakeUp + super; {1,2,3,4,5,6,7,8,9,0}
|
||||
sh /home/synchronous/.scripts/bspwm/swap-desktop.sh '{1,2,3,4,5,6,7,8,9,10}'
|
||||
|
||||
XF86WakeUp + super + alt; {1,2,3,4,5,6,7,8,9,0}
|
||||
sh /home/synchronous/.scripts/bspwm/swap-desktop.sh '{11,12,13,14,15,16,17,18,19,20}'
|
||||
|
||||
|
||||
# preselect
|
||||
#
|
||||
|
||||
# jake thinks preselecting is not very useful, gg
|
||||
|
||||
# preselect the direction
|
||||
# super + ctrl + {j,k,i,l}
|
||||
# bspc node -p {west,south,north,east}
|
||||
|
||||
# preselect the ratio
|
||||
#super + ctrl + {1-9}
|
||||
# bspc node -o 0.{1-9}
|
||||
|
||||
# cancel the preselection for the focused node
|
||||
# super + ctrl + space
|
||||
# bspc node -p cancel
|
||||
|
||||
# cancel the preselection for the focused desktop
|
||||
#super + ctrl + shift + space
|
||||
# bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
|
||||
|
||||
#
|
||||
# move/resize
|
||||
#
|
||||
|
||||
# expand a window by moving one of its side outward
|
||||
alt + {Left,Down,Up,Right}
|
||||
bspc node -z {left -40 0,bottom 0 40,top 0 -40,right 40 0}
|
||||
|
||||
# contract a window by moving one of its side inward
|
||||
alt + shift + {Left,Down,Up,Right}
|
||||
bspc node -z {right -40 0,top 0 40,bottom 0 -40,left 40 0}
|
||||
|
||||
alt + shift + w
|
||||
rfkill unblock all | iwctl station wlan0 scan | iwctl station wlan0 get-networks
|
||||
|
||||
# move a floating window
|
||||
alt + {w,s,a,d}
|
||||
bspc node -v {-40 0,0 40,0 -40,40 0}
|
||||
|
||||
# Alt tab window shifter
|
||||
alt + Tab
|
||||
bspc node -f last
|
||||
|
||||
# start firefox
|
||||
super + {f}
|
||||
librewolf
|
||||
|
||||
super + {shift} + {f}
|
||||
librewolf --private-window
|
||||
|
||||
super + {Left,Right}
|
||||
bspc desktop -f {prev,next}
|
||||
|
||||
ctrl + super + {Left,Right}
|
||||
sh /home/synchronous/.scripts/bspwm/fast-shift.sh {left,right}
|
||||
|
||||
super + {shift} + {d}
|
||||
pkill -f discord
|
||||
|
||||
ctrl + super + bracket{left,right}
|
||||
sh /home/synchronous/.scripts/bspwm/fast-shift.sh {left,right}
|
||||
|
||||
|
||||
super + bracket{left,right}
|
||||
bspc desktop -f {prev,next}.local
|
||||
|
||||
|
||||
# super + {o}
|
||||
# obsidian
|
||||
|
||||
# alacritty -e nvim /home/synchronous/Documents/Obsidian/Journal/Daily.md -c "execute 'normal G' | Goyo | autocmd VimResized * call GoyoWrapper()"
|
||||
# open my notes file in nvim w/ a new alacritty window, then jump to end of file
|
||||
super + {o}
|
||||
sh /home/synchronous/.scripts/vimwiki/open_daily.sh
|
||||
|
||||
# open my notes without goyo and with nvimteee
|
||||
super + {shift} + {o}
|
||||
alacritty -e nvim /home/synchronous/journal/Daily.md -c "execute 'normal G' | NvimTreeOpen /home/synchronous/journal"
|
||||
|
||||
# search my notes using rofi and open the right one
|
||||
super + {ctrl} + {o}
|
||||
sh /home/synchronous/.scripts/vimwiki/search_notes.sh
|
||||
|
||||
super + {ctrl} + {p}
|
||||
sh /home/synchronous/.scripts/papers/paper-search-cached.sh
|
||||
|
||||
super + {ctrl} + {l}
|
||||
sh /home/synchronous/.scripts/papers/paper-search.sh
|
||||
|
||||
#super + {ctrl} + {l}
|
||||
# sh /home/synchronous/.scripts/document-scripts/document-search-fast.sh
|
||||
|
||||
super + {ctrl} + {k}
|
||||
sh /home/synchronous/.scripts/vimwiki/search_people.sh
|
||||
|
||||
# search for current semester area, then open terminal wherever it is
|
||||
super + {ctrl} + {c}
|
||||
find /home/synchronous/current-semester -follow -maxdepth 1 | cut -c36- | sed '/^[[:space:]]*$/d' | rofi -dmenu | read csem && alacritty --working-directory "/home/synchronous/current-semester/$csem";
|
||||
|
||||
super + {alt} + {c}
|
||||
find /home/synchronous/current-semester -follow -maxdepth 1 | cut -c36- | sed '/^[[:space:]]*$/d' | rofi -dmenu | read rsem; yq ".url" "/home/synchronous/current-semester/$rsem/info.yaml" | xargs librewolf
|
||||
|
||||
super + {p}
|
||||
sh /home/synchronous/.scripts/vimwiki/open_todo.sh
|
||||
|
||||
super + {m}
|
||||
sh /home/synchronous/.scripts/vimwiki/open-learning.sh
|
||||
|
||||
# super + {b}
|
||||
# sh /home/synchronous/.budgeting/open_budget.sh
|
||||
|
||||
|
||||
# nnn
|
||||
super + {n}
|
||||
sh /home/synchronous/.scripts/nnn/launch.sh
|
||||
|
||||
# nnn + journal
|
||||
super + {ctrl} + {n}
|
||||
sh /home/synchronous/.scripts/nnn/launch-journal.sh
|
||||
|
||||
# screenshot stuff
|
||||
Print
|
||||
flameshot full -c
|
||||
|
||||
super + shift + s
|
||||
flameshot gui
|
||||
|
||||
super + shift + {d,a}
|
||||
bspc node @/ -C {forward,backward}
|
||||
|
||||
# audio
|
||||
# XF86AudioRaiseVolume
|
||||
# pactl set-sink-volume @DEFAULT_SINK@ +1000
|
||||
|
||||
# XF86AudioLowerVolume
|
||||
# pactl set-sink-volume @DEFAULT_SINK@ -1000
|
||||
|
||||
# XF86AudioMute
|
||||
# pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||
|
||||
# XF86AudioMicMute
|
||||
# pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||
|
||||
# XF86MonBrightnessUp
|
||||
# brightnessctl set 20+
|
||||
|
||||
# XF86MonBrightnessDown
|
||||
# brightnessctl set 20-
|
||||
7
home/programs/xbindkeys/default.nix
Normal file
7
home/programs/xbindkeys/default.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
home.file.".xbindkeysrc".source = ./xbindkeysrc;
|
||||
}
|
||||
70
home/programs/xbindkeys/xbindkeysrc
Normal file
70
home/programs/xbindkeys/xbindkeysrc
Normal file
@@ -0,0 +1,70 @@
|
||||
###########################
|
||||
# xbindkeys configuration #
|
||||
###########################
|
||||
#
|
||||
"pactl set-sink-volume @DEFAULT_SINK@ +1000"
|
||||
XF86AudioRaiseVolume
|
||||
|
||||
"pactl set-sink-volume @DEFAULT_SINK@ -1000"
|
||||
XF86AudioLowerVolume
|
||||
|
||||
"pactl set-sink-mute @DEFAULT_SINK@ toggle"
|
||||
XF86AudioMute
|
||||
|
||||
"pactl set-source-mute @DEFAULT_SOURCE@ toggle"
|
||||
XF86AudioMicMute
|
||||
|
||||
"brightnessctl set 20+"
|
||||
XF86MonBrightnessUp
|
||||
|
||||
"brightnessctl set 20-"
|
||||
XF86MonBrightnessDown
|
||||
|
||||
"xlock -mode random -duration 9999999999999 -modelist 'rain roll ico lissie julia euler2d daisy bubble bug bouboule ant penrose pyro pyro2 qix scooter spiral star'"
|
||||
Control+Alt + Delete
|
||||
|
||||
# Notes that I don't want to delete ._. =>
|
||||
# To specify a key, you can use 'xbindkeys --key' or
|
||||
# 'xbindkeys --multikey' and put one of the two lines in this file.
|
||||
#
|
||||
# The format of a command line is:
|
||||
# "command to start"
|
||||
# associated key
|
||||
#
|
||||
# A list of keys is in /usr/include/X11/keysym.h and in
|
||||
# /usr/include/X11/keysymdef.h
|
||||
# The XK_ is not needed.
|
||||
#
|
||||
# List of modifier:
|
||||
# Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock),
|
||||
# Mod3 (CapsLock), Mod4, Mod5 (Scroll).
|
||||
|
||||
# The release modifier is not a standard X modifier, but you can
|
||||
# use it if you want to catch release events instead of press events
|
||||
|
||||
# By defaults, xbindkeys does not pay attention with the modifiers
|
||||
# NumLock, CapsLock and ScrollLock.
|
||||
# Uncomment the lines above if you want to pay attention to them.
|
||||
|
||||
#keystate_numlock = enable
|
||||
#keystate_capslock = enable
|
||||
#keystate_scrolllock= enable
|
||||
|
||||
#"xterm -geom 50x20+20+20"
|
||||
# Shift+Mod2+alt + s
|
||||
#
|
||||
## set directly keycode (here control+alt+mod2 + f with my keyboard)
|
||||
#"xterm"
|
||||
# alt + c:0x29 + m:4 + mod2
|
||||
#
|
||||
## Control+Shift+a release event starts rxvt
|
||||
#"rxvt"
|
||||
# release+control+shift + a
|
||||
#
|
||||
## Control + mouse button 2 release event starts rxvt
|
||||
#"rxvt"
|
||||
# Control + b:2 + Release
|
||||
|
||||
##################################
|
||||
# End of xbindkeys configuration #
|
||||
##################################
|
||||
43
home/programs/zsh/default.nix
Normal file
43
home/programs/zsh/default.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
home.packages = with pkgs; [zsh-powerlevel10k meslo-lgs-nf];
|
||||
home.file.".p10k.zsh".source = ./p10k;
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
# dotDir = "$HOME/.config/zsh";
|
||||
|
||||
plugins = [
|
||||
{
|
||||
name = "zsh-powerlevel10k";
|
||||
src = "${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/";
|
||||
file = "powerlevel10k.zsh-theme";
|
||||
}
|
||||
{
|
||||
name = "powerlevel10k-config";
|
||||
src = lib.cleanSource ./p10k;
|
||||
file = "p10k.zsh";
|
||||
}
|
||||
];
|
||||
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
# theme = "af-magic";
|
||||
# theme = "powerlevel10k/powerlevel10k";
|
||||
plugins = ["git" "history-substring-search" "colored-man-pages"];
|
||||
};
|
||||
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
# zsh sheeee
|
||||
initExtraFirst = ''
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
'';
|
||||
|
||||
initExtra = builtins.readFile ./zshrc;
|
||||
};
|
||||
}
|
||||
1641
home/programs/zsh/p10k
Normal file
1641
home/programs/zsh/p10k
Normal file
File diff suppressed because it is too large
Load Diff
232
home/programs/zsh/zshrc
Normal file
232
home/programs/zsh/zshrc
Normal file
@@ -0,0 +1,232 @@
|
||||
HISTFILE=~/.histfile
|
||||
HISTSIZE=10000
|
||||
SAVEHIST=10000
|
||||
setopt nomatch
|
||||
unsetopt autocd beep extendedglob notify
|
||||
bindkey -v
|
||||
zstyle :compinstall filename '/home/synchronous/.zshrc'
|
||||
|
||||
export PATH=/home/synchronous/.local/bin:$PATH
|
||||
export PATH=/home/synchronous/.cargo/bin/:$PATH
|
||||
export NIX_PATH=/home/synchronous/nix-cfg
|
||||
|
||||
# ==== binding keys ====
|
||||
|
||||
bindkey '^ ' autosuggest-accept
|
||||
|
||||
# ==== holy fuck aliases ====
|
||||
|
||||
# make sure i get the right version of python
|
||||
alias python='python3'
|
||||
|
||||
# ez lock
|
||||
alias lock="sudo systemctl restart lightdm"
|
||||
|
||||
# restart wifi
|
||||
# alias wscan='systemctl restart iwd | iwctl station wlan0 scan | iwctl station wlan0 get-networks | rfkill unblock all && iwctl station wlan0 scan'
|
||||
# alias nw='iwctl station wlan0 scan; iwctl station wlan0 get-networks'
|
||||
# alias iwc='iwctl station wlan0 connect'
|
||||
# alias iwcn='iwctl station wlan0 connect NUwave'
|
||||
# alias wt='sudo systemctl restart iwd.service && polybar-restart'
|
||||
# alias wtr='sudo systemctl restart iwd.service && polybar-restart; sudo iw dev wlan0 set power_save off'
|
||||
# alias wtdc='iwctl station wlan0 disconnect'
|
||||
# alias wtrc='sh /home/synchronous/.scripts/networking/wtrc.sh'
|
||||
|
||||
# easy access to config files I access frequently
|
||||
# alias zshrc='nvim /home/synchronous/.zshrc'
|
||||
# alias nrc='nvim ~/.config/nvim/init.vim'
|
||||
# alias nvimrc='nvim ~/.config/nvim/init.vim'
|
||||
# alias picomrc="nvim /home/synchronous/.config/picom/picom.conf"
|
||||
|
||||
# gcalcli stuff
|
||||
# (note: gcalcli is fucking awesome, but i have a google calendar synching issue with it.
|
||||
# Google APIs are truly degenerate. I'm swtitching to vdirsyncer and khal for now.)
|
||||
# alias today='gcalcli agenda "$(date "+%b %d %Y %H:%m")" "$(date -d "$date +24 hour" "+%b %d %Y %H:%m")" --details location --color-date blue'
|
||||
# alias week='gcalcli calw --color-date blue --color-now-marker red'
|
||||
# alias weekl='gcalcli agenda "$(date "+%b %d %Y %H:%m")" "$(date -d "$date +168 hour" "+%b %d %Y %H:%m")" --details location --color-date blue'
|
||||
# alias weekc='gcalcli calw --color-date blue --color-now-marker red'
|
||||
# alias month='gcalcli calm --color-date blue --color-now-marker red'
|
||||
# alias gadd='gcalcli --calendar jakeginesin@gmail.com add --noprompt'
|
||||
# alias gaddhelp='echo "--title <title> --when <X:XX pm/am> --duration <mins>"'
|
||||
# alias gdel='gcalcli --calendar jakeginesin@gmail.com delete --color-date blue'
|
||||
# alias gdelhelp='echo "just type the name of the event"'
|
||||
|
||||
# alias today='sh /home/synchronous/.scripts/calendar/run_khal.sh'
|
||||
# alias calendar='khal interactive'
|
||||
|
||||
# pls
|
||||
alias pls='sudo'
|
||||
alias please='sudo'
|
||||
|
||||
# fuck
|
||||
alias fuck="sudo !!"
|
||||
|
||||
# neovim
|
||||
alias vi='nvim'
|
||||
alias vim='nvim'
|
||||
alias n="nvim"
|
||||
alias neovim='nvim'
|
||||
alias v='nvim'
|
||||
|
||||
# duplicate current alacritty unit
|
||||
alias dupe='setsid alacritty --working-directory "$(pwd)" > /dev/null'
|
||||
|
||||
# alias so i can copy stuff to my clipboard from my terminal
|
||||
# example:
|
||||
#$ pwd | clip
|
||||
alias clip='perl -p -e "chomp if eof" | xclip -in -sel clip'
|
||||
alias pwdc='pwd | clip | echo "directory clipped"'
|
||||
|
||||
# intellij (bad IDE i'm forced to use for CS3500 until I can fully configure my nvim setup)
|
||||
# alias intellij="snap run intellij-idea-community"
|
||||
# alias intellij-idea-community="snap run intellij-idea-community"
|
||||
# alias intellishit="snap run intellij-idea-community"
|
||||
|
||||
# dotfile alias
|
||||
# alias config='/usr/bin/git --git-dir=/home/synchronous/.cfg/ --work-tree=/home/synchronous'
|
||||
|
||||
# stuff to for local webdev;
|
||||
# alias site="cd /home/synchronous/code/jake_dark_site"
|
||||
# alias website="cd /home/synchronous/code/jake_dark_site"
|
||||
# alias jakesite="cd /home/synchronous/code/jake_dark_site"
|
||||
# alias wiki='cd /home/synchronous/Programming/jake-wiki | npm start --prefix /home/synchronous/Programming/jake-wiki'
|
||||
# alias pwiki='cd /home/synchronous/Programming/jake-wiki | git --git-dir /home/synchronous/Programming/jake-wiki/.git --work-tree /home/synchronous/Programming/jake-wiki add . | git --git-dir /home/synchronous/Programming/jake-wiki/.git --work-tree /home/synchronous/Programming/jake-wiki commit -am "pog" | git --git-dir /home/synchronous/Programming/jake-wiki/.git --work-tree /home/synchronous/Programming/jake-wiki push'
|
||||
|
||||
# Ported from windows LLL bozo
|
||||
alias cls="clear"
|
||||
|
||||
## Curl Aliases for easy info
|
||||
# note for jake: try to change this back when you go back to boston lmfao
|
||||
alias weather="curl https://wttr.in/Boston; echo"
|
||||
alias myip="curl https://ipecho.net/plain; echo"
|
||||
# alias crypto="curl https://usd.rate.sx"
|
||||
alias pq="ping google.com -c 5"
|
||||
|
||||
## Arch aliases
|
||||
# alias search="pacman -Ss"
|
||||
# alias update="sudo pacman -Syu"
|
||||
# alias install="sudo pacman -S"
|
||||
|
||||
## iwctl aliases
|
||||
# alias sl="iwctl station list"
|
||||
# alias sgn="iwctl station wlan0 scan; iwctl station wlan0 get-networks"
|
||||
# alias sc="iwctl station wlan0 connect"
|
||||
|
||||
## directory control
|
||||
alias ..="cd .."
|
||||
alias ...="cd ../.."
|
||||
alias .4="cd ../../.."
|
||||
|
||||
|
||||
# replacing ls with exa & lsd
|
||||
# hrr drr why do you use lsd AND exa?
|
||||
# because lsd has icons but exa is better with everything else. smh.
|
||||
alias ls="exa --icons --sort type"
|
||||
|
||||
alias l="exa -al --color=always --git --group-directories-first"
|
||||
alias l.="exa -a --colour=always --git -u | egrep '^\.'"
|
||||
alias l1="exa -a1h --sort=type"
|
||||
alias lll="exa -a --sort=type"
|
||||
# for whatever reason running exa -T | clip crashes whatever i paste the result into lmao
|
||||
# alias tree="exa -T"
|
||||
|
||||
# Lolcats!!
|
||||
alias neofetch="neofetch | lolcat"
|
||||
|
||||
# screenshot
|
||||
alias screenshot="flameshot"
|
||||
|
||||
# tars
|
||||
alias untar="tar -zxvf"
|
||||
alias mktar="tar -cvzf"
|
||||
|
||||
# by default, put zathura windows in new process
|
||||
# alias zathura="zathura --fork"
|
||||
alias zathura="sh /home/synchronous/.scripts/zathura/zathura_conditional.sh"
|
||||
alias exclude-zathura="pwd >> /home/synchronous/.scripts/zathura/excluded;echo 'done'"
|
||||
|
||||
alias os='vim /home/synchronous/current-semester/computer-systems/notes/os.md'
|
||||
alias asm='echo "c->asm: gcc -S [file] \nc->asm w/o fluff: gcc -S -O2 -fno-asynchronous-unwind-tables [file]\nc->executable: gcc [file] -no-pie -o [filename]"'
|
||||
alias urls='sh /home/synchronous/.scripts/info.sh'
|
||||
alias favorites='vim /home/synchronous/Programming/jake_dark_site/build/resources.md'
|
||||
alias outlook='firefoxpwa site launch 01GQJNBVPHJHYHPYNG8FGS5TX4'
|
||||
|
||||
# alias td='todo show -d -scd -sct'
|
||||
|
||||
alias polybar-restart='pkill polybar; setsid polybar mybar > /dev/null 2> /dev/null &> /dev/null'
|
||||
|
||||
# alias ytdl='alias ytdl="youtube-dl --extract-audio --audio-format mp3 --output "downloads/%(title)s.%(ext)s"'
|
||||
# alias ytdl="yt-dlp --extract-audio --audio-format mp3 --output "
|
||||
# alias ytdl="yt-dlp --extract-audio --audio-format mp3 --output '/home/synchronous/.music-not-tagged/%(title)s.%(ext)s'"
|
||||
alias ytdl="sh /home/synchronous/.scripts/music/ytdl.sh"
|
||||
alias ytdl-mp3="yt-dlp -x --audio-format mp3 --audio-quality 0 -o '/home/synchronous/music/%(title)s.%(ext)s' "
|
||||
|
||||
alias phone-mount="sh /home/synchronous/.scripts/phone-mount/mount.sh"
|
||||
alias phone-unmount="sh /home/synchronous/.scripts/phone-mount/unmount.sh"
|
||||
alias music-move="sh /home/synchronous/.scripts/music/music-move.sh"
|
||||
|
||||
alias ntpsync="sudo ntpdate pool.ntp.org"
|
||||
alias fb="cd /home/synchronous/code/tob/fb"
|
||||
alias nuid="echo 002141542"
|
||||
alias gb="sh /home/synchronous/.scripts/bluetooth/gb.sh"
|
||||
alias gbdc="bluetoothctl disconnect"
|
||||
alias sxhkdrc="vim /home/synchronous/.config/sxhkd/sxhkdrc"
|
||||
alias bspwmrc="vim /home/synchronous/.config/bspwm/bspwmrc"
|
||||
|
||||
# monitor stuff
|
||||
alias dupe-display="sh /home/synchronous/.scripts/bspwm/dupe-display.sh"
|
||||
alias undo-dupe="sh /home/synchronous/.scripts/bspwm/reset-duplicate.sh"
|
||||
|
||||
# termbin
|
||||
alias termbin="sh /home/synchronous/.scripts/termbin/tb.sh"
|
||||
alias dlpaper="python /home/synchronous/.scripts/papers/dlpaper.py"
|
||||
alias backup_home="sh /home/synchronous/.scripts/backup/backup.sh"
|
||||
|
||||
# ------------------- fzf configuration
|
||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||
export FZF_DEFAULT_COMMAND='fdfind --type f'
|
||||
export FZF_DEFAULT_OPTS="--layout=reverse --inline-info --height=80%"
|
||||
|
||||
# ------------------- Key Binding
|
||||
bindkey "\e[1~" beginning-of-line # Home
|
||||
bindkey "\e[4~" end-of-line # End
|
||||
bindkey "\e[3~" delete-char #Del
|
||||
bindkey "\e[2~" overwrite-mode # Ins
|
||||
bindkey "\e[6~" end-of-history # PageDown
|
||||
bindkey "\e[5~" beginning-of-history #PageUp
|
||||
|
||||
# -------------------- control backspace deleting previous word entirely
|
||||
bindkey '^H' backward-kill-word
|
||||
bindkey '5~' kill-word
|
||||
|
||||
# ------------------- More Widgets
|
||||
#run_ranger () {
|
||||
## echo
|
||||
# ranger --choosedir=$HOME/.rangedir < $TTY
|
||||
# LASTDIR='cat $HOME/.rangerdir'
|
||||
# cd "$LASTDIR"
|
||||
# zle reset-prompt
|
||||
#}
|
||||
#zle -N run_ranger
|
||||
|
||||
# --------------------- REMOTES CONFIG
|
||||
# source /home/synchronous/.zshrc_remote
|
||||
|
||||
|
||||
export LESS_TERMCAP_mb=$'\e[1;32m'
|
||||
export LESS_TERMCAP_md=$'\e[1;32m'
|
||||
export LESS_TERMCAP_me=$'\e[0m'
|
||||
export LESS_TERMCAP_se=$'\e[0m'
|
||||
export LESS_TERMCAP_so=$'\e[01;33m'
|
||||
export LESS_TERMCAP_ue=$'\e[0m'
|
||||
export LESS_TERMCAP_us=$'\e[1;4;31m'
|
||||
|
||||
# ------ NNN (not no not november)
|
||||
export PATH=/home/synchronous/.scripts/nnn:$PATH
|
||||
export VISUAL=wrapper.sh
|
||||
export EDITOR="$VISUAL"
|
||||
export NNN_PLUG='m:preview-tui;'
|
||||
export NNN_FIFO=/tmp/nnn.fifo
|
||||
export NNN_TERMINAL=alacritty
|
||||
|
||||
bindkey -s '^o' 'nnn -e ^M'
|
||||
Reference in New Issue
Block a user