Skip to content

Commit

Permalink
add new rofi launchers
Browse files Browse the repository at this point in the history
  • Loading branch information
beaussan committed Dec 15, 2022
1 parent 0568577 commit 44270b3
Show file tree
Hide file tree
Showing 18 changed files with 1,237 additions and 28 deletions.
5 changes: 3 additions & 2 deletions default.conf.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
- defaults:
link:
# relink: true
# relink: true
create: true
force: true

- clean: ['~']
- clean: ["~"]

- link:
~/.config/espanso: general/espanso
Expand All @@ -28,6 +28,7 @@
~/.compton.conf: general/compton.conf
~/.tmux.conf: general/tmux.conf
~/.tmux.conf.local: general/tmux.conf.local
~/.config/rofi: general/rofi
~/.config/termite/config: general/termite.conf
~/.config/yay/config.json: general/yay.json
~/.config/fontconfig/fonts.conf: general/font.conf
Binary file added general/bin/fly
Binary file not shown.
55 changes: 34 additions & 21 deletions general/i3config
Original file line number Diff line number Diff line change
Expand Up @@ -76,44 +76,51 @@ hide_edge_borders both
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod

# start a terminal
# Start a terminal
bindsym $mod+Return exec alacritty
bindsym $mod+shift+t exec xfce4-terminal -e ranger

# obindsym $mod+p exec rofi -show run -terminal alacritty -lines 5 -eh 3 -width 100 -padding 285 -opacity 80 -bw 0 -font "Monoid Nerd Font 11"
bindsym $mod+p exec rofi -no-config -no-lazy-grab -show drun -modi drun -font "Monoid Nerd Font 11"

bindsym $mod+o exec rofi -show window -lines 10 -location 2 -xoffset 0 -width 60
# App executor
bindsym $mod+p exec .config/rofi/launcher/launcher.sh
#bindsym $mod+p exec rofi -no-config -no-lazy-grab -show drun -modi drun -font "Monoid Nerd Font 11"

# Look for open windows
bindsym $mod+o exec .config/rofi/launcher/windows.sh
#bindsym $mod+o exec rofi -show window -lines 10 -xoffset 0 -width 60

# start dmenu (a program launcher)
#bindsym $mod+shift+p edxec --no-startup-id sh ~/scripts//dmenu-run.sh '
bindsym $mod+d exec i3-dmenu-desktop --dmenu='rofi -dmenu -show run -location 1 -xoffset 14 -p "Applications:" -sidebar-mode'
# Emoji finder
bindsym $mod+shift+e exec .config/rofi/launcher/emoji.sh
#bindsym $mod+shift+e exec rofi -show emoji -modi emoji

# emoji finder
bindsym $mod+shift+e exec rofi -show emoji -modi emoji
# Shortcut finder
bindsym $mod+h exec .config/rofi/launcher/i3-keybindings.sh

# Layout easy switcher
bindsym $mod+u exec .config/rofi/launcher/i3-layout.sh

# lock screen
# Lock screen
bindsym $mod+L exec ~/scripts/lock.sh

# Screenshoot
bindsym $mod+s exec flameshot gui

# Move focus right
bindsym $mod+Tab focus right
bindsym $mod+Tab+a focus left
# Move focus left
bindsym $mod+Tab+Shift focus left

# allow focus wraping
force_focus_wrapping no

# change focus
#bindsym $mod+h focus left
#bindsym $mod+j focus down
#bindsym $mod+k focus up
#bindsym $mod+l focus right


bindsym $mod+Left focus left
# Move focus left
bindsym $mod+Left focus left
# Move focus down
bindsym $mod+Down focus down
# Move focus up
bindsym $mod+Up focus up
# Move focus right
bindsym $mod+Right focus right

# audio with media keys + spofify
Expand Down Expand Up @@ -153,7 +160,7 @@ bindsym $mod+w layout tabbed
bindsym $mod+e layout default


# bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Do you really want to exit i3?' -b 'Yes, exit i3' 'i3-msg exit'"
# Open to workspace
bindsym $mod+1 workspace $workspace1
bindsym $mod+2 workspace $workspace2
bindsym $mod+3 workspace $workspace3
Expand All @@ -164,6 +171,8 @@ bindsym $mod+7 workspace $workspace7
bindsym $mod+8 workspace $workspace8
bindsym $mod+9 workspace $workspace9
bindsym $mod+0 workspace $workspace10

