Skip to content

Commit

Permalink
mime fixes
Browse files Browse the repository at this point in the history
 * use vim for text/plain
 * use pcmanfm-qt
 * store pcmanfm-qt config
  • Loading branch information
avindra committed Aug 2, 2023
1 parent 8c37104 commit 115ba2a
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 2 deletions.
127 changes: 127 additions & 0 deletions .config/pcmanfm-qt/default/settings.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
[Behavior]
AutoSelectionDelay=600
BookmarkOpenMethod=current_tab
ConfirmDelete=true
ConfirmTrash=false
CtrlRightClick=false
NoUsbTrash=false
QuickExec=false
RecentFilesNumber=0
SelectNewFiles=false
SingleClick=false
SingleWindowMode=false
UseTrash=true

[Desktop]
AllSticky=false
BgColor=#000000
DesktopCellMargins=@Size(3 1)
DesktopIconSize=48
DesktopShortcuts=@Invalid()
FgColor=#ffffff
Font="Sans Serif,9,-1,5,50,0,0,0,0,0"
HideItems=false
LastSlide=
OpenWithDefaultFileManager=false
PerScreenWallpaper=false
ShadowColor=#000000
ShowHidden=false
ShowWmMenu=false
SlideShowInterval=0
SortColumn=name
SortFolderFirst=true
SortHiddenLast=false
SortOrder=ascending
TransformWallpaper=false
Wallpaper=
WallpaperDialogSize=@Size(700 500)
WallpaperDialogSplitterPos=200
WallpaperDirectory=
WallpaperMode=none
WallpaperRandomize=false
WorkAreaMargins=12, 12, 12, 12

[FolderView]
BackupAsHidden=false
BigIconSize=48
CustomColumnWidths=@Invalid()
FolderViewCellMargins=@Size(3 3)
HiddenColumns=@Invalid()
Mode=detailed
NoItemTooltip=false
ScrollPerPixel=true
ShadowHidden=false
ShowFilter=false
ShowFullNames=false
ShowHidden=false
SidePaneIconSize=24
SmallIconSize=24
SortCaseSensitive=false
SortColumn=name
SortFolderFirst=true
SortHiddenLast=false
SortOrder=ascending
ThumbnailIconSize=128

[Places]
HiddenPlaces=@Invalid()
PlacesApplications=true
PlacesComputer=true
PlacesDesktop=true
PlacesHome=true
PlacesNetwork=true
PlacesRoot=true
PlacesTrash=true

[Search]
ContentPatterns=@Invalid()
MaxSearchHistory=0
NamePatterns=@Invalid()
searchContentCaseInsensitive=false
searchContentRegexp=true
searchNameCaseInsensitive=false
searchNameRegexp=true
searchRecursive=false
searchhHidden=false

[System]
Archiver=file-roller
FallbackIconThemeName=Adwaita
OnlyUserTemplates=false
SIUnit=false
SuCommand=lxqt-sudo %s
TemplateRunApp=false
TemplateTypeOnce=false
Terminal=xterm

[Thumbnail]
MaxExternalThumbnailFileSize=-1
MaxThumbnailFileSize=4096
ShowThumbnails=true
ThumbnailLocalFilesOnly=true

[Volume]
AutoRun=true
CloseOnUnmount=true
MountOnStartup=true
MountRemovable=true

[Window]
AlwaysShowTabs=true
FixedHeight=480
FixedWidth=640
FullWidthTabBar=true
LastWindowHeight=616
LastWindowMaximized=false
LastWindowWidth=1164
PathBarButtons=true
RememberWindowSize=true
ReopenLastTabs=false
ShowMenuBar=true
ShowTabClose=true
SidePaneMode=places
SidePaneVisible=true
SplitView=false
SplitterPos=150
SwitchToNewTab=false
TabPaths=@Invalid()
1 change: 1 addition & 0 deletions .local/share/applications/defaults.list
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ application/x-vrmonitor=valve-vrmonitor.desktop
x-scheme-handler/vrmonitor=valve-URI-vrmonitor.desktop

[Added associations]
inode/directory=pcmanfm-qt.desktop
video/x-matroska=mpv.desktop
audio/x-matroska=mpv.desktop
application/x-matroska=mpv.desktop
4 changes: 2 additions & 2 deletions .local/share/applications/mimeapps.list
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[Default Applications]
inode/directory=pcmanfm.desktop
image/png=viewnior.desktop
text/html=firefox.desktop
x-scheme-handler/http=firefox.desktop
Expand All @@ -21,7 +20,8 @@ application/x-extension-xht=firefox.desktop
x-scheme-handler/msteams=teams.desktop

[Added Associations]
text/plain=leafpad.desktop;
inode/directory=pcmanfm-qt.desktop
text/plain=vim.desktop;
image/png=viewnior.desktop;
application/octet-stream=evince.desktop;viewnior.desktop;atril.desktop;
image/jpeg=viewnior.desktop;
Expand Down
12 changes: 12 additions & 0 deletions .local/share/applications/vim.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Desktop Entry]
Encoding=UTF-8
Name=Vim Text Editor (Console)
Comment=Edit text files in a console using Vim
Exec=ctxterm -e vim %F
Terminal=true
Type=Application
Categories=Application;Utility;TextEditor;
StartupNotify=true
MimeType=text/plain;
NoDisplay=true

0 comments on commit 115ba2a

Please sign in to comment.