questionAsker

joined 2 years ago
[–] questionAsker@lemmy.ml 1 points 2 days ago
#Create predefined session with multiple tabs/panes (rss, bluetooth, docker...)
tmux-start 

#Create predefined tmux session with ncmpcpp and ueberzug cover
music 

#Comfort
ls = "ls --color=auto"
please = "sudo !!"

#Quick weather check
weatherH='curl -s "wttr.in/HomeCity?2QF"' 

#Download Youtube playlist videos in separate directory indexed by video order in playlist -> lectures, etc
ytPlaylist='yt-dlp -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s"'

#Download whole album  -> podcasts primarily 
ytAlbum='yt-dlp -x --audio-format mp3 --split-chapters --embed-thumbnail -o "chapter:%(section_title)s.%(ext)s"'

# download video -> extract audio -> show notification
ytm()
{
	tsp yt-dlp -x --audio-format mp3 --no-playlist -P "~/Music/downloaded" $1 \
		--exec "dunstify -i folder-download -t 3000 -r 2598 -u normal  %(filepath)q"

}

# Provide list of optional packages which can be manually selected
pacmanOpts()
{
typeset -a os
for o in `expac -S '%o\n' $1`
do
  read -p "Install ${o}? " r
  [[ ${r,,} =~ ^y(|e|es)$ ]] && os+=( $o )
done

sudo pacman -S $1 ${os[@]}
}

# fkill - kill process
fkill() {
  pid=$(ps -ef | sed 1d | fzf -m --ansi --color fg:-1,bg:-1,hl:46,fg+:40,bg+:233,hl+:46 --color prompt:166,border:46 --height 40%  --border=sharp --prompt="➤  " --pointer="➤ " --marker="➤ " | awk '{print $2}')

  if [ "x$pid" != "x" ]
  then
    kill -${1:-9} $pid
  fi
}
[–] questionAsker@lemmy.ml 4 points 2 months ago

Arch. Why?

  1. Arch Wiki
  2. Pacman
  3. Community (therefore AUR)
[–] questionAsker@lemmy.ml 1 points 3 months ago

[username@host ~]$ >

[–] questionAsker@lemmy.ml 2 points 4 months ago

XFCE and well, straightforward usage without endless tweaking and customization. On the other side, I recently(~2 years:)) felt in love with tiling window manager BSPWM and keyboard-driven usage.

[–] questionAsker@lemmy.ml 1 points 2 years ago (1 children)

Sadly, popup window name is same as for vscode itself. I will have a look on that script, that's something to begin with. I use only one monitor at time, I don't use "extended mode". And what I really want - to transfer already opened applications to workspaces from different monitor: I have vscode opened on 4th workspace on laptop, after I plug in external monitor and setup xrandr for it, than I turn it off and want to continue working with vscode on 4th workspace on latop. Right now this is not possible from the box.

 
  1. I have a rule for vscode: bspc rule -a Code follow=on desktop='^4'. If I manually move one vscode instance to another workspace, work in that and than drag'n'drop smth (or any other action initiating popup menu), dialog will appear on 4th workspace rather than on current one. How to fix that?
  2. How to transfer workspaces(applications on them) correctly in the easiest way when switching to external monitor and returning?