add back .desktop files

modifications to arch install script

set mimeapps.list to use .desktop files when possible

new aliases

add delete function to lfrc
master
Alex 2022-08-31 18:55:25 -05:00
parent 04133b3492
commit 966d7152d1
14 changed files with 61 additions and 11 deletions

View File

@ -1,5 +1,5 @@
#better commands #better commands
alias ls="ls -hN --color=auto --group-directories-first" alias ls="ls -h --color=auto --group-directories-first"
alias wget='wget --hsts-file ~/.config/wget/wget-hsts' alias wget='wget --hsts-file ~/.config/wget/wget-hsts'
#git #git

View File

@ -83,7 +83,7 @@ cmd delete ${{
# use '<backspace2>' key for either 'trash' or 'delete' command # use '<backspace2>' key for either 'trash' or 'delete' command
map <backspace2> trash map <backspace2> trash
# map <delete> delete map <delete> delete
# extract the current file with the right command # extract the current file with the right command
# (xkcd link: https://xkcd.com/1168/) # (xkcd link: https://xkcd.com/1168/)

View File

@ -29,6 +29,7 @@ text/x-arduino=arduino-arduinoide.desktop
[Added Associations] [Added Associations]
image/jpeg=img.desktop; image/jpeg=img.desktop;
image/png=img.desktop; image/png=img.desktop;
image/gif=img.desktop;
text/html=web.desktop; text/html=web.desktop;
inode/directory=lf.desktop inode/directory=lf.desktop
application/rss+xml=web.desktop; application/rss+xml=web.desktop;

View File

@ -42,12 +42,15 @@ output VGA-1 disable
# #
# Example configuration: # Example configuration:
# #
exec swayidle -w \ # exec swayidle -w \
timeout 900 'swaylock -f -c 000000' \ # timeout 900 'swaylock -f -c 000000' \
timeout 1200 'swaymsg "output * dpms off"' \ # timeout 1200 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \ # resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 000000' # before-sleep 'swaylock -f -c 000000'
# #
exec swayidle -w \
timeout 1200 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"'
# This will lock your screen after 300 seconds of inactivity, then turn off # This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when # your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep. # resumed. It will also lock your screen before your computer goes to sleep.

View File

@ -52,7 +52,7 @@ init_setup() {
sudo systemctl enable ufw.service sudo systemctl enable ufw.service
sudo systemctl enable cronie.service sudo systemctl enable cronie.service
sudo systemctl enable systemd-timesyncd.service sudo systemctl enable systemd-timesyncd.service
sudo systemctl enable nix-daemon.service #sudo systemctl enable nix-daemon.service
#user services #user services
@ -121,6 +121,7 @@ configure() {
mkdir -p ~/.local/share/gnupg/ mkdir -p ~/.local/share/gnupg/
mkdir -p ~/.config/mpd/playlists mkdir -p ~/.config/mpd/playlists
mkdir -p ~/.local/share/desktop mkdir -p ~/.local/share/desktop
mkdir -p ~/.local/share/wineprefixes/default
mkdir .local/share/public mkdir .local/share/public
mkdir .local/share/templates mkdir .local/share/templates
@ -195,8 +196,8 @@ configure() {
#add user to nix-users group #add user to nix-users group
sudo adduser -a -G nix-users "$USER" sudo adduser -a -G nix-users "$USER"
#add nix unstable channel #add nix unstable channel
nix-channel --add https://nixos.org/channels/nixpkgs-unstable #nix-channel --add https://nixos.org/channels/nixpkgs-unstable
nix-channel --update #nix-channel --update
#download collapse OS #download collapse OS
mkdir -p "$HOME"/.local/src/ mkdir -p "$HOME"/.local/src/

View File

@ -80,4 +80,3 @@ bc
firefox firefox
chromium chromium
flatpak flatpak
nix

View File

@ -0,0 +1,11 @@
[Desktop Entry]
Name=Simple Terminal
GenericName=Terminal
Comment=Suckless terminal emulator for X
Exec=alacritty -t "Alacritty"
Terminal=false
Type=Application
Encoding=UTF-8
Icon=utilities-terminal
Categories=System;TerminalEmulator;
Keywords=shell;prompt;command;commandline;cmd;

View File

@ -0,0 +1,4 @@
[Desktop Entry]
Type=Application
Name=Image viewer
Exec=/usr/bin/imv %u

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
Name=lf
Comment=Launches the lf file manager
Icon=utilities-terminal
Terminal=false
#Exec=pcmanfm
Exec=alacritty -e lf %u
Categories=ConsoleOnly;System;FileTools;FileManager
MimeType=inode/directory;

View File

@ -0,0 +1,4 @@
[Desktop Entry]
Type=Application
Name=Video Player
Exec=/usr/bin/mpv %u

View File

@ -0,0 +1,4 @@
[Desktop Entry]
Type=Application
Name=PDF reader
Exec=/usr/bin/zathura %u

View File

@ -0,0 +1,4 @@
[Desktop Entry]
Type=Application
Name=Text editor
Exec=/usr/local/bin/alacritty -e vim %u

View File

@ -0,0 +1,4 @@
[Desktop Entry]
Type=Application
Name=Torrent
Exec=/usr/bin/env transadd %U

View File

@ -0,0 +1,5 @@
[Desktop Entry]
Type=Application
Name=Web Browser
Exec=$HOME/.local/scripts/browser.sh %u
MimeType=text/html;