# Move app to workspace
bindsym $mod+Shift+1 move container to workspace $workspace1 workspace $workspace1
bindsym $mod+Shift+2 move container to workspace $workspace2; workspace $workspace2
bindsym $mod+Shift+3 move container to workspace $workspace3; workspace $workspace3
Expand Down Expand Up @@ -256,10 +265,10 @@ exec_always --no-startup-id numlockx on
exec --no-startup-id feh --bg-scale ~/.dotfiles/wall.jpg

# Auto lock
exec --no-startup-id xautolock -time 10 -locker ~/scripts/lock.sh -secure
# exec --no-startup-id xautolock -time 10 -locker ~/scripts/lock.sh -secure

# Transparency
exec --no-startup-id exec picom -cb --config .compton.conf
# exec --no-startup-id exec picom -cb --config .compton.conf

# Screenshot software
exec --no-startup-id flameshot
Expand All @@ -272,5 +281,9 @@ exec --no-startup-id jetbrains-toolbox --minimize --disable-seccomp-filter-sandb

# polybars
exec_always --no-startup-id $HOME/.config/polybar/launch.sh

# load xressources
exec xrdb ~/.Xresources

# Load up screens and windows
exec --no-startup-id exec $HOME/scripts/init_workspace.sh
2 changes: 1 addition & 1 deletion general/polybar.config
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ label-connected = %essid% %local_ip% %{F#64748B} %upspeed:8%  %downspeed:8

[section/eth-base]
type = internal/network
interface = enp6s0
interface = enp7s0
interval = 0.1

format-connected-underline = ${colors.purple}
Expand Down
5 changes: 3 additions & 2 deletions general/polybar.launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,16 @@ if type "xrandr"; then
MODULE_BOTTOM_RIGHT="$NETWORK_TABS cpu memory temperature"
tray=""
case "$m" in
DP-3)
DP-1)
MODULE_BOTTOM_RIGHT="cpu memory temperature"
MODULE_TOP_RIGHT="volume notifications isrunning-picom pkg date Shutdown"
;;
DP-0)
DP-2)
tray="right"
MODULE_TOP_RIGHT="volume notifications isrunning-picom pkg time-SF time-BENGA date Shutdown"
;;
DP-5)
MODULE_BOTTOM_RIGHT="cpu memory temperature"ss{}
MODULE_TOP_RIGHT="volume notifications isrunning-picom pkg date Shutdown"
;;
*)
Expand Down
16 changes: 16 additions & 0 deletions general/rofi/colors/onedark.rasi
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/

* {
background: #1E2127FF;
background-alt: #282B31FF;
foreground: #FFFFFFFF;
selected: #61AFEFFF;
active: #98C379FF;
urgent: #E06C75FF;
}
181 changes: 181 additions & 0 deletions general/rofi/config.rasi
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Configuration For Rofi Version: 1.7.3
**/

configuration {
/*---------- General setting ----------*/
modi: "drun,run,filebrowser,window";
case-sensitive: false;
cycle: true;
filter: "";
scroll-method: 0;
normalize-match: true;
show-icons: true;
icon-theme: "Papirus";
/* cache-dir: ;*/
steal-focus: false;
/* dpi: -1;*/

/*---------- Matching setting ----------*/
matching: "normal";
tokenize: true;

/*---------- SSH settings ----------*/
ssh-client: "ssh";
ssh-command: "{terminal} -e {ssh-client} {host} [-p {port}]";
parse-hosts: true;
parse-known-hosts: true;

/*---------- Drun settings ----------*/
drun-categories: "";
drun-match-fields: "name,generic,exec,categories,keywords";
drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>]";
drun-show-actions: false;
drun-url-launcher: "xdg-open";
drun-use-desktop-cache: false;
drun-reload-desktop-cache: false;
drun {
/** Parse user desktop files. */
parse-user: true;
/** Parse system desktop files. */
parse-system: true;
}

/*---------- Run settings ----------*/
run-command: "{cmd}";
run-list-command: "";
run-shell-command: "{terminal} -e {cmd}";

/*---------- Fallback Icon ----------*/
run,drun {
fallback-icon: "application-x-addon";
}

/*---------- Window switcher settings ----------*/
window-match-fields: "title,class,role,name,desktop";
window-command: "wmctrl -i -R {window}";
window-format: "{w} - {c} - {t:0}";
window-thumbnail: false;

/*---------- Combi settings ----------*/
/* combi-modi: "window,run";*/
/* combi-hide-mode-prefix: false;*/
/* combi-display-format: "{mode} {text}";*/

/*---------- History and Sorting ----------*/
disable-history: false;
sorting-method: "normal";
max-history-size: 25;

