Compare commits

..

3 Commits

19 changed files with 142 additions and 164 deletions

3
.gitignore vendored
View File

@@ -1,4 +1,3 @@
*.lock
neovim/.config/nvim/.netrwhist neovim/.config/nvim/.netrwhist
neovim/.config/nvim/plugged neovim/.config/nvim/plugged
gpg/.gnupg/** gpg/.gnupg/**
@@ -7,5 +6,3 @@ beets/.config/beets/**
!beets/.config/beets/config.yaml !beets/.config/beets/config.yaml
kitty/.config/kitty/current-theme.conf kitty/.config/kitty/current-theme.conf
kitty/.config/kitty/kitty.conf.bak kitty/.config/kitty/kitty.conf.bak
easyeffects/.config/easyeffects/db/convolverrc
easyeffects/.config/easyeffects/db/easyeffectsrc

View File

@@ -1,2 +0,0 @@
[sie][Compressor#0]
sidechainMode=1

View File

@@ -0,0 +1,21 @@
[Presets]
lastLoadedInputPreset=Improved Microphone
lastLoadedOutputPreset=AKG K361
[StreamInputs]
inputDevice=alsa_input.pci-0000_04_00.6.analog-stereo
mostUsedPresets=Improved Microphone
plugins=gate#0,compressor#0,filter#0,deesser#0,rnnoise#0,limiter#0
usedPresets=Improved Microphone:1
[StreamOutputs]
mostUsedPresets=AKG K361,Koss KPH40
outputDevice=alsa_output.pci-0000_04_00.6.analog-stereo
plugins=convolver#0
usedPresets=Koss KPH40:1,AKG K361:5
visiblePage=pluginsPage
visiblePlugin=convolver#0
[Window]
height=1055
width=960

View File

@@ -1,2 +0,0 @@
[sie][Filter#0]
frequency=80

View File

@@ -1,2 +0,0 @@
[sie][Gate#0]
attack=5

View File

@@ -1,2 +0,0 @@
[sie][Limiter#0]
threshold=-1

View File

@@ -1,14 +0,0 @@
# This file was created by fish when upgrading to version 4.3, to migrate
# the 'fish_key_bindings' variable from its old default scope (universal)
# to its new default scope (global). We recommend you delete this file
# and configure key bindings in ~/.config/fish/config.fish if needed.
# set --global fish_key_bindings fish_default_key_bindings
# Prior to version 4.3, fish shipped an event handler that runs
# `set --universal fish_key_bindings fish_default_key_bindings`
# whenever the fish_key_bindings variable is erased.
# This means that as long as any fish < 4.3 is still running on this system,
# we cannot complete the migration.
# As a workaround, erase the universal variable at every shell startup.
set --erase --universal fish_key_bindings

View File

@@ -1,38 +0,0 @@
# This file was created by fish when upgrading to version 4.3, to migrate
# theme variables from universal to global scope.
# Don't edit this file, as it will be written by the web-config tool (`fish_config`).
# To customize your theme, delete this file and see
# help interactive#syntax-highlighting
# or
# man fish-interactive | less +/^SYNTAX.HIGHLIGHTING
# for appropriate commands to add to ~/.config/fish/config.fish instead.
# See also the release notes for fish 4.3.0 (run `help relnotes`).
set --global fish_color_autosuggestion 555 brblack
set --global fish_color_cancel -r
set --global fish_color_command white --bold
set --global fish_color_comment 990000
set --global fish_color_cwd green
set --global fish_color_cwd_root red
set --global fish_color_end 009900
set --global fish_color_error red
set --global fish_color_escape 00a6b2
set --global fish_color_history_current --bold
set --global fish_color_host normal
set --global fish_color_host_remote yellow
set --global fish_color_match --background=brblue
set --global fish_color_normal normal
set --global fish_color_operator red
set --global fish_color_param cyan
set --global fish_color_quote green
set --global fish_color_redirection red
set --global fish_color_search_match white --background=brblack
set --global fish_color_selection white --bold --background=brblack
set --global fish_color_status red
set --global fish_color_user brgreen
set --global fish_color_valid_path --underline
set --global fish_pager_color_completion
set --global fish_pager_color_description B3A06D yellow
set --global fish_pager_color_prefix white --bold --underline
set --global fish_pager_color_progress brwhite --background=cyan
set --global fish_pager_color_selected_background -r

View File

@@ -16,8 +16,6 @@ alias jcu "journalctl --user -eu"
alias webtorrent "webtorrent -i -o /tmp/webtorrent --mpv --player-args='--sub-auto=all --sub-file-paths=Subs:subs'" alias webtorrent "webtorrent -i -o /tmp/webtorrent --mpv --player-args='--sub-auto=all --sub-file-paths=Subs:subs'"
alias ns "nix-shell -p" alias ns "nix-shell -p"
alias tmpdir "cd $(mktemp -d)" alias tmpdir "cd $(mktemp -d)"
alias clean-git "git repack -a -d -f --depth=250 --window=250"
alias light "brightnessctl -m | cut -d , -f 4"
# Additional paths # Additional paths
set PATH $PATH $HOME/.emacs.d/bin set PATH $PATH $HOME/.emacs.d/bin

View File

@@ -3,5 +3,34 @@
SETUVAR __fish_init_2_39_8:\x1d SETUVAR __fish_init_2_39_8:\x1d
SETUVAR __fish_init_2_3_0:\x1d SETUVAR __fish_init_2_3_0:\x1d
SETUVAR __fish_init_3_x:\x1d SETUVAR __fish_init_3_x:\x1d
SETUVAR __fish_initialized:4300 SETUVAR __fish_initialized:3800
SETUVAR fish_color_autosuggestion:555\x1ebrblack
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:white\x1e\x2d\x2dbold
SETUVAR fish_color_comment:990000
SETUVAR fish_color_cwd:green
SETUVAR fish_color_cwd_root:red
SETUVAR fish_color_end:009900
SETUVAR fish_color_error:red
SETUVAR fish_color_escape:00a6b2
SETUVAR fish_color_history_current:\x2d\x2dbold
SETUVAR fish_color_host:normal
SETUVAR fish_color_host_remote:yellow
SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue
SETUVAR fish_color_normal:normal
SETUVAR fish_color_operator:red
SETUVAR fish_color_param:cyan
SETUVAR fish_color_quote:green
SETUVAR fish_color_redirection:red
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_status:red
SETUVAR fish_color_user:brgreen
SETUVAR fish_color_valid_path:\x2d\x2dunderline
SETUVAR fish_greeting:\x1d SETUVAR fish_greeting:\x1d
SETUVAR fish_key_bindings:fish_default_key_bindings
SETUVAR fish_pager_color_completion:\x1d
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
SETUVAR fish_pager_color_selected_background:\x2dr

View File

@@ -4,14 +4,6 @@
signingkey = 9893DA236405AF57 signingkey = 9893DA236405AF57
[core] [core]
excludesfile = /home/coolneng/.config/git/global_gitignore excludesfile = /home/coolneng/.config/git/global_gitignore
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
dark = true
[merge]
conflictStyle = zdiff3
[credential] [credential]
helper = !pass-git-helper $@ helper = !pass-git-helper $@
[commit] [commit]

View File

@@ -5,8 +5,8 @@ profile multihead-dock {
exec swaymsg workspace "3: ", move workspace to eDP-1 exec swaymsg workspace "3: ", move workspace to eDP-1
exec swaymsg workspace "2: ", move workspace to DP-1 exec swaymsg workspace "2: ", move workspace to DP-1
exec swaymsg workspace "4: 󱓷", move workspace to DP-1 exec swaymsg workspace "4: 󱓷", move workspace to DP-1
exec brightnessctl set 100% exec light -S 100
exec brightnessctl --device=tpacpi::kbd_backlight set 0 exec light -s sysfs/leds/tpacpi::kbd_backlight -S 0
} }
profile multihead-HDMI { profile multihead-HDMI {
@@ -16,11 +16,11 @@ profile multihead-HDMI {
exec swaymsg workspace "3: ", move workspace to eDP-1 exec swaymsg workspace "3: ", move workspace to eDP-1
exec swaymsg workspace "2: ", move workspace to HDMI-A-2 exec swaymsg workspace "2: ", move workspace to HDMI-A-2
exec swaymsg workspace "4: 󱓷", move workspace to HDMI-A-2 exec swaymsg workspace "4: 󱓷", move workspace to HDMI-A-2
exec brightnessctl set 100% exec light -S 100
exec brightnessctl --device=tpacpi::kbd_backlight set 0 exec light -s sysfs/leds/tpacpi::kbd_backlight -S 0
} }
profile nomad { profile nomad {
output eDP-1 enable output eDP-1 enable
exec brightnessctl set 50% exec light -S 50
} }

View File

@@ -1,94 +1,94 @@
#!/bin/sh #!/bin/sh
usage() { usage() {
echo "Usage: project-init <type>" echo "Usage: project-init <type>"
echo "type git: VCS project" echo "type git: VCS project"
echo "type remote-git: VCS project with README, LICENSE and tests" echo "type remote-git: VCS project with README, LICENSE and tests"
echo "type src: Simple coding project" echo "type src: Simple coding project"
echo "type init: Initialize populated project" echo "type init: Initialize populated project"
echo "type doc: Assignment" echo "type doc: Assignment"
echo "type nix-ld: Run unpatched programs with Nix" echo "type nix-ld: Run unpatched programs with Nix"
echo "type datasci: Python data science project" echo "type datasci: Python data science project"
exit 1 exit 1
} }
copy_nix_files() { copy_nix_files() {
if [ "$1" = "flake" ]; then if [ "$1" = "flake" ]; then
cp ~/Projects/devenv/flake-template.nix flake.nix cp ~/Projects/devenv/flake-template.nix flake.nix
elif [ "$1" = "nix-ld" ]; then elif [ "$1" = "nix-ld" ]; then
cp ~/Projects/devenv/nix-ld.nix shell.nix cp ~/Projects/devenv/nix-ld.nix shell.nix
elif [ "$1" = "datasci" ]; then elif [ "$1" = "datasci" ]; then
cp ~/Projects/devenv/python-data-science.nix flake.nix cp ~/Projects/devenv/python-data-science.nix shell.nix
else else
cp ~/Projects/devenv/shell.nix . cp ~/Projects/devenv/shell.nix .
fi fi
} }
git_initialization() { git_initialization() {
git init git init
git add ./* git add ./*
git commit -m "Initial commit" git commit -m "Initial commit"
} }
direnv_integration() { direnv_integration() {
if [ "$1" = "flake" ]; then if [ "$1" = "flake" ]; then
echo "use flake" >.envrc echo "use flake" >.envrc
else else
echo "use nix" >.envrc echo "use nix" >.envrc
fi fi
direnv allow direnv allow
} }
create_dir() { create_dir() {
if [ ! -d "$1" ]; then if [ ! -d "$1" ]; then
mkdir "$1" mkdir "$1"
fi fi
} }
if [ $# != 1 ]; then if [ $# != 1 ]; then
usage usage
fi fi
type=$1 type=$1
if [ "$type" = "git" ]; then if [ "$type" = "git" ]; then
copy_nix_files "nix" copy_nix_files "nix"
create_dir data create_dir data
create_dir src create_dir src
git_initialization git_initialization
direnv_integration "nix" direnv_integration "nix"
elif [ "$type" = "remote-git" ]; then elif [ "$type" = "remote-git" ]; then
touch README.org touch README.org
cp ~/Projects/devenv/LICENSE.md LICENSE.md cp ~/Projects/devenv/LICENSE.md LICENSE.md
copy_nix_files "flake" copy_nix_files "flake"
create_dir data create_dir data
create_dir src create_dir src
git_initialization git_initialization
direnv_integration "flake" direnv_integration "flake"
elif [ "$type" = "doc" ]; then elif [ "$type" = "doc" ]; then
create_dir assets create_dir assets
touch Report.org touch Report.org
touch .project touch .project
elif [ "$type" = "src" ]; then elif [ "$type" = "src" ]; then
copy_nix_files "nix" copy_nix_files "nix"
create_dir data create_dir data
create_dir src create_dir src
touch .project touch .project
direnv_integration "nix" direnv_integration "nix"
elif [ "$type" = "init" ]; then elif [ "$type" = "init" ]; then
touch .project touch .project
if [ ! -f shell.nix ]; then if [ ! -f shell.nix ]; then
copy_nix_files "nix" copy_nix_files "nix"
fi fi
direnv_integration "nix" direnv_integration "nix"
elif [ "$type" = "nix-ld" ]; then elif [ "$type" = "nix-ld" ]; then
copy_nix_files "nix-ld" copy_nix_files "nix-ld"
direnv_integration "nix" direnv_integration "nix"
elif [ "$type" = "datasci" ]; then elif [ "$type" = "datasci" ]; then
copy_nix_files "datasci" copy_nix_files "datasci"
create_dir data create_dir data
touch .project touch .project
direnv_integration "flake" direnv_integration "nix"
else else
usage usage
fi fi

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -271,14 +271,14 @@ bindsym XF86AudioLowerVolume exec pulsemixer --change-volume -5
bindsym XF86AudioMute exec pulsemixer --toggle-mute bindsym XF86AudioMute exec pulsemixer --toggle-mute
bindsym XF86AudioMicMute exec ~/.local/share/scripts/pulseaudio-mic-mute bindsym XF86AudioMicMute exec ~/.local/share/scripts/pulseaudio-mic-mute
# Brightness # Brightness
bindsym XF86MonBrightnessUp exec brightnessctl set 10%+ bindsym XF86MonBrightnessUp exec light -A 10
bindsym XF86MonBrightnessDown exec brightnessctl set 10%- bindsym XF86MonBrightnessDown exec light -U 10
# Media control # Media control
bindsym XF86Messenger exec playerctl play-pause bindsym XF86Messenger exec mpc toggle
bindsym XF86AudioPlay exec playerctl play-pause bindsym XF86AudioPlay exec mpc toggle
bindsym XF86Go exec playerctl stop bindsym XF86Go exec mpc stop
bindsym Cancel exec playerctl prev bindsym Cancel exec mpc prev
bindsym XF86Favorites exec playerctl next bindsym XF86Favorites exec mpc next
# #
# Program keybindings # Program keybindings

View File

@@ -1,26 +1,27 @@
{ {
"layer": "top", "layer": "top",
"height": 25, "height": 25,
"modules-left": [ "sway/workspaces"], "modules-left": ["sway/workspaces" ],
"modules-center": [ "clock" ], "modules-center": ["custom/org-pomodoro", "clock"],
"modules-right": [ "mpris", "network", "pulseaudio", "battery" ], "modules-right": ["mpd", "network", "pulseaudio", "battery" ],
"mpris": { "mpd": {
"format": "<span foreground='#88C0D0'>{status_icon}</span> {title}", "format": "<span foreground='#88C0D0'>{stateIcon}</span> {title}",
"format-disconnected": "", "format-disconnected": "",
"format-stopped": "{status_icon} ", "format-stopped": "{stateIcon} ",
"unknown-tag": "N/A",
"interval": 2, "interval": 2,
"consume-icons": { "consume-icons": {
"on": " " "on": " "
}, },
"status-icons": { "state-icons": {
"paused": "󰝚", "paused": "󰝚",
"playing": "󰝚" "playing": "󰝚"
}, },
"tooltip-format": "{artist} - {album}", "tooltip-format": "{elapsedTime:%H:%M:%S}/{totalTime:%H:%M:%S}",
"tooltip-format-disconnected": "MPD (disconnected)", "tooltip-format-disconnected": "MPD (disconnected)",
"title-len": 50, "title-len": 50,
"on-click": "playerctl play-pause", "on-click": "mpc toggle",
"on-click-right": "playerctl stop" "on-click-right": "mpc stop"
}, },
"clock": { "clock": {
"format": "{:%a %d %b %H:%M}", "format": "{:%a %d %b %H:%M}",

View File

@@ -70,7 +70,7 @@ window#waybar.chromium {
#tray, #tray,
#mode, #mode,
#idle_inhibitor, #idle_inhibitor,
#mpris { #mpd {
padding: 0 10px; padding: 0 10px;
margin: 0 4px; margin: 0 4px;
} }
@@ -156,16 +156,16 @@ label:focus {
#idle_inhibitor.activated { #idle_inhibitor.activated {
} }
#mpris { #mpd {
} }
#mpris.disconnected { #mpd.disconnected {
} }
#mpris.stopped { #mpd.stopped {
} }
#mpris.paused { #mpd.paused {
} }