1
0
Fork 0

Use rofi & clipman

This commit is contained in:
J. Elfring 2024-06-22 19:21:42 +02:00
parent 46a65fe535
commit 68acf547ef
4 changed files with 27 additions and 18 deletions

View file

@ -43,7 +43,13 @@ C-u: Update (pull, push); C-r: Remove'
## Exit if nothing was selected
test "_$password" = "_" && exit
## Disable clipman
command -v clipctl >/dev/null && clipctl disable
## Copy pass and show otp, exit silently if anything fails
pass show -c "$password" 2>/dev/null || exit 0
pass otp "$password" 2>/dev/null || exit 0
## Re-Enable clipman
command -v clipctl >/dev/null && clipctl enable

View file

@ -43,6 +43,8 @@ export DBUS_SESSION_BUS_ADDRESS=unix:path=/var/run/user/$(id -u)/bus;
export TODOTXT_DEFAULT_ACTION=ls
export CM_LAUNCHER=rofi
# hidpi for gtk apps
#export GDK_SCALE=2
#export GDK_DPI_SCALE=0.5

View file

@ -50,7 +50,12 @@ bindsym $mod+Shift+c kill
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
bindsym $mod+d exec --no-startup-id "i3-dmenu-desktop -dmenu='dmenu -i -fn B612' --entry-type name"
#bindsym $mod+d exec --no-startup-id "i3-dmenu-desktop -dmenu='dmenu -i -fn B612' --entry-type name"
bindsym $mod+d exec --no-startup-id "rofi -show drun"
# Show window Switcher
bindsym $mod+Tab exec --no-startup-id "rofi -show window"
# Local Hotkeys
bindsym $mod+x exec --no-startup-id "test -x ~/.local/bin/lhotkey-x && ~/.local/bin/lhotkey-x"
@ -96,19 +101,15 @@ bindsym $mod+Shift+Right move right
bindsym $mod+$alt+Left move workspace to output left
bindsym $mod+$alt+Right move workspace to output right
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
bindsym $mod+$alt+e layout toggle split
bindsym $mod+$alt+s layout stacking
bindsym $mod+$alt+w layout tabbed
bindsym $mod+$alt+v split v
bindsym $mod+$alt+h split h
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
@ -198,7 +199,7 @@ bar {
position top
}
# Pulse Audio controls
# PW Audio controls
bindsym XF86AudioRaiseVolume exec --no-startup-id "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
bindsym XF86AudioLowerVolume exec --no-startup-id "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
bindsym XF86AudioMute exec --no-startup-id "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
@ -251,16 +252,15 @@ bindsym $mod+m exec ~/.bin/dmenu_dir2menu.sh ~/.screenlayout/
bindsym $mod+i exec --no-startup-id notify-send "Public IPv4 address" "$(curl --silent https://v4.ident.me)"
bindsym $mod+Shift+i exec --no-startup-id "~/.bin/reconnectfritzbox.sh"
# Get current uptime
bindsym $mod+u exec --no-startup-id notify-send "Uptime" "$(uptime --pretty)"
bindsym $mod+Shift+u exec --no-startup-id test -x ~/.local/bin/mod-u && ~/.local/bin/mod-u
# Clipboard to QR
# Clipboard
bindsym $mod+q exec --no-startup-id "~/.bin/xcqr"
bindsym $mod+v exec --no-startup-id "clipmenu"
# Autostart
exec --no-startup-id "blueman-applet"
exec --no-startup-id "nm-applet"
exec --no-startup-id "parcellite"
exec --no-startup-id "clipmenud"
exec --no-startup-id "dunst -config ~/.i3/dunstrc"
exec --no-startup-id test -x ~/.local/bin/i3autostart.sh && ~/.local/bin/i3autostart.sh
exec --no-startup-id gsettings set org.gtk.Settings.FileChooser sort-directories-first true

View file

@ -19,6 +19,7 @@
- blueman
- bluez-utils
- btrfs-progs
- clipmenu
- coreutils
- cryptsetup
- curl
@ -70,11 +71,11 @@
- nmon
- nomacs
- p7zip
- parcellite
- pcmanfm-gtk3
- perl
- perl-date-manip
- perl-finance-quote
- rofi
- qrencode
- screenfetch
- scrot