/*---------- Display setting ----------*/
display-window: "Windows";
display-windowcd: "Window CD";
display-run: "Run";
display-ssh: "SSH";
display-drun: "Apps";
display-combi: "Combi";
display-keys: "Keys";
display-filebrowser: "Files";

/*---------- Misc setting ----------*/
terminal: "rofi-sensible-terminal";
font: "Mono 12";
sort: false;
threads: 0;
click-to-exit: true;
/* ignored-prefixes: "";*/
/* pid: "/run/user/1000/rofi.pid";*/

/*---------- File browser settings ----------*/
filebrowser {
/* directory: "/home";*/
directories-first: true;
sorting-method: "name";
}

/*---------- Other settings ----------*/
timeout {
action: "kb-cancel";
delay: 0;
}

/*---------- Keybindings ----------*/
/*
kb-primary-paste: "Control+V,Shift+Insert";
kb-secondary-paste: "Control+v,Insert";
kb-clear-line: "Control+w";
kb-move-front: "Control+a";
kb-move-end: "Control+e";
kb-move-word-back: "Alt+b,Control+Left";
kb-move-word-forward: "Alt+f,Control+Right";
kb-move-char-back: "Left,Control+b";
kb-move-char-forward: "Right,Control+f";
kb-remove-word-back: "Control+Alt+h,Control+BackSpace";
kb-remove-word-forward: "Control+Alt+d";
kb-remove-char-forward: "Delete,Control+d";
kb-remove-char-back: "BackSpace,Shift+BackSpace,Control+h";
kb-remove-to-eol: "Control+k";
kb-remove-to-sol: "Control+u";
kb-accept-entry: "Control+j,Control+m,Return,KP_Enter";
kb-accept-custom: "Control+Return";
kb-accept-custom-alt: "Control+Shift+Return";
kb-accept-alt: "Shift+Return";
kb-delete-entry: "Shift+Delete";
kb-mode-next: "Shift+Right,Control+Tab";
kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab";
kb-mode-complete: "Control+l";
kb-row-left: "Control+Page_Up";
kb-row-right: "Control+Page_Down";
kb-row-down: "Down,Control+n";
kb-page-prev: "Page_Up";
kb-page-next: "Page_Down";
kb-row-first: "Home,KP_Home";
kb-row-last: "End,KP_End";
kb-row-select: "Control+space";
kb-screenshot: "Alt+S";
kb-ellipsize: "Alt+period";
kb-toggle-case-sensitivity: "grave,dead_grave";
kb-toggle-sort: "Alt+grave";
kb-cancel: "Escape,Control+g,Control+bracketleft";
kb-custom-1: "Alt+1";
kb-custom-2: "Alt+2";
kb-custom-3: "Alt+3";
kb-custom-4: "Alt+4";
kb-custom-5: "Alt+5";
kb-custom-6: "Alt+6";
kb-custom-7: "Alt+7";
kb-custom-8: "Alt+8";
kb-custom-9: "Alt+9";
kb-custom-10: "Alt+0";
kb-custom-11: "Alt+exclam";
kb-custom-12: "Alt+at";
kb-custom-13: "Alt+numbersign";
kb-custom-14: "Alt+dollar";
kb-custom-15: "Alt+percent";
kb-custom-16: "Alt+dead_circumflex";
kb-custom-17: "Alt+ampersand";
kb-custom-18: "Alt+asterisk";
kb-custom-19: "Alt+parenleft";
kb-select-1: "Super+1";
kb-select-2: "Super+2";
kb-select-3: "Super+3";
kb-select-4: "Super+4";
kb-select-5: "Super+5";
kb-select-6: "Super+6";
kb-select-7: "Super+7";
kb-select-8: "Super+8";
kb-select-9: "Super+9";
kb-select-10: "Super+0";
ml-row-left: "ScrollLeft";
ml-row-right: "ScrollRight";
ml-row-up: "ScrollUp";
ml-row-down: "ScrollDown";
me-select-entry: "MousePrimary";
me-accept-entry: "MouseDPrimary";
me-accept-custom: "Control+MouseDPrimary";
*/
}
19 changes: 19 additions & 0 deletions general/rofi/launcher/emoji.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

## Author : Aditya Shakya (adi1090x)
## Github : @adi1090x
#
## Rofi : Launcher (Modi Drun, Run, File Browser, Window)
#
## Available Styles
#
## style-1 style-2 style-3 style-4 style-5
## style-6 style-7 style-8 style-9 style-10

dir="$HOME/.config/rofi/launcher"
theme='style-3'

## Run
rofi \
-show emoji -modi emoji \
-theme ${dir}/${theme}.rasi
Loading

0 comments on commit 44270b3

Please sign in to comment.