Commit 656d915e authored by Franciszek Madej's avatar Franciszek Madej 🤞

rotate screen

parents c7c56a39 d451ca67
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
# the top and down respectevly. # the top and down respectevly.
# The width can be negative. In this case the actual width is the # The width can be negative. In this case the actual width is the
# screen width minus the width defined in within the geometry option. # screen width minus the width defined in within the geometry option.
geometry = "0x16-20+60" geometry = "0x16-16+40"
# Shrink window if it's smaller than the width. Will be ignored if # Shrink window if it's smaller than the width. Will be ignored if
# width is 0. # width is 0.
...@@ -153,8 +153,8 @@ ...@@ -153,8 +153,8 @@
icon_path = /usr/share/icons/Papirus/24x24/actions/:/usr/share/icons/Papirus/24x24/apps/:/usr/share/icons/Papirus/24x24/status/:/usr/share/icons/Papirus/24x24/devices/ icon_path = /usr/share/icons/Papirus/24x24/actions/:/usr/share/icons/Papirus/24x24/apps/:/usr/share/icons/Papirus/24x24/status/:/usr/share/icons/Papirus/24x24/devices/
# Looks! # Looks!
frame_width = 1 frame_width = 2
frame_color = "#f5f5f5" frame_color = "#96B5B4"
[shortcuts] [shortcuts]
......
...@@ -149,12 +149,19 @@ bindsym $mod+r mode "resize" ...@@ -149,12 +149,19 @@ bindsym $mod+r mode "resize"
# dedicated volume buttons # dedicated volume buttons
bindsym XF86AudioRaiseVolume exec \ bindsym XF86AudioRaiseVolume exec \
pactl set-sink-volume @DEFAULT_SINK@ +1% pactl set-sink-volume @DEFAULT_SINK@ +5%
bindsym XF86AudioLowerVolume exec \ bindsym XF86AudioLowerVolume exec \
pactl set-sink-volume @DEFAULT_SINK@ -1% pactl set-sink-volume @DEFAULT_SINK@ -5%
bindsym XF86AudioMute exec \ bindsym XF86AudioMute exec \
pactl set-sink-mute @DEFAULT_SINK@ toggle pactl set-sink-mute @DEFAULT_SINK@ toggle
# media control
bindsym XF86AudioPlay exec \
playerctl play-pause
bindsym XF86AudioNext exec \
playerctl next
bindsym XF86AudioPrev exec \
playerctl previous
# tools # tools
bindsym $mod+Return exec $term bindsym $mod+Return exec $term
......
...@@ -4,7 +4,10 @@ import os ...@@ -4,7 +4,10 @@ import os
import re import re
import subprocess import subprocess
import sys import sys
from time import sleep
import pyperclip
import notify2
from rofi import Rofi from rofi import Rofi
STORE = os.path.normpath(os.path.expanduser('~/.password-store')) STORE = os.path.normpath(os.path.expanduser('~/.password-store'))
...@@ -31,7 +34,28 @@ if password[1] == -1: ...@@ -31,7 +34,28 @@ if password[1] == -1:
password = passwords[password[0]] password = passwords[password[0]]
old_content = pyperclip.paste()
subprocess.Popen(['pass', '-c', password], subprocess.Popen(['pass', '-c', password],
stdin=subprocess.PIPE, stdin=subprocess.PIPE,
stderr=subprocess.PIPE, stderr=subprocess.PIPE,
stdout=subprocess.PIPE) stdout=subprocess.PIPE)
# let password copy
sleep(0.5)
notify2.init('rofi-pass')
if old_content != pyperclip.paste():
n = notify2.Notification('Password copied',
f'account: {password}'
'\nyou have 45 seconds to use it!',
'password'
)
n.show()
else:
n = notify2.Notification('Failed to copy password!',
'Please try again',
'error'
)
n.show()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment