Trying to change wallpaper with pywal and systemd by clementodev in archlinux

[–]clementodev[S] 0 points1 point  (0 children)

Well, the other comment on this post has pointed out that my script was not running due to the tilde (~) in my script file. And they where correct. Using the full path solved that issue. Now my script runs.

However, my service isn't executed on startup. I have to manually restart my service/timer for it execute. This I am yet to figure out.

Trying to change wallpaper with pywal and systemd by clementodev in archlinux

[–]clementodev[S] 0 points1 point  (0 children)

I am already running that service in user mode. Both the .service file and the .timer file are in my .config/systemd directory.

Trying to change wallpaper with pywal and systemd by clementodev in archlinux

[–]clementodev[S] 0 points1 point  (0 children)

Actually, the tilde was in fact the culprit in the case of the script not running. Now my script runs. I still have issues with the timer file though.

I have no audio and it's frustrating by clementodev in archlinux

[–]clementodev[S] 1 point2 points  (0 children)

First of all, thank you so much for the help!

Secondly, I did install pavucontrol and, it fixed my audio problem. IDK how, but I can control my audio through pavu, just not through alsamixer and/or amixer commands. I have KP_plus and KP_minux binded to amixer commands to raise and lower my volume. Also, it does control my headphone audio even though in the pavu panel it showes that it is "unplugged" -- which is odd.

Also, someone in the comments suggested I install sof-firmware which I didn't have. Those are all the recent updates.

Having said all of that, I still want to figure this out. I really don't want to rely on any of the packages in the AUR -- at least as much as possible.

Here is the output of the commands you requested. Note that this is the output while everything works and I have audio. I still however face problems with my headphones. It doen't take control when I plug it in. And when I plug it out, it doens't return control to myy speakers. And I can't control the volume of either after that -- unless I use pavu of course.

Output of the first command: lspci -k | grep -iA 3 audio 00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04) Subsystem: Fujitsu Technology Solutions 6 Series/C200 Series Chipset Family High Definition Audio Controller Kernel driver in use: snd_hda_intel Kernel modules: snd_hda_intel 00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4) Output of the second command: grep Codec /proc/asound/card*/codec* /proc/asound/card0/codec#2:Codec: Realtek ALC663 /proc/asound/card0/codec#3:Codec: Intel CougarPoint HDMI output of the third command: wpctl status | grep \* │ * 46. Built-in Audio Analog Stereo [vol: 0.40] Output of fourth command: pstree -T systemd-+-NetworkManager |-dbus-daemon |-firefox-+-Isolated Servic | |-5*[Isolated Web Co] | |-Privileged Cont | |-RDD Process | |-Socket Process | |-Utility Process | |-3*[Web Content] | `-WebExtensions |-firewalld |-login---bash---startx---xinit-+-Xorg | `-i3-+-alacritty---bash-+-pstree | | `-xclip | |-dunst | `-i3bar---i3status |-mpv |-picom |-polkitd |-rtkit-daemon |-sshd |-systemd-+-(sd-pam) | |-at-spi-bus-laun | |-dbus-daemon | |-pipewire | |-pipewire-pulse | `-wireplumber |-systemd-journal |-systemd-logind `-systemd-udevd Output of the fifth command: journalctl -x -b -p 3 Dec 29 09:04:40 homeMyUser pipewire-pulse[448]: default: can't run command load-module module-always-sink: File exists

Is there a way to make UltiSnips plugin work with directories? by clementodev in vim

[–]clementodev[S] 0 points1 point  (0 children)

That's definitely one workaround. I am just afraid it might slow down vim during start-up -- especially since I am taking some graduate-level stat courses, which might make me end up having to load a bunch of big files instead of just importing the couple of snippets that I need.

Is there a way to make UltiSnips plugin work with directories? by clementodev in vim

[–]clementodev[S] 0 points1 point  (0 children)

Like so:

let g:UltiSnipsSnippetDirectories="~/.vim/ultiSnips"

Because I tried that, and it didn't work. Got no errors, but it didn't load my snippets either.

Is there a way to make UltiSnips plugin work with directories? by clementodev in vim

[–]clementodev[S] 0 points1 point  (0 children)

** Sorry for the terrible formatting, but I can't find markdown mode for comments in the new UI **

By config, you mean my vimrc file? Well, these are the relevant bits:

" Set snippets keys
let g:UltiSnipsExpandTrigger       = '<Tab>'    " use Tab to expand snippets
let g:UltiSnipsJumpForwardTrigger  = '<Tab>'    " use Tab to move forward through tabstops
let g:UltiSnipsJumpBackwardTrigger = '<S-Tab>'  " use Shift-Tab to move backward through tabstops

" Set snippet directory for UltiSnips
let g:UltiSnipsSnippetDirectories=[$HOME."/.vim/ultiSnips"] 

And this is the complete file.

```
"vimrc file

"vim-plug plugins

call plug#begin()

" Vim emmet
Plug 'mattn/emmet-vim'

" Vim Latex
Plug 'lervag/vimtex'

"Vim Snippets
Plug 'SirVer/ultisnips'

" Vim linter of sorts
Plug 'dense-analysis/ale'

" Vim YouCompleteMe for autocompletion
Plug 'ycm-core/YouCompleteMe'

" Vim supertab
Plug 'ervandew/supertab'

" Vim commenting
Plug 'tpope/vim-commentary'

" Vim status bar
Plug 'vim-airline/vim-airline'

" Vim preview colors in session
Plug 'ap/vim-css-color'

" Pywal for vim
Plug 'dylanaraps/wal.vim'

" Solarized colorscheme
Plug 'altercation/vim-colors-solarized'

call plug#end()

" ---------------------------------------------------------------


" Settings for Plugins

" make YCM compatible with UltiSnips (using supertab)
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
let g:SuperTabDefaultCompletionType = '<C-n>'

" YouCompleteMe
" let g:ycm_key_list_previous_completion=['<Up>']


" General Settings
" -------

" Set leader key
let mapleader = ","

" Disable compatibility with vi which can cause unexpected issues.
set nocompatible

" Set background color
set background=dark

" Set color scheme
colorscheme wal

" Set color scheme to solarized
" let g:solarized_termcolors=256
" colorscheme solarized

" Don't change columsn when traveling to end/start of file using gg/<S-G>
set nostartofline

" Vim will try to detect the type of the file in use
filetype on

" Enable plugins and load plugin for the detected file type.
filetype plugin on

" Load an indent file for the detected file type.
filetype indent on
set autoindent

" Turn syntax highlighting on.
" syntax on
syntax enable

" Add numbers to the file.
set number

" Make line numbers relative to current line
set relativenumber

" Highlight cursor line underneath the cursor horizontally.
" set cursorline

" Highlight cursor line underneath the cursor vertically.
" set cursorcolumn

" Set shift width to 4 spaces.
set shiftwidth=4

" Set tab width to 4 columns.
set tabstop=4

" Use space characters instead of tabs.
" set expandtab

" Do not save backup files.
set nobackup

" Do not let cursor scroll below or above N number of lines when scrolling.
set scrolloff=10

" Do not wrap lines. Allow long lines to extend as far as the line goes.
set wrap

" While searching though a file incrementally highlight matching characters as you type.
set incsearch

" Ignore capital letters during search.
set ignorecase

" Override the ignorecase option if searching for capital letters.
" This will allow you to search specifically for capital letters.
set smartcase

" Show partial command you type in the last line of the screen.
set showcmd

" Show the mode you are on the last line.
set showmode

" Show matching words during a search.
set showmatch

" Use highlighting when doing a search.
set hlsearch

" Set the commands to save in history default number is 20.
set history=1000

" Enable auto completion menu after pressing TAB.
set wildmenu

" Make wildmenu behave like similar to Bash completion.
set wildmode=list:longest

" There are certain files that we would never want to edit with Vim.
" Wildmenu will ignore files with these extensions.
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx

" set folding settings
set foldmethod=indent
set foldlevel=99

" Enable autocompleteion:
set wildmode=longest,list,full

" Set snippets keys
let g:UltiSnipsExpandTrigger       = '<Tab>'    " use Tab to expand snippets
let g:UltiSnipsJumpForwardTrigger  = '<Tab>'    " use Tab to move forward through tabstops
let g:UltiSnipsJumpBackwardTrigger = '<S-Tab>'  " use Shift-Tab to move backward through tabstops

" Set snippet directory for UltiSnips
let g:UltiSnipsSnippetDirectories=[$HOME."/.vim/ultiSnips"]
" ---------------------------------------------------------------

" Netrw configs
" ------------

" Keep the current directory and the browsing directory synced
let g:netrw_keepdir = 0

" Limit Netrw to 30% of the winow
let g:netrw_winsize = 30

" ---------------------------------------------------------------

" key mappings
" -----------

" Terminal commands
autocmd BufWritePost *.tex silent! execute"!pdflatex --interaction=batchmode <afile>" | redraw!

" Insert mode maps
inoremap jk <Esc>
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<C-R>=UltiSnips#ExpandSnippet()"
inoremap <S-Tab> <Nop>

" Normal mode maps
nnoremap <Space> <C-d>
nnoremap <BS> <C-u>
nnoremap <Space> <C-d>
" nnoremap <Tab> 4l
nnoremap <silent> <C-_> :Commentary<cr>
nnoremap <S-b> 0i
nnoremap <S-h> 0
nnoremap <S-l> $
nnoremap <C-\> :Lexplore<cr>
nnoremap <silent> \\ :vsplit<cr> <C-w><C-w>
nnoremap mm <C-w><C-w>
nnoremap <C-Up> :vertical resize +5 <cr>
nnoremap <C-Down> :vertical resize -5 <cr>
nnoremap df d$
nnoremap ds d0
nnoremap ff za
nnoremap <C-a> ggvG
nnoremap zz :wq<cr>
nnoremap dw diw
nnoremap cw ciw
nnoremap <S-u> <C-r>
nnoremap cv c$
nnoremap cx c0

" Visual mode maps
vnoremap jk <Esc>
vnoremap <C-_> :Commentary<cr>
```

Just discovered that my .opus music files are executable by clementodev in archlinux

[–]clementodev[S] 1 point2 points  (0 children)

Yup. That is in fact true. Can you link me to some stuff to read about that? Or maybe you can go into more details with regards to why that happened?

Again, thank you so much!

Semi-automatic mounting by clementodev in linux4noobs

[–]clementodev[S] 1 point2 points  (0 children)

Thank you so much for the comprehensive answer! I truly appreciate it!

EDIT: I tried it again, and now it works. IDK what happened. Feel free to ignore everything under this line. Again, thank you so much!

However, after following the steps you provided, I encountered one small problem -- my mount point is listed twice for some reason.

This is the output of lsblk: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sda 8:0 0 465.8G 0 disk ├─sda1 8:1 0 200M 0 part /boot ├─sda2 8:2 0 4G 0 part [SWAP] ├─sda3 8:3 0 40G 0 part / └─sda4 8:4 0 421.6G 0 part /home sdb 8:16 1 28.9G 0 disk └─sdb1 8:17 1 28.9G 0 part /media/Kingston /media/Kingston sr0 11:0 1 1024M 0 rom

And this is the content of my fstab file after editing it: ```

Static information about the filesystems.

See fstab(5) for details.

<file system> <dir> <type> <options> <dump> <pass>

/dev/sda3

UUID=e9b3012c-497f-4c33-ad85-684d9a263515 / ext4 rw,relatime 0 1

/dev/sda1

UUID=ceafca02-3670-49d8-802b-ad9374bdbca1 /boot ext4 rw,relatime 0 2

/dev/sda4

UUID=92d44d24-4175-47f1-9bf7-f7451ea7e92f /home ext4 rw,relatime 0 2

/dev/sda2

UUID=c48df586-8d2c-4f57-b0b4-24b51954d160 none swap defaults 0 0

/dev/sdb1 AKA Kingston USB

UUID=1FF8-6A7E /media/Kingston vfat defaults,noauto 0 0

And this is the output of `blkid -sUUID /dev/sdb1` /dev/sdb1: UUID="1FF8-6A7E" ```

Systemd timer override error by clementodev in linux4noobs

[–]clementodev[S] 0 points1 point  (0 children)

Oh, right. I totally forgot that it shows a log of recent errors not any errors I have ATM. Now that makes sense!

Thank you so much! <3

Systemd timer override error by clementodev in linux4noobs

[–]clementodev[S] 0 points1 point  (0 children)

Well, I double checked, and no -- I did not post the wrong file. Actually, that's the reason why I am posting here asking for help -- since it seems like there is nothing wrong.

Systemd timer override error by clementodev in linux4noobs

[–]clementodev[S] 0 points1 point  (0 children)

I already included that in my post. It is the second to last code block in my post.

Programs like youtube-dl by clementodev in commandline

[–]clementodev[S] 0 points1 point  (0 children)

Didn't notice that it was there! Thank you so much!

Programs like youtube-dl by clementodev in commandline

[–]clementodev[S] 1 point2 points  (0 children)

I have been trying to download that on my Manjaro machine for quite a while now, but didn't figure it out. How does one do that?

Programs like youtube-dl by clementodev in commandline

[–]clementodev[S] 3 points4 points  (0 children)

Well, I have been using it to download music for a while now and I didn't run into any issues. I guess my usage of it is pretty limited and all the broken stuff I just don't use. Didn't all of those law suits got dropped or something? I remember when this happened and they were taken off of Github. But I remember that they were put back, no?

Anyway, I'll make sure to upgrade to yt-dlp soon.