This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
import childProcess from 'node:child_process'; | |
import { promisify } from 'util'; | |
const allowedSinks = ['PRO X Wireless Gaming Headset Analog Stereo', 'SoundCore 2'] | |
const exec = promisify(childProcess.exec); | |
const switchInputToSink= async (input,sink) =>{ | |
await exec(`ponymix -t sink-input -d ${input} move ${sink}`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Personal Zsh configuration file. It is strongly recommended to keep all | |
# shell customization and configuration (including exported environment | |
# variables such as PATH) in this file or in files sourced from it. | |
# | |
# Documentation: https://github.com/romkatv/zsh4humans/blob/v5/README.md. | |
# Periodic auto-update on Zsh startup: 'ask' or 'no'. | |
# You can manually run `z4h update` to update everything. | |
zstyle ':z4h:' auto-update 'no' | |
# Ask whether to auto-update this often; has no effect if auto-update is 'no'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"remote.SSH.useLocalServer": false, | |
"remote.SSH.remotePlatform": { | |
"vDuc": "windows" | |
}, | |
"workbench.colorTheme": "Catppuccin Frappé", | |
"editor.cursorSmoothCaretAnimation": "on", | |
"editor.smoothScrolling": true, | |
"workbench.list.smoothScrolling": true, | |
"terminal.integrated.smoothScrolling": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
"key": "shift+right", | |
"command": "workbench.action.nextEditor", | |
"when": "!editorFocus || inputFocus && vim.mode == 'Normal'" | |
}, | |
{ | |
"key": "ctrl+pagedown", | |
"command": "-workbench.action.nextEditor" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
import childProcess from "node:child_process"; | |
import { promisify } from "util"; | |
const UWQHD = '3440x1440' | |
const FHD = '1920x1080' | |
const OUTPUT = 'HDMI-1' | |
const exec = promisify(childProcess.exec); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
import childProcess from "node:child_process"; | |
import { promisify } from "util"; | |
const exec = promisify(childProcess.exec); | |
const {stdout,stderr} = await exec('xrandr') | |
const xrandrLines=stdout.split('\n') | |
const hdmiLine = xrandrLines.find(line => line.includes('HDMI-1')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mode1="3440x1440" | |
mode2="1920x1080" | |
output="HDMI-1" | |
currentMode=$(xrandr | sed '/\s[0-9].*\*/!d' | awk '{print $1}') | |
newMode=$mode1 | |
if [[ $currentMode == $mode1 ]] | |
then | |
newMode=$mode2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"remote.SSH.useLocalServer": false, | |
"workbench.colorTheme": "Catppuccin Frappé", | |
"editor.cursorSmoothCaretAnimation": "on", | |
"editor.smoothScrolling": true, | |
"workbench.list.smoothScrolling": true, | |
"terminal.integrated.smoothScrolling": true, | |
"svelte.enable-ts-plugin": true, | |
"editor.minimap.enabled": false, | |
"editor.lineNumbers": "relative", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local opts = { silent = true } | |
local cursor | |
--HACK: force redraw | |
local function redraw_cmdline() | |
vim.schedule(function() | |
vim.api.nvim_input("<space><BS>") | |
end) | |
end | |
local function get_substitute_parts(cmdline) |