Krrish Ghimire
4 years ago
commit
ab3d204e84
9 changed files with 1228 additions and 0 deletions
@ -0,0 +1,51 @@
|
||||
# |
||||
# ~/.bashrc |
||||
# |
||||
|
||||
# If not running interactively, don't do anything |
||||
[[ $- != *i* ]] && return |
||||
|
||||
if [ -f /etc/bash.command-not-found ]; then |
||||
. /etc/bash.command-not-found |
||||
fi |
||||
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' |
||||
|
||||
alias ls='ls --color=auto' |
||||
alias ..='cd ..' |
||||
alias escaps='setxkbmap -option caps:swapescape' |
||||
alias vimrc='vim ~/.vim/vimrc' |
||||
alias bashrc='vim ~/.config/bash/bashrc' |
||||
alias project='cd ~/programs/projects' |
||||
alias open='vim "$(fzf)"' |
||||
alias vi="vim" |
||||
alias bash='bash --init-file ~/.config/bash/bashrc' |
||||
alias btpd='btpd -d ~/.config/btpd/' |
||||
alias mirrors='sudo vim /etc/pacman.d/mirrorlist' |
||||
alias cleanup='rm ~/.xmonad/xmonad.errors ~/.xmonad/xmonad.hi ~/.xmonad/xmonad.o ~/.xmonad/xmonad-x86_64-linux' |
||||
|
||||
export ABDUCO_SOCKET_DIR=/home/krrish/.config/abduco |
||||
export XMONAD_DATA_DIR='/home/krrish/.config/xmonad' |
||||
export XDG_CONFIG_HOME='/home/krrish/.config' |
||||
export XDG_DATA_HOME='/home/krrish/.local/share' |
||||
export XDG_CACHE_HOME='/home/krrish/.cache/' |
||||
|
||||
export ANDROID_SDK_HOME="$XDG_CONFIG_HOME"/android |
||||
export ANDROID_AVD_HOME="$XDG_DATA_HOME"/android/ |
||||
export ANDROID_EMULATOR_HOME="$XDG_DATA_HOME"/android/ |
||||
export ADB_VENDOR_KEY="$XDG_CONFIG_HOME"/android |
||||
export GRADLE_USER_HOME="$XDG_DATA_HOME"/gradle |
||||
export LESSKEY="$XDG_CONFIG_HOME"/less/lesskey |
||||
export LESSHISTFILE="$XDG_CACHE_HOME"/less/history |
||||
export MPLAYER_HOME="$XDG_CONFIG_HOME"/mplayer |
||||
|
||||
export HISTFILE="$XDG_DATA_HOME"/bash/bash_history |
||||
|
||||
PS1='[\u@\h \W]\$ ' |
||||
|
||||
set -o vi |
||||
|
||||
. ~/programs/scripts/git-completion.bash |
||||
|
||||
eval $(thefuck --alias) |
||||
|
||||
neofetch |
@ -0,0 +1,431 @@
|
||||
[global] |
||||
### Display ### |
||||
|
||||
# Which monitor should the notifications be displayed on. |
||||
monitor = 0 |
||||
|
||||
# Display notification on focused monitor. Possible modes are: |
||||
# mouse: follow mouse pointer |
||||
# keyboard: follow window with keyboard focus |
||||
# none: don't follow anything |
||||
# |
||||
# "keyboard" needs a window manager that exports the |
||||
# _NET_ACTIVE_WINDOW property. |
||||
# This should be the case for almost all modern window managers. |
||||
# |
||||
# If this option is set to mouse or keyboard, the monitor option |
||||
# will be ignored. |
||||
follow = mouse |
||||
|
||||
# The geometry of the window: |
||||
# [{width}]x{height}[+/-{x}+/-{y}] |
||||
# The geometry of the message window. |
||||
# The height is measured in number of notifications everything else |
||||
# in pixels. If the width is omitted but the height is given |
||||
# ("-geometry x2"), the message window expands over the whole screen |
||||
# (dmenu-like). If width is 0, the window expands to the longest |
||||
# message displayed. A positive x is measured from the left, a |
||||
# negative from the right side of the screen. Y is measured from |
||||
# the top and down respectively. |
||||
# The width can be negative. In this case the actual width is the |
||||
# screen width minus the width defined in within the geometry option. |
||||
geometry = "300x5-30+20" |
||||
|
||||
# Show how many messages are currently hidden (because of geometry). |
||||
indicate_hidden = yes |
||||
|
||||
# Shrink window if it's smaller than the width. Will be ignored if |
||||
# width is 0. |
||||
shrink = yes |
||||
|
||||
# The transparency of the window. Range: [0; 100]. |
||||
# This option will only work if a compositing window manager is |
||||
# present (e.g. xcompmgr, compiz, etc.). |
||||
transparency = 0 |
||||
|
||||
# The height of the entire notification. If the height is smaller |
||||
# than the font height and padding combined, it will be raised |
||||
# to the font height and padding. |
||||
notification_height = 0 |
||||
|
||||
# Draw a line of "separator_height" pixel height between two |
||||
# notifications. |
||||
# Set to 0 to disable. |
||||
separator_height = 2 |
||||
|
||||
# Padding between text and separator. |
||||
padding = 8 |
||||
|
||||
# Horizontal padding. |
||||
horizontal_padding = 8 |
||||
|
||||
# Defines width in pixels of frame around the notification window. |
||||
# Set to 0 to disable. |
||||
frame_width = 3 |
||||
|
||||
# Defines color of the frame around the notification window. |
||||
frame_color = "#aaaaaa" |
||||
|
||||
# Define a color for the separator. |
||||
# possible values are: |
||||
# * auto: dunst tries to find a color fitting to the background; |
||||
# * foreground: use the same color as the foreground; |
||||
# * frame: use the same color as the frame; |
||||
# * anything else will be interpreted as a X color. |
||||
separator_color = frame |
||||
|
||||
# Sort messages by urgency. |
||||
sort = yes |
||||
|
||||
# Don't remove messages, if the user is idle (no mouse or keyboard input) |
||||
# for longer than idle_threshold seconds. |
||||
# Set to 0 to disable. |
||||
# A client can set the 'transient' hint to bypass this. See the rules |
||||
# section for how to disable this if necessary |
||||
idle_threshold = 120 |
||||
|
||||
### Text ### |
||||
|
||||
font = Jetbrains Mono 8 |
||||
|
||||
# The spacing between lines. If the height is smaller than the |
||||
# font height, it will get raised to the font height. |
||||
line_height = 0 |
||||
|
||||
# Possible values are: |
||||
# full: Allow a small subset of html markup in notifications: |
||||
# <b>bold</b> |
||||
# <i>italic</i> |
||||
# <s>strikethrough</s> |
||||
# <u>underline</u> |
||||
# |
||||
# For a complete reference see |
||||
# <https://developer.gnome.org/pango/stable/pango-Markup.html>. |
||||
# |
||||
# strip: This setting is provided for compatibility with some broken |
||||
# clients that send markup even though it's not enabled on the |
||||
# server. Dunst will try to strip the markup but the parsing is |
||||
# simplistic so using this option outside of matching rules for |
||||
# specific applications *IS GREATLY DISCOURAGED*. |
||||
# |
||||
# no: Disable markup parsing, incoming notifications will be treated as |
||||
# plain text. Dunst will not advertise that it has the body-markup |
||||
# capability if this is set as a global setting. |
||||
# |
||||
# It's important to note that markup inside the format option will be parsed |
||||
# regardless of what this is set to. |
||||
markup = full |
||||
|
||||
# The format of the message. Possible variables are: |
||||
# %a appname |
||||
# %s summary |
||||
# %b body |
||||
# %i iconname (including its path) |
||||
# %I iconname (without its path) |
||||
# %p progress value if set ([ 0%] to [100%]) or nothing |
||||
# %n progress value if set without any extra characters |
||||
# %% Literal % |
||||
# Markup is allowed |
||||
format = "<b>%s</b>\n%b" |
||||
|
||||
# Alignment of message text. |
||||
# Possible values are "left", "center" and "right". |
||||
alignment = left |
||||
|
||||
# Vertical alignment of message text and icon. |
||||
# Possible values are "top", "center" and "bottom". |
||||
vertical_alignment = center |
||||
|
||||
# Show age of message if message is older than show_age_threshold |
||||
# seconds. |
||||
# Set to -1 to disable. |
||||
show_age_threshold = 60 |
||||
|
||||
# Split notifications into multiple lines if they don't fit into |
||||
# geometry. |
||||
word_wrap = yes |
||||
|
||||
# When word_wrap is set to no, specify where to make an ellipsis in long lines. |
||||
# Possible values are "start", "middle" and "end". |
||||
ellipsize = middle |
||||
|
||||
# Ignore newlines '\n' in notifications. |
||||
ignore_newline = no |
||||
|
||||
# Stack together notifications with the same content |
||||
stack_duplicates = true |
||||
|
||||
# Hide the count of stacked notifications with the same content |
||||
hide_duplicate_count = false |
||||
|
||||
# Display indicators for URLs (U) and actions (A). |
||||
show_indicators = yes |
||||
|
||||
### Icons ### |
||||
|
||||
# Align icons left/right/off |
||||
icon_position = left |
||||
|
||||
# Scale small icons up to this size, set to 0 to disable. Helpful |
||||
# for e.g. small files or high-dpi screens. In case of conflict, |
||||
# max_icon_size takes precedence over this. |
||||
min_icon_size = 0 |
||||
|
||||
# Scale larger icons down to this size, set to 0 to disable |
||||
max_icon_size = 32 |
||||
|
||||
# Paths to default icons. |
||||
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/ |
||||
|
||||
### History ### |
||||
|
||||
# Should a notification popped up from history be sticky or timeout |
||||
# as if it would normally do. |
||||
sticky_history = yes |
||||
|
||||
# Maximum amount of notifications kept in history |
||||
history_length = 20 |
||||
|
||||
### Misc/Advanced ### |
||||
|
||||
# dmenu path. |
||||
dmenu = /usr/bin/dmenu -p dunst: |
||||
|
||||
# Browser for opening urls in context menu. |
||||
browser = /usr/bin/firefox -new-tab |
||||
|
||||
# Always run rule-defined scripts, even if the notification is suppressed |
||||
always_run_script = true |
||||
|
||||
# Define the title of the windows spawned by dunst |
||||
title = Dunst |
||||
|
||||
# Define the class of the windows spawned by dunst |
||||
class = Dunst |
||||
|
||||
# Print a notification on startup. |
||||
# This is mainly for error detection, since dbus (re-)starts dunst |
||||
# automatically after a crash. |
||||
startup_notification = false |
||||
|
||||
# Manage dunst's desire for talking |
||||
# Can be one of the following values: |
||||
# crit: Critical features. Dunst aborts |
||||
# warn: Only non-fatal warnings |
||||
# mesg: Important Messages |
||||
# info: all unimportant stuff |
||||
# debug: all less than unimportant stuff |
||||
verbosity = mesg |
||||
|
||||
# Define the corner radius of the notification window |
||||
# in pixel size. If the radius is 0, you have no rounded |
||||
# corners. |
||||
# The radius will be automatically lowered if it exceeds half of the |
||||
# notification height to avoid clipping text and/or icons. |
||||
corner_radius = 0 |
||||
|
||||
# Ignore the dbus closeNotification message. |
||||
# Useful to enforce the timeout set by dunst configuration. Without this |
||||
# parameter, an application may close the notification sent before the |
||||
# user defined timeout. |
||||
ignore_dbusclose = false |
||||
|
||||
### Legacy |
||||
|
||||
# Use the Xinerama extension instead of RandR for multi-monitor support. |
||||
# This setting is provided for compatibility with older nVidia drivers that |
||||
# do not support RandR and using it on systems that support RandR is highly |
||||
# discouraged. |
||||
# |
||||
# By enabling this setting dunst will not be able to detect when a monitor |
||||
# is connected or disconnected which might break follow mode if the screen |
||||
# layout changes. |
||||
force_xinerama = false |
||||
|
||||
### mouse |
||||
|
||||
# Defines list of actions for each mouse event |
||||
# Possible values are: |
||||
# * none: Don't do anything. |
||||
# * do_action: If the notification has exactly one action, or one is marked as default, |
||||
# invoke it. If there are multiple and no default, open the context menu. |
||||
# * close_current: Close current notification. |
||||
# * close_all: Close all notifications. |
||||
# These values can be strung together for each mouse event, and |
||||
# will be executed in sequence. |
||||
mouse_left_click = close_current |
||||
mouse_middle_click = do_action, close_current |
||||
mouse_right_click = close_all |
||||
|
||||
# Experimental features that may or may not work correctly. Do not expect them |
||||
# to have a consistent behaviour across releases. |
||||
[experimental] |
||||
# Calculate the dpi to use on a per-monitor basis. |
||||
# If this setting is enabled the Xft.dpi value will be ignored and instead |
||||
# dunst will attempt to calculate an appropriate dpi value for each monitor |
||||
# using the resolution and physical size. This might be useful in setups |
||||
# where there are multiple screens with very different dpi values. |
||||
per_monitor_dpi = false |
||||
|
||||
[shortcuts] |
||||
|
||||
# Shortcuts are specified as [modifier+][modifier+]...key |
||||
# Available modifiers are "ctrl", "mod1" (the alt-key), "mod2", |
||||
# "mod3" and "mod4" (windows-key). |
||||
# Xev might be helpful to find names for keys. |
||||
|
||||
# Close notification. |
||||
close = ctrl+space |
||||
|
||||
# Close all notifications. |
||||
close_all = ctrl+shift+space |
||||
|
||||
# Redisplay last message(s). |
||||
# On the US keyboard layout "grave" is normally above TAB and left |
||||
# of "1". Make sure this key actually exists on your keyboard layout, |
||||
# e.g. check output of 'xmodmap -pke' |
||||
history = ctrl+grave |
||||
|
||||
# Context menu. |
||||
context = ctrl+shift+period |
||||
|
||||
[urgency_low] |
||||
# IMPORTANT: colors have to be defined in quotation marks. |
||||
# Otherwise the "#" and following would be interpreted as a comment. |
||||
background = "#222222" |
||||
foreground = "#888888" |
||||
timeout = 10 |
||||
# Icon for notifications with low urgency, uncomment to enable |
||||
#icon = /path/to/icon |
||||
|
||||
[urgency_normal] |
||||
background = "#285577" |
||||
foreground = "#ffffff" |
||||
timeout = 10 |
||||
# Icon for notifications with normal urgency, uncomment to enable |
||||
#icon = /path/to/icon |
||||
|
||||
[urgency_critical] |
||||
background = "#900000" |
||||
foreground = "#ffffff" |
||||
frame_color = "#ff0000" |
||||
timeout = 0 |
||||
# Icon for notifications with critical urgency, uncomment to enable |
||||
#icon = /path/to/icon |
||||
|
||||
# Every section that isn't one of the above is interpreted as a rules to |
||||
# override settings for certain messages. |
||||
# |
||||
# Messages can be matched by |
||||
# appname (discouraged, see desktop_entry) |
||||
# body |
||||
# category |
||||
# desktop_entry |
||||
# icon |
||||
# match_transient |
||||
# msg_urgency |
||||
# stack_tag |
||||
# summary |
||||
# |
||||
# and you can override the |
||||
# background |
||||
# foreground |
||||
# format |
||||
# frame_color |
||||
# fullscreen |
||||
# new_icon |
||||
# set_stack_tag |
||||
# set_transient |
||||
# timeout |
||||
# urgency |
||||
# |
||||
# Shell-like globbing will get expanded. |
||||
# |
||||
# Instead of the appname filter, it's recommended to use the desktop_entry filter. |
||||
# GLib based applications export their desktop-entry name. In comparison to the appname, |
||||
# the desktop-entry won't get localized. |
||||
# |
||||
# SCRIPTING |
||||
# You can specify a script that gets run when the rule matches by |
||||
# setting the "script" option. |
||||
# The script will be called as follows: |
||||
# script appname summary body icon urgency |
||||
# where urgency can be "LOW", "NORMAL" or "CRITICAL". |
||||
# |
||||
# NOTE: if you don't want a notification to be displayed, set the format |
||||
# to "". |
||||
# NOTE: It might be helpful to run dunst -print in a terminal in order |
||||
# to find fitting options for rules. |
||||
|
||||
# Disable the transient hint so that idle_threshold cannot be bypassed from the |
||||
# client |
||||
#[transient_disable] |
||||
# match_transient = yes |
||||
# set_transient = no |
||||
# |
||||
# Make the handling of transient notifications more strict by making them not |
||||
# be placed in history. |
||||
#[transient_history_ignore] |
||||
# match_transient = yes |
||||
# history_ignore = yes |
||||
|
||||
# fullscreen values |
||||
# show: show the notifications, regardless if there is a fullscreen window opened |
||||
# delay: displays the new notification, if there is no fullscreen window active |
||||
# If the notification is already drawn, it won't get undrawn. |
||||
# pushback: same as delay, but when switching into fullscreen, the notification will get |
||||
# withdrawn from screen again and will get delayed like a new notification |
||||
#[fullscreen_delay_everything] |
||||
# fullscreen = delay |
||||
#[fullscreen_show_critical] |
||||
# msg_urgency = critical |
||||
# fullscreen = show |
||||
|
||||
#[espeak] |
||||
# summary = "*" |
||||
# script = dunst_espeak.sh |
||||
|
||||
#[script-test] |
||||
# summary = "*script*" |
||||
# script = dunst_test.sh |
||||
|
||||
#[ignore] |
||||
# # This notification will not be displayed |
||||
# summary = "foobar" |
||||
# format = "" |
||||
|
||||
#[history-ignore] |
||||
# # This notification will not be saved in history |
||||
# summary = "foobar" |
||||
# history_ignore = yes |
||||
|
||||
#[skip-display] |
||||
# # This notification will not be displayed, but will be included in the history |
||||
# summary = "foobar" |
||||
# skip_display = yes |
||||
|
||||
#[signed_on] |
||||
# appname = Pidgin |
||||
# summary = "*signed on*" |
||||
# urgency = low |
||||
# |
||||
#[signed_off] |
||||
# appname = Pidgin |
||||
# summary = *signed off* |
||||
# urgency = low |
||||
# |
||||
#[says] |
||||
# appname = Pidgin |
||||
# summary = *says* |
||||
# urgency = critical |
||||
# |
||||
#[twitter] |
||||
# appname = Pidgin |
||||
# summary = *twitter.com* |
||||
# urgency = normal |
||||
# |
||||
#[stack-volumes] |
||||
# appname = "some_volume_notifiers" |
||||
# set_stack_tag = "volume" |
||||
# |
||||
# vim: ft=cfg |
@ -0,0 +1,17 @@
|
||||
external-url-viewer "urlview" |
||||
bind-key j down |
||||
bind-key k up |
||||
bind-key G end |
||||
bind-key g home |
||||
bind-key d pagedown |
||||
bind-key u pageup |
||||
bind-key l open |
||||
bind-key h quit |
||||
bind-key U show-urls |
||||
|
||||
browser firefox |
||||
macro , open-in-browser |
||||
macro v set browser "tsp mpv %u" ; open-in-browser ; set browser firefox |
||||
macro w set browser "w3m %u" ; open-in-browser ; set browser firefox |
||||
macro i set browser "feh %u" ; open-in-browser ; set browser firefox |
||||
macro t set browser "tsp tremc %u" ; open-in-browser ; set browser firefox |
@ -0,0 +1,51 @@
|
||||
"query:Starred:flags # \"a\"" |
||||
|
||||
https://www.linuxjournal.com/node/feed |
||||
http://chesslevel0.blogspot.com/feeds/posts/default "chess" |
||||
http://chessplayeratlarge.blogspot.com/feeds/posts/default "chess" |
||||
https://lukesmith.xyz/rss.xml "blog" |
||||
https://videos.lukesmith.xyz/feeds/videos.xml?accountId=3 "peertube" "~Luke Smith (Peertube) |
||||
https://lukesmith.xyz/youtube.xml "youtube" "~Luke Smith (Youtube)" |
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCVls1GmFKf6WlTraIb_IaJg "youtube" |
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UC7YOGHUfC1Tb6E4pudI9STA "youtube" |
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCsnGwSIHyoYN0kiINAGUKxg "youtube" |
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCciKHCG06rnq31toLTfAiyw "youtube" |
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCjr2bPAyPV7t35MvcgT3W8Q "youtube" |
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCs6KfncB4OV6Vug4o_bzijg "youtube" |
||||
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCJY2MPA8T9OTG7dw_MqDlUg "youtube" |
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCh6hhcX1Oj8-HiJSMRhjNvQ "youtube" |
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCAuUUnT6oDeKwE6v1NGQxug "youtube" |
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UC8IcUKp2nO03yr7GfZgRPoA "youtube" |
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCWQF7WVi_4ts60rklPz4QeQ "youtube" |
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UC7teONMQPF1_g3YCv-lEtfQ "youtube" |
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCcYzLCs3zrQIBVHYA1sK2sw "youtube" |
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCS0s6BFzIcvC2gTH52_vBEA "youtube" |
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCOCZxe0gNRA7c3PGWPGoiGg "youtube" |
||||
|
||||
https://medium.com/feed/@kentbeck_7670 "medium" |
||||
https://blog.gautamsuraj.com.np/rss.xml "blog" |
||||
https://vimtricks.substack.com/feed "blog" "vim" |
||||
https://blog.ploeh.dk/atom.xml |
||||
|
||||
https://www.linuxbabe.com/feed "blog" "linux" |
||||
|
||||
https://dev.lemmy.ml/feeds/c/programming.xml |
||||
https://dev.lemmy.ml/feeds/c/privacy.xml |
||||
https://dev.lemmy.ml/feeds/c/unixporn.xml |
||||
https://dev.lemmy.ml/feeds/c/commandline.xml |
||||
https://dev.lemmy.ml/feeds/c/music.xml |
||||
https://dev.lemmy.ml/feeds/c/selfhosted.xml |
||||
https://dev.lemmy.ml/feeds/c/wallpapers.xml |
||||
https://dev.lemmy.ml/feeds/c/musicnews.xml |
||||
https://dev.lemmy.ml/feeds/c/dataprivacy.xml |
||||
|
||||
https://boards.4channel.org/wg/index.rss "4chan" |
||||
|
||||
http://blog.cleancoder.com/atom.xml "blog" "programming" |
||||
https://martinfowler.com/feed.atom "blog" "programming" |
||||
|
||||
https://nitter.net/rihanna/rss |
||||
https://nitter.net/unclebobmartin/rss |
||||
https://nitter.net/martinfowler/rss |
||||
https://nitter.net/KentBeck/rss |
@ -0,0 +1,15 @@
|
||||
decorations none |
||||
transparent false |
||||
dockapp_mode none |
||||
geometry 5x1-400+0 |
||||
max_geometry 5x1-325-10 |
||||
kludges force_icons_size |
||||
grow_gravity NE |
||||
icon_gravity NE |
||||
icon_size 12 |
||||
sticky true |
||||
#window_strut none |
||||
window_type dock |
||||
window_layer bottom |
||||
skip_taskbar true |
||||
parent_bg true |
@ -0,0 +1,483 @@
|
||||
" vim: filetype=vifm : |
||||
" Sample configuration file for vifm (last updated: 2 June, 2019) |
||||
" You can edit this file by hand. |
||||
" The " character at the beginning of a line comments out the line. |
||||
" Blank lines are ignored. |
||||
" The basic format for each item is shown with an example. |
||||
|
||||
" ------------------------------------------------------------------------------ |
||||
|
||||
" Command used to edit files in various contexts. The default is vim. |
||||
" If you would like to use another vi clone such as Elvis or Vile |
||||
" you will need to change this setting. |
||||
|
||||
set vicmd=vim |
||||
" set vicmd=elvis\ -G\ termcap |
||||
" set vicmd=vile |
||||
|
||||
" This makes vifm perform file operations on its own instead of relying on |
||||
" standard utilities like `cp`. While using `cp` and alike is a more universal |
||||
" solution, it's also much slower when processing large amounts of files and |
||||
" doesn't support progress measuring. |
||||
|
||||
set syscalls |
||||
|
||||
" Trash Directory |
||||
" The default is to move files that are deleted with dd or :d to |
||||
" the trash directory. If you change this you will not be able to move |
||||
" files by deleting them and then using p to put the file in the new location. |
||||
" I recommend not changing this until you are familiar with vifm. |
||||
" This probably shouldn't be an option. |
||||
|
||||
set trash |
||||
|
||||
" This is how many directories to store in the directory history. |
||||
|
||||
set history=100 |
||||
|
||||
" Automatically resolve symbolic links on l or Enter. |
||||
|
||||
set nofollowlinks |
||||
|
||||
" With this option turned on you can run partially entered commands with |
||||
" unambiguous beginning using :! (e.g. :!Te instead of :!Terminal or :!Te<tab>). |
||||
|
||||
" set fastrun |
||||
|
||||
" Natural sort of (version) numbers within text. |
||||
|
||||
set sortnumbers |
||||
|
||||
" Maximum number of changes that can be undone. |
||||
|
||||
set undolevels=100 |
||||
|
||||
" Use Vim's format of help file (has highlighting and "hyperlinks"). |
||||
" If you would rather use a plain text help file set novimhelp. |
||||
|
||||
set vimhelp |
||||
|
||||
" If you would like to run an executable file when you |
||||
" press return on the file name set this. |
||||
|
||||
set norunexec |
||||
|
||||
" Selected color scheme |
||||
|
||||
colorscheme Default |
||||
|
||||
" Format for displaying time in file list. For example: |
||||
" TIME_STAMP_FORMAT=%m/%d-%H:%M |
||||
" See man date or man strftime for details. |
||||
|
||||
set timefmt=%m/%d\ %H:%M |
||||
|
||||
" Show list of matches on tab completion in command-line mode |
||||
|
||||
set wildmenu |
||||
|
||||
" Display completions in a form of popup with descriptions of the matches |
||||
|
||||
set wildstyle=popup |
||||
|
||||
" Display suggestions in normal, visual and view modes for keys, marks and |
||||
" registers (at most 5 files). In other view, when available. |
||||
|
||||
set suggestoptions=normal,visual,view,otherpane,keys,marks,registers |
||||
|
||||
" Ignore case in search patterns unless it contains at least one uppercase |
||||
" letter |
||||
|
||||
set ignorecase |
||||
set smartcase |
||||
|
||||
" Don't highlight search results automatically |
||||
|
||||
set nohlsearch |
||||
|
||||
" Use increment searching (search while typing) |
||||
set incsearch |
||||
|
||||
" Try to leave some space from cursor to upper/lower border in lists |
||||
|
||||
set scrolloff=4 |
||||
|
||||
" Don't do too many requests to slow file systems |
||||
|
||||
if !has('win') |
||||
set slowfs=curlftpfs |
||||
endif |
||||
|
||||
" Set custom status line look |
||||
|
||||
set statusline=" Hint: %z%= %A %10u:%-7g %15s %20d " |
||||
|
||||
" ------------------------------------------------------------------------------ |
||||
|
||||
" :mark mark /full/directory/path [filename] |
||||
|
||||
mark b ~/bin/ |
||||
mark h ~/ |
||||
|
||||
" ------------------------------------------------------------------------------ |
||||
|
||||
" :com[mand][!] command_name action |
||||
" The following macros can be used in a command |
||||
" %a is replaced with the user arguments. |
||||
" %c the current file under the cursor. |
||||
" %C the current file under the cursor in the other directory. |
||||
" %f the current selected file, or files. |
||||
" %F the current selected file, or files in the other directory. |
||||
" %b same as %f %F. |
||||
" %d the current directory name. |
||||
" %D the other window directory name. |
||||
" %m run the command in a menu window |
||||
|
||||
command! df df -h %m 2> /dev/null |
||||
command! diff vim -d %f %F |
||||
command! zip zip -r %f.zip %f |
||||
command! run !! ./%f |
||||
command! make !!make %a |
||||
command! mkcd :mkdir %a | cd %a |
||||
command! vgrep vim "+grep %a" |
||||
command! reload :write | restart |
||||
|
||||
" ------------------------------------------------------------------------------ |
||||
|
||||
" The file type is for the default programs to be used with |
||||
" a file extension. |
||||
" :filetype pattern1,pattern2 defaultprogram,program2 |
||||
" :fileviewer pattern1,pattern2 consoleviewer |
||||
" The other programs for the file type can be accessed with the :file command |
||||
" The command macros %f, %F, %d, %F may be used in the commands. |
||||
" The %a macro is ignored. To use a % you must put %%. |
||||
|
||||
" For automated FUSE mounts, you must register an extension with :file[x]type |
||||
" in one of following formats: |
||||
" |
||||
" :filetype extensions FUSE_MOUNT|some_mount_command using %SOURCE_FILE and %DESTINATION_DIR variables |
||||
" %SOURCE_FILE and %DESTINATION_DIR are filled in by vifm at runtime. |
||||
" A sample line might look like this: |
||||
" :filetype *.zip,*.jar,*.war,*.ear FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR |
||||
" |
||||
" :filetype extensions FUSE_MOUNT2|some_mount_command using %PARAM and %DESTINATION_DIR variables |
||||
" %PARAM and %DESTINATION_DIR are filled in by vifm at runtime. |
||||
" A sample line might look like this: |
||||
" :filetype *.ssh FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR |
||||
" %PARAM value is filled from the first line of file (whole line). |
||||
" Example first line for SshMount filetype: root@127.0.0.1:/ |
||||
" |
||||
" You can also add %CLEAR if you want to clear screen before running FUSE |
||||
" program. |
||||
|
||||
" Pdf |
||||
filextype *.pdf zathura %c %i &, apvlv %c, xpdf %c |
||||
fileviewer *.pdf pdftotext -nopgbrk %c - |
||||
|
||||
" PostScript |
||||
filextype *.ps,*.eps,*.ps.gz |
||||
\ {View in zathura} |
||||
\ zathura %f, |
||||
\ {View in gv} |
||||
\ gv %c %i &, |
||||
|
||||
" Djvu |
||||
filextype *.djvu |
||||
\ {View in zathura} |
||||
\ zathura %f, |
||||
\ {View in apvlv} |
||||
\ apvlv %f, |
||||
|
||||
" Audio |
||||
filetype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus |
||||
\ {Play using ffplay} |
||||
\ ffplay -nodisp -autoexit %c, |
||||
\ {Play using MPlayer} |
||||
\ mplayer %f, |
||||
fileviewer *.mp3 mp3info |
||||
fileviewer *.flac soxi |
||||
|
||||
" Video |
||||
filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob, |
||||
\*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx, |
||||
\*.as[fx] |
||||
\ {View using ffplay} |
||||
\ ffplay -fs -autoexit %f, |
||||
\ {View using Dragon} |
||||
\ dragon %f:p, |
||||
\ {View using mplayer} |
||||
\ mplayer %f, |
||||
fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob, |
||||
\*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx, |
||||
\*.as[fx] |
||||
\ ffprobe -pretty %c 2>&1 |
||||
|
||||
" Web |
||||
filextype *.html,*.htm |
||||
\ {Open with dwb} |
||||
\ dwb %f %i &, |
||||
\ {Open with firefox} |
||||
\ firefox %f &, |
||||
\ {Open with uzbl} |
||||
\ uzbl-browser %f %i &, |
||||
filetype *.html,*.htm links, lynx |
||||
|
||||
" Object |
||||
filetype *.o nm %f | less |
||||
|
||||
" Man page |
||||
filetype *.[1-8] man ./%c |
||||
fileviewer *.[1-8] man ./%c | col -b |
||||
|
||||
" Images |
||||
filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm |
||||
\ {View in sxiv} |
||||
\ sxiv %f, |
||||
\ {View in gpicview} |
||||
\ gpicview %c, |
||||
\ {View in shotwell} |
||||
\ shotwell, |
||||
fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm |
||||
\ identify %f |
||||
|
||||
" OpenRaster |
||||
filextype *.ora |
||||
\ {Edit in MyPaint} |
||||
\ mypaint %f, |
||||
|
||||
" Mindmap |
||||
filextype *.vym |
||||
\ {Open with VYM} |
||||
\ vym %f &, |
||||
|
||||
" MD5 |
||||
filetype *.md5 |
||||
\ {Check MD5 hash sum} |
||||
\ md5sum -c %f %S, |
||||
|
||||
" SHA1 |
||||
filetype *.sha1 |
||||
\ {Check SHA1 hash sum} |
||||
\ sha1sum -c %f %S, |
||||
|
||||
" SHA256 |
||||
filetype *.sha256 |
||||
\ {Check SHA256 hash sum} |
||||
\ sha256sum -c %f %S, |
||||
|
||||
" SHA512 |
||||
filetype *.sha512 |
||||
\ {Check SHA512 hash sum} |
||||
\ sha512sum -c %f %S, |
||||
|
||||
" GPG signature |
||||
filetype *.asc |
||||
\ {Check signature} |
||||
\ !!gpg --verify %c, |
||||
|
||||
" Torrent |
||||
filetype *.torrent ktorrent %f & |
||||
fileviewer *.torrent dumptorrent -v %c |
||||
|
||||
" FuseZipMount |
||||
filetype *.zip,*.jar,*.war,*.ear,*.oxt,*.apkg |
||||
\ {Mount with fuse-zip} |
||||
\ FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR, |
||||
\ {View contents} |
||||
\ zip -sf %c | less, |
||||
\ {Extract here} |
||||
\ tar -xf %c, |
||||
fileviewer *.zip,*.jar,*.war,*.ear,*.oxt zip -sf %c |
||||
|
||||
" ArchiveMount |
||||
filetype *.tar,*.tar.bz2,*.tbz2,*.tgz,*.tar.gz,*.tar.xz,*.txz |
||||
\ {Mount with archivemount} |
||||
\ FUSE_MOUNT|archivemount %SOURCE_FILE %DESTINATION_DIR, |
||||
fileviewer *.tgz,*.tar.gz tar -tzf %c |
||||
fileviewer *.tar.bz2,*.tbz2 tar -tjf %c |
||||
fileviewer *.tar.txz,*.txz xz --list %c |
||||
fileviewer *.tar tar -tf %c |
||||
|
||||
" Rar2FsMount and rar archives |
||||
filetype *.rar |
||||
\ {Mount with rar2fs} |
||||
\ FUSE_MOUNT|rar2fs %SOURCE_FILE %DESTINATION_DIR, |
||||
fileviewer *.rar unrar v %c |
||||
|
||||
" IsoMount |
||||
filetype *.iso |
||||
\ {Mount with fuseiso} |
||||
\ FUSE_MOUNT|fuseiso %SOURCE_FILE %DESTINATION_DIR, |
||||
|
||||
" SshMount |
||||
filetype *.ssh |
||||
\ {Mount with sshfs} |
||||
\ FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR %FOREGROUND, |
||||
|
||||
" FtpMount |
||||
filetype *.ftp |
||||
\ {Mount with curlftpfs} |
||||
\ FUSE_MOUNT2|curlftpfs -o ftp_port=-,,disable_eprt %PARAM %DESTINATION_DIR %FOREGROUND, |
||||
|
||||
" Fuse7z and 7z archives |
||||
filetype *.7z |
||||
\ {Mount with fuse-7z} |
||||
\ FUSE_MOUNT|fuse-7z %SOURCE_FILE %DESTINATION_DIR, |
||||
fileviewer *.7z 7z l %c |
||||
|
||||
" Office files |
||||
filextype *.odt,*.doc,*.docx,*.xls,*.xlsx,*.odp,*.pptx libreoffice %f & |
||||
fileviewer *.doc catdoc %c |
||||
fileviewer *.docx docx2txt.pl %f - |
||||
|
||||
" TuDu files |
||||
filetype *.tudu tudu -f %c |
||||
|
||||
" Qt projects |
||||
filextype *.pro qtcreator %f & |
||||
|
||||
" Directories |
||||
filextype */ |
||||
\ {View in thunar} |
||||
\ Thunar %f &, |
||||
|
||||
" Syntax highlighting in preview |
||||
" |
||||
" Explicitly set highlight type for some extensions |
||||
" |
||||
" 256-color terminal |
||||
" fileviewer *.[ch],*.[ch]pp highlight -O xterm256 -s dante --syntax c %c |
||||
" fileviewer Makefile,Makefile.* highlight -O xterm256 -s dante --syntax make %c |
||||
" |
||||
" 16-color terminal |
||||
" fileviewer *.c,*.h highlight -O ansi -s dante %c |
||||
" |
||||
" Or leave it for automatic detection |
||||
" |
||||
" fileviewer *[^/] pygmentize -O style=monokai -f console256 -g |
||||
|
||||
" Displaying pictures in terminal |
||||
" |
||||
" fileviewer *.jpg,*.png shellpic %c |
||||
|
||||
" Open all other files with default system programs (you can also remove all |
||||
" :file[x]type commands above to ensure they don't interfere with system-wide |
||||
" settings). By default all unknown files are opened with 'vi[x]cmd' |
||||
" uncommenting one of lines below will result in ignoring 'vi[x]cmd' option |
||||
" for unknown file types. |
||||
" For *nix: |
||||
" filetype * xdg-open |
||||
" For OS X: |
||||
" filetype * open |
||||
" For Windows: |
||||
" filetype * start, explorer |
||||
|
||||
" ------------------------------------------------------------------------------ |
||||
|
||||
" What should be saved automatically between vifm sessions. Drop "savedirs" |
||||
" value if you don't want vifm to remember last visited directories for you. |
||||
set vifminfo=dhistory,savedirs,chistory,state,tui,shistory, |
||||
\phistory,fhistory,dirstack,registers,bookmarks,bmarks |
||||
|
||||
" ------------------------------------------------------------------------------ |
||||
|
||||
" Examples of configuring both panels |
||||
|
||||
" Customize view columns a bit (enable ellipsis for truncated file names) |
||||
" |
||||
" set viewcolumns=-{name}..,6{}. |
||||
|
||||
" Filter-out build and temporary files |
||||
" |
||||
" filter! /^.*\.(lo|o|d|class|py[co])$|.*~$/ |
||||
|
||||
" ------------------------------------------------------------------------------ |
||||
|
||||
" Sample mappings |
||||
|
||||
" Start shell in current directory |
||||
nnoremap s :shell<cr> |
||||
|
||||
" Display sorting dialog |
||||
nnoremap S :sort<cr> |
||||
|
||||
" Toggle visibility of preview window |
||||
nnoremap w :view<cr> |
||||
vnoremap w :view<cr>gv |
||||
|
||||
" Open file in existing instance of gvim |
||||
nnoremap o :!gvim --remote-tab-silent %f<cr> |
||||
" Open file in new instance of gvim |
||||
nnoremap O :!gvim %f<cr> |
||||
|
||||
" Open file in the background using its default program |
||||
nnoremap gb :file &<cr>l |
||||
|
||||
" Interaction with system clipboard |
||||
if has('win') |
||||
" Yank current directory path to Windows clipboard with forward slashes |
||||
nnoremap yp :!echo %"d:gs!\!/! %i | clip<cr> |
||||
" Yank path to current file to Windows clipboard with forward slashes |
||||
nnoremap yf :!echo %"c:gs!\!/! %i | clip<cr> |
||||
elseif executable('xclip') |
||||
" Yank current directory path into the clipboard |
||||
nnoremap yd :!echo %d | xclip %i<cr> |
||||
" Yank current file path into the clipboard |
||||
nnoremap yf :!echo %c:p | xclip %i<cr> |
||||
elseif executable('xsel') |
||||
" Yank current directory path into primary and selection clipboards |
||||
nnoremap yd :!echo -n %d | xsel --input --primary %i && |
||||
\ echo -n %d | xsel --clipboard --input %i<cr> |
||||
" Yank current file path into into primary and selection clipboards |
||||
nnoremap yf :!echo -n %c:p | xsel --input --primary %i && |
||||
\ echo -n %c:p | xsel --clipboard --input %i<cr> |
||||
endif |
||||
|
||||
" Mappings for faster renaming |
||||
nnoremap I cw<c-a> |
||||
nnoremap cc cw<c-u> |
||||
nnoremap A cw |
||||
|
||||
" Open console in current directory |
||||
nnoremap ,t :!xterm &<cr> |
||||
|
||||
" Open editor to edit vifmrc and apply settings after returning to vifm |
||||
nnoremap ,c :write | edit $MYVIFMRC | restart<cr> |
||||
" Open gvim to edit vifmrc |
||||
nnoremap ,C :!gvim --remote-tab-silent $MYVIFMRC &<cr> |
||||
|
||||
" Toggle wrap setting on ,w key |
||||
nnoremap ,w :set wrap!<cr> |
||||
|
||||
" Example of standard two-panel file managers mappings |
||||
nnoremap <f3> :!less %f<cr> |
||||
nnoremap <f4> :edit<cr> |
||||
nnoremap <f5> :copy<cr> |
||||
nnoremap <f6> :move<cr> |
||||
nnoremap <f7> :mkdir<space> |
||||
nnoremap <f8> :delete<cr> |
||||
|
||||
" ------------------------------------------------------------------------------ |
||||
|
||||
" Various customization examples |
||||
|
||||
" Use ag (the silver searcher) instead of grep |
||||
" |
||||
" set grepprg='ag --line-numbers %i %a %s' |
||||
|
||||
" Add additional place to look for executables |
||||
" |
||||
" let $PATH = $HOME.'/bin/fuse:'.$PATH |
||||
|
||||
" Block particular shortcut |
||||
" |
||||
" nnoremap <left> <nop> |
||||
|
||||
" Export IPC name of current instance as environment variable and use it to |
||||
" communicate with the instance later. |
||||
" |
||||
" It can be used in some shell script that gets run from inside vifm, for |
||||
" example, like this: |
||||
" vifm --server-name "$VIFM_SERVER_NAME" --remote +"cd '$PWD'" |
||||
" |
||||
" let $VIFM_SERVER_NAME = v:servername |
@ -0,0 +1,59 @@
|
||||
call plug#begin('~/.vim/plugged') |
||||
|
||||
Plug 'artur-shaik/vim-javacomplete2' |
||||
Plug 'apalmer1377/factorus' |
||||
Plug 'junegunn/fzf.vim' |
||||
Plug 'dense-analysis/ale' |
||||
|
||||
call plug#end() |
||||
|
||||
" javacomplete2 |
||||
autocmd FileType java setlocal omnifunc=javacomplete#Complete |
||||
let g:JavaComplete_ClosingBrace = 1 |
||||
|
||||
let g:mapleader = " " |
||||
let g:netrw_liststyle = 3 |
||||
let g:netrw_banner = 0 |
||||
let g:netrw_winsize = 25 |
||||
let g:netrw_browse_split = 4 |
||||
let g:netrw_altv = 1 |
||||
|
||||
syntax on |
||||
|
||||
set completeopt=menuone,noinsert |
||||
set ts=4 sw=4 |
||||
set relativenumber number |
||||
set nohlsearch |
||||
set splitbelow splitright |
||||
|
||||
nnoremap <C-h> <C-w>h |
||||
nnoremap <C-j> <C-w>j |
||||
nnoremap <C-k> <C-w>k |
||||
nnoremap <C-l> <C-w>l |
||||
nnoremap S :%s//g<Left><Left> |
||||
nnoremap <Leader>i :JCimportAddSmart<CR> |
||||
nnoremap <Leader>I <Plug>(JavaComplete-Imports-Add) |
||||
nnoremap <Leader>a <Plug>(JavaComplete-Imports-AddMissing) |
||||
nnoremap <Leader>r <Plug>(JavaComplete-Imports-RemoveUnused) |
||||
nnoremap <Leader>c :JCclassNew |
||||
nnoremap <Leader>gg :JCgenerateAccessorGetter<CR> |
||||
nnoremap <Leader>gc :JCgenerateConstructor<CR> |
||||
nnoremap <Leader>f :Files<CR> |
||||
nnoremap <Leader>p :bp<CR> |
||||
nnoremap <Leader>n :bn<CR> |
||||
nnoremap <Leader>t :!clear && make test<CR> |
||||
nnoremap <Leader>b :!clear && make package<CR> |
||||
nnoremap <Leader>m :make |
||||
nnoremap <Leader>v :e ~/.vim/vimrc<CR> |
||||
nnoremap <Leader>s :source ~/.vim/vimrc<CR> |
||||
nnoremap <Leader>e :Vex<CR> |
||||
nnoremap zz ZZ |
||||
nnoremap zq ZQ |
||||
inoremap <C-@> <C-X><C-o> |
||||
nnoremap <Leader>j :m .+1<CR> |
||||
nnoremap <Leader>k :m .-2<CR> |
||||
vnoremap <Leader>j :m '>+1<CR> |
||||
vnoremap <Leader>k :m '<-2<CR> |
||||
|
||||
" guile |
||||
nnoremap <Leader>gb gg^i#!/usr/bin/guile \<CR>-e main -s<CR>!#<CR><CR>(define (main args)<CR><CR>)<CR><Esc>kk |
@ -0,0 +1,40 @@
|
||||
Config { font = "xft:Jetbrains Mono:size=8:bold:antialias=true" |
||||
, additionalFonts = [] |
||||
, borderColor = "black" |
||||
, border = TopB |
||||
, bgColor = "black" |
||||
, fgColor = "grey" |
||||
, alpha = 125 |
||||
, position = Top |
||||
, textOffset = -1 |
||||
, iconOffset = -1 |
||||
, lowerOnStart = True |
||||
, pickBroadest = False |
||||
, persistent = False |
||||
, hideOnStart = False |
||||
, iconRoot = "." |
||||
, allDesktops = True |
||||
, overrideRedirect = True |
||||
, commands = [ Run Cpu [] 10 |
||||
, Run Memory ["-t","Mem: <usedratio>%"] 10 |
||||
, Run Swap [] 10 |
||||
, Run Date "%a %b %_d" "date" 10 |
||||
, Run Date "%H:%M" "time" 10 |
||||
, Run StdinReader |
||||
, Run Com "volume" [] "volume" 10 |
||||
, Run Battery [ "--template" |
||||
, "<acstatus>" |
||||
, "--" -- battery specific options |
||||
-- discharging status |
||||
, "-o" , "<left>% (<timeleft>)" |
||||
-- AC "on" status |
||||
, "-O" , "Charging" |
||||
-- charged status |
||||
, "-i" , "100%" |
||||
] 50 |
||||
] |
||||
, sepChar = "%" |
||||
, alignSep = "}{" |
||||
, template = "%StdinReader% | %cpu% | %memory% | %swap% }\ |
||||
\{ <icon=/home/krrish/volume.xbm/> %volume% | <icon=/home/krrish/battery.xbm/> %battery% | %date% | %time% " |
||||
} |
@ -0,0 +1,81 @@
|
||||
import XMonad |
||||
import XMonad.Hooks.DynamicLog |
||||
import XMonad.Hooks.SetWMName |
||||
import XMonad.Hooks.ManageDocks |
||||
import XMonad.Util.NamedWindows |
||||
import XMonad.Util.Run |
||||
import XMonad.Util.Run(spawnPipe) |
||||
import XMonad.Util.EZConfig(additionalKeys) |
||||
import XMonad.Layout.Spacing |
||||
import XMonad.Prompt |
||||
import XMonad.Prompt.Shell |
||||
import System.IO |
||||
import XMonad.Actions.SimpleDate |
||||
import XMonad.Actions.WindowBringer |
||||
import XMonad.Util.SpawnOnce |
||||
|
||||
|
||||
import qualified XMonad.StackSet as W |
||||
|
||||
myStartupHook :: X () |
||||
myStartupHook = do |
||||
spawnOnce "nitrogen --set-scaled --random pictures/wallpapers/ &" |
||||
spawnOnce "xcompmgr &" |
||||
spawnOnce "dunst &" |
||||
spawnOnce "nm-applet &" |
||||
spawnOnce "stalonetray --config /home/krrish/.config/stalonetray/stalonetrayrc &" |
||||
spawnOnce "transmission-daemon &" |
||||
spawnOnce "setxkbmap -option ctrl:nocaps &" |
||||
spawnOnce "xset -b &" |
||||
spawnOnce "nepalical &" |
||||
setWMName "LG3D" |
||||
|
||||
|
||||
main :: IO () |
||||
main = do |
||||
xmproc <- spawnPipe "xmobar /home/krrish/.config/xmobar/xmobarrc" |
||||
|
||||
xmonad $ def |
||||
{ manageHook = manageDocks <+> manageHook def |
||||
, layoutHook = avoidStruts $ spacingRaw True (Border 0 4 4 4) True (Border 4 4 4 4) True $layoutHook def |
||||
, startupHook = myStartupHook |
||||
, terminal = "st" |
||||
, handleEventHook = handleEventHook def <+> docksEventHook |
||||
, logHook = dynamicLogWithPP xmobarPP |
||||
{ ppOutput = hPutStrLn xmproc |
||||
, ppTitle = xmobarColor "green" "" . shorten 50 |
||||
} |
||||
, modMask = mod4Mask |
||||
, focusedBorderColor = "#6B8E23" |
||||
} `additionalKeys` |
||||
[ ((controlMask .|. mod1Mask, xK_l), spawn "slock") |
||||
, ((controlMask, xK_Print), spawn "sleep 0.2; scrot -s -q 100 /home/krrish/pictures/%Y-%m-%d-%H:%M:%S.png") |
||||
, ((mod1Mask, xK_m), spawn "st cmus") |
||||
, ((mod4Mask .|. shiftMask, xK_q), spawn "poweroff") |
||||
, ((mod4Mask, xK_p), spawn "dmenu_run -c -l 9 -p run: ") |
||||
, ((mod4Mask, xK_d), date) |
||||
, ((mod4Mask, xK_s), spawn "search") |
||||
, ((mod4Mask, xK_y), spawn "st node /home/krrish/programs/youtube-cli-app/youtube.js") |
||||
, ((mod4Mask .|. shiftMask, xK_r), spawn "reboot") |
||||
, ((mod4Mask, xK_b), spawn "notify-send 'Firefox' 'Opening firefox'; firefox") |
||||
, ((mod4Mask .|. controlMask, xK_x), shellPrompt def) |
||||
, ((mod4Mask .|. shiftMask, xK_f), spawn "st vifm") |
||||
, ((mod4Mask .|. shiftMask, xK_t), spawn "stalonetray -p") |
||||
, ((mod4Mask .|. shiftMask, xK_n), spawn "st newsboat") |
||||
, ((mod4Mask .|. shiftMask, xK_x), spawn "st vim .xmonad/xmonad.hs") |
||||
, ((mod4Mask .|. shiftMask, xK_u), spawn "st sup pacman -Syu") |
||||
, ((mod4Mask .|. shiftMask, xK_e), spawn "st setxkbmap us") |
||||
, ((mod4Mask .|. shiftMask, xK_v), spawn "st sudo protonvpn c -f") |
||||
, ((0, xK_Print), spawn "scrot -q 100 /home/krrish/pictures/%Y-%m-%d-%H:%M:%S.png") |
||||
, ((0, 0x1008FF11), spawn "pactl set-sink-volume @DEFAULT_SINK@ -5%") |
||||
, ((0, 0x1008FF13), spawn "pactl set-sink-volume @DEFAULT_SINK@ +5%") |
||||
, ((mod4Mask .|. shiftMask, xK_m), spawn "pactl set-sink-volume @DEFAULT_SINK@ -5%") |
||||
, ((mod4Mask .|. shiftMask, xK_p), spawn "pactl set-sink-volume @DEFAULT_SINK@ +5%") |
||||
, ((0, 0x1008FF12), spawn "pactl set-sink-mute @DEFAULT_SINK@ toggle") |
||||
, ((0, 0x1008FF02), spawn "~/scripts/brightness 100") |
||||
, ((0, 0x1008FF03), spawn "~/scripts/brightness -100") |
||||
, ((mod4Mask, xK_o), spawn "rofi -show run") |
||||
|
||||
, ((mod4Mask .|. shiftMask, xK_g), gotoMenu) |
||||
, ((mod4Mask .|. shiftMask, xK_b), bringMenu) |
||||
] |
Loading…
Reference in new